From 622ed3605bf4caa5d52b407081ceb6ecce752aec Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 18 Nov 2008 19:36:03 +0000 Subject: Convert CPU_PC_FROM_TB to static inline (Jan Kiszka) as macros should be avoided when possible. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5735 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/cpu.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'target-ppc/cpu.h') diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 00eac0722f..1ffbc30a37 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -826,9 +826,8 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) } #endif -#define CPU_PC_FROM_TB(env, tb) env->nip = tb->pc - #include "cpu-all.h" +#include "exec-all.h" /*****************************************************************************/ /* CRF definitions */ @@ -1432,4 +1431,9 @@ enum { /*****************************************************************************/ +static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) +{ + env->nip = tb->pc; +} + #endif /* !defined (__CPU_PPC_H__) */ -- cgit v1.2.3