diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-17 08:21:54 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-17 08:21:54 +0000 |
commit | 3608160206ed55c35be916df0f5d43dccc183513 (patch) | |
tree | 0766f900d5635fb7c8b39bf0b9995f26eda55ffa /target-ppc/op_template.h | |
parent | 3b46e6242767a2c770c0aba0a6595e9511623c92 (diff) |
Coding style fixes in PowerPC related code (no functional change):
- avoid useless blanks at EOL.
- avoid tabs.
- fix wrapping lines on 80 chars terminals.
- add missing ';' at macros EOL to avoid confusing auto-identers.
- fix identation.
- Remove historical macros in micro-ops (PARAM, SPARAM, PPC_OP, regs)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3178 c046a42c-6fe2-441c-8c8c-71466251a162
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 |