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/exec.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/exec.h')
-rw-r--r-- | target-ppc/exec.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/target-ppc/exec.h b/target-ppc/exec.h index ae424515bb..1566932919 100644 --- a/target-ppc/exec.h +++ b/target-ppc/exec.h @@ -58,10 +58,6 @@ register unsigned long T2 asm(AREG3); #define T1_avr (env->t1_avr) #define T2_avr (env->t2_avr) -/* XXX: to clean: remove this mess */ -#define PARAM(n) ((uint32_t)PARAM##n) -#define SPARAM(n) ((int32_t)PARAM##n) - #define FT0 (env->ft0) #define FT1 (env->ft1) #define FT2 (env->ft2) @@ -111,18 +107,19 @@ void ppc6xx_tlb_store (CPUState *env, target_ulong EPN, int way, int is_code, target_ulong pte0, target_ulong pte1); void ppc4xx_tlb_invalidate_all (CPUState *env); -static inline void env_to_regs(void) +static inline void env_to_regs (void) { } -static inline void regs_to_env(void) +static inline void regs_to_env (void) { } int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int is_user, int is_softmmu); -static inline int cpu_halted(CPUState *env) { +static inline int cpu_halted (CPUState *env) +{ if (!env->halted) return 0; if (env->msr[MSR_EE] && (env->interrupt_request & CPU_INTERRUPT_HARD)) { |