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_mem.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_mem.h')
-rw-r--r-- | target-ppc/op_mem.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/target-ppc/op_mem.h b/target-ppc/op_mem.h index fb62dbb2b7..c1039da2d8 100644 --- a/target-ppc/op_mem.h +++ b/target-ppc/op_mem.h @@ -517,7 +517,7 @@ void OPPROTO glue(op_lwarx, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ldl, MEMSUFFIX)((uint32_t)T0); - regs->reserve = (uint32_t)T0; + env->reserve = (uint32_t)T0; } RETURN(); } @@ -529,7 +529,7 @@ void OPPROTO glue(op_lwarx_64, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ldl, MEMSUFFIX)((uint64_t)T0); - regs->reserve = (uint64_t)T0; + env->reserve = (uint64_t)T0; } RETURN(); } @@ -540,7 +540,7 @@ void OPPROTO glue(op_ldarx, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ldq, MEMSUFFIX)((uint32_t)T0); - regs->reserve = (uint32_t)T0; + env->reserve = (uint32_t)T0; } RETURN(); } @@ -551,7 +551,7 @@ void OPPROTO glue(op_ldarx_64, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ldq, MEMSUFFIX)((uint64_t)T0); - regs->reserve = (uint64_t)T0; + env->reserve = (uint64_t)T0; } RETURN(); } @@ -563,7 +563,7 @@ void OPPROTO glue(op_lwarx_le, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ld32r, MEMSUFFIX)((uint32_t)T0); - regs->reserve = (uint32_t)T0; + env->reserve = (uint32_t)T0; } RETURN(); } @@ -575,7 +575,7 @@ void OPPROTO glue(op_lwarx_le_64, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ld32r, MEMSUFFIX)((uint64_t)T0); - regs->reserve = (uint64_t)T0; + env->reserve = (uint64_t)T0; } RETURN(); } @@ -586,7 +586,7 @@ void OPPROTO glue(op_ldarx_le, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ld64r, MEMSUFFIX)((uint32_t)T0); - regs->reserve = (uint32_t)T0; + env->reserve = (uint32_t)T0; } RETURN(); } @@ -597,7 +597,7 @@ void OPPROTO glue(op_ldarx_le_64, MEMSUFFIX) (void) do_raise_exception(EXCP_ALIGN); } else { T1 = glue(ld64r, MEMSUFFIX)((uint64_t)T0); - regs->reserve = (uint64_t)T0; + env->reserve = (uint64_t)T0; } RETURN(); } @@ -609,14 +609,14 @@ void OPPROTO glue(op_stwcx, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint32_t)T0)) { + if (unlikely(env->reserve != (uint32_t)T0)) { env->crf[0] = xer_ov; } else { glue(stl, MEMSUFFIX)((uint32_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } @@ -626,14 +626,14 @@ void OPPROTO glue(op_stwcx_64, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint64_t)T0)) { + if (unlikely(env->reserve != (uint64_t)T0)) { env->crf[0] = xer_ov; } else { glue(stl, MEMSUFFIX)((uint64_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } @@ -642,14 +642,14 @@ void OPPROTO glue(op_stdcx, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint32_t)T0)) { + if (unlikely(env->reserve != (uint32_t)T0)) { env->crf[0] = xer_ov; } else { glue(stq, MEMSUFFIX)((uint32_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } @@ -658,14 +658,14 @@ void OPPROTO glue(op_stdcx_64, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint64_t)T0)) { + if (unlikely(env->reserve != (uint64_t)T0)) { env->crf[0] = xer_ov; } else { glue(stq, MEMSUFFIX)((uint64_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } #endif @@ -675,14 +675,14 @@ void OPPROTO glue(op_stwcx_le, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint32_t)T0)) { + if (unlikely(env->reserve != (uint32_t)T0)) { env->crf[0] = xer_ov; } else { glue(st32r, MEMSUFFIX)((uint32_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } @@ -692,14 +692,14 @@ void OPPROTO glue(op_stwcx_le_64, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint64_t)T0)) { + if (unlikely(env->reserve != (uint64_t)T0)) { env->crf[0] = xer_ov; } else { glue(st32r, MEMSUFFIX)((uint64_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } @@ -708,14 +708,14 @@ void OPPROTO glue(op_stdcx_le, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint32_t)T0)) { + if (unlikely(env->reserve != (uint32_t)T0)) { env->crf[0] = xer_ov; } else { glue(st64r, MEMSUFFIX)((uint32_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } @@ -724,14 +724,14 @@ void OPPROTO glue(op_stdcx_le_64, MEMSUFFIX) (void) if (unlikely(T0 & 0x03)) { do_raise_exception(EXCP_ALIGN); } else { - if (unlikely(regs->reserve != (uint64_t)T0)) { + if (unlikely(env->reserve != (uint64_t)T0)) { env->crf[0] = xer_ov; } else { glue(st64r, MEMSUFFIX)((uint64_t)T0, T1); env->crf[0] = xer_ov | 0x02; } } - regs->reserve = -1; + env->reserve = -1; RETURN(); } #endif @@ -1095,7 +1095,7 @@ static inline void glue(spe_stwwo, MEMSUFFIX) (target_ulong EA, uint64_t data) } PPC_SPE_ST_OP(wwo, spe_stwwo); static inline void glue(spe_stwwo_le, MEMSUFFIX) (target_ulong EA, - uint64_t data) + uint64_t data) { glue(st32r, MEMSUFFIX)(EA, data); } |