unicorn_arm: m68k/translate: Build fixes

This commit is contained in:
Lioncash 2018-02-13 09:15:46 -05:00
parent f578c89e8b
commit 98e2ffba3a
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 5 additions and 5 deletions

View file

@ -82,10 +82,10 @@ int arm_reg_read(struct uc_struct *uc, unsigned int *regs, void **vals, int coun
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.regs[15];
break;
case UC_ARM_REG_C1_C0_2:
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.cp15.c1_coproc;
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.cp15.cpacr_el1;
break;
case UC_ARM_REG_C13_C0_3:
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.cp15.tpidrro_el0;
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.cp15.tpidrro_el[0];
break;
case UC_ARM_REG_FPEXC:
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.vfp.xregs[ARM_VFP_FPEXC];
@ -137,11 +137,11 @@ int arm_reg_write(struct uc_struct *uc, unsigned int *regs, void* const* vals, i
break;
case UC_ARM_REG_C1_C0_2:
ARM_CPU(uc, mycpu)->env.cp15.c1_coproc = *(int32_t *)value;
ARM_CPU(uc, mycpu)->env.cp15.cpacr_el1 = *(int32_t *)value;
break;
case UC_ARM_REG_C13_C0_3:
ARM_CPU(uc, mycpu)->env.cp15.tpidrro_el0 = *(int32_t *)value;
ARM_CPU(uc, mycpu)->env.cp15.tpidrro_el[0] = *(int32_t *)value;
break;
case UC_ARM_REG_FPEXC:
ARM_CPU(uc, mycpu)->env.vfp.xregs[ARM_VFP_FPEXC] = *(int32_t *)value;

View file

@ -3136,7 +3136,7 @@ gen_intermediate_code_internal(M68kCPU *cpu, TranslationBlock *tb,
tcg_ctx->gen_opc_instr_start[lj] = 1;
//tcg_ctx.gen_opc_icount[lj] = num_insns;
}
tcg_gen_insn_start(tcg_ctx, s->pc);
tcg_gen_insn_start(tcg_ctx, dc->pc);
num_insns++;
//if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {