diff options
Diffstat (limited to 'target-ppc/op_template.h')
-rw-r--r-- | target-ppc/op_template.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/target-ppc/op_template.h b/target-ppc/op_template.h index cfb86d3cbc..d45062592a 100644 --- a/target-ppc/op_template.h +++ b/target-ppc/op_template.h @@ -21,38 +21,38 @@ /* General purpose registers moves */ void OPPROTO glue(op_load_gpr_T0_gpr, REG) (void) { - T0 = regs->gpr[REG]; + T0 = env->gpr[REG]; RETURN(); } void OPPROTO glue(op_load_gpr_T1_gpr, REG) (void) { - T1 = regs->gpr[REG]; + T1 = env->gpr[REG]; RETURN(); } void OPPROTO glue(op_load_gpr_T2_gpr, REG) (void) { - T2 = regs->gpr[REG]; + T2 = env->gpr[REG]; RETURN(); } void OPPROTO glue(op_store_T0_gpr_gpr, REG) (void) { - regs->gpr[REG] = T0; + env->gpr[REG] = T0; RETURN(); } void OPPROTO glue(op_store_T1_gpr_gpr, REG) (void) { - regs->gpr[REG] = T1; + env->gpr[REG] = T1; RETURN(); } #if 0 // unused void OPPROTO glue(op_store_T2_gpr_gpr, REG) (void) { - regs->gpr[REG] = T2; + env->gpr[REG] = T2; RETURN(); } #endif @@ -60,40 +60,40 @@ void OPPROTO glue(op_store_T2_gpr_gpr, REG) (void) #if defined(TARGET_PPCEMB) void OPPROTO glue(op_load_gpr64_T0_gpr, REG) (void) { - T0_64 = regs->gpr[REG]; + T0_64 = env->gpr[REG]; RETURN(); } void OPPROTO glue(op_load_gpr64_T1_gpr, REG) (void) { - T1_64 = regs->gpr[REG]; + T1_64 = env->gpr[REG]; RETURN(); } #if 0 // unused void OPPROTO glue(op_load_gpr64_T2_gpr, REG) (void) { - T2_64 = regs->gpr[REG]; + T2_64 = env->gpr[REG]; RETURN(); } #endif void OPPROTO glue(op_store_T0_gpr64_gpr, REG) (void) { - regs->gpr[REG] = T0_64; + env->gpr[REG] = T0_64; RETURN(); } void OPPROTO glue(op_store_T1_gpr64_gpr, REG) (void) { - regs->gpr[REG] = T1_64; + env->gpr[REG] = T1_64; RETURN(); } #if 0 // unused void OPPROTO glue(op_store_T2_gpr64_gpr, REG) (void) { - regs->gpr[REG] = T2_64; + env->gpr[REG] = T2_64; RETURN(); } #endif @@ -103,57 +103,57 @@ void OPPROTO glue(op_store_T2_gpr64_gpr, REG) (void) /* Condition register moves */ void OPPROTO glue(op_load_crf_T0_crf, REG) (void) { - T0 = regs->crf[REG]; + T0 = env->crf[REG]; RETURN(); } void OPPROTO glue(op_load_crf_T1_crf, REG) (void) { - T1 = regs->crf[REG]; + T1 = env->crf[REG]; RETURN(); } void OPPROTO glue(op_store_T0_crf_crf, REG) (void) { - regs->crf[REG] = T0; + env->crf[REG] = T0; RETURN(); } void OPPROTO glue(op_store_T1_crf_crf, REG) (void) { - regs->crf[REG] = T1; + env->crf[REG] = T1; RETURN(); } /* Floating point condition and status register moves */ void OPPROTO glue(op_load_fpscr_T0_fpscr, REG) (void) { - T0 = regs->fpscr[REG]; + T0 = env->fpscr[REG]; RETURN(); } #if REG == 0 void OPPROTO glue(op_store_T0_fpscr_fpscr, REG) (void) { - regs->fpscr[REG] = (regs->fpscr[REG] & 0x9) | (T0 & ~0x9); + env->fpscr[REG] = (env->fpscr[REG] & 0x9) | (T0 & ~0x9); RETURN(); } void OPPROTO glue(op_clear_fpscr_fpscr, REG) (void) { - regs->fpscr[REG] = (regs->fpscr[REG] & 0x9); + env->fpscr[REG] = (env->fpscr[REG] & 0x9); RETURN(); } #else void OPPROTO glue(op_store_T0_fpscr_fpscr, REG) (void) { - regs->fpscr[REG] = T0; + env->fpscr[REG] = T0; RETURN(); } void OPPROTO glue(op_clear_fpscr_fpscr, REG) (void) { - regs->fpscr[REG] = 0x0; + env->fpscr[REG] = 0x0; RETURN(); } #endif |