diff options
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/cpu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 2e21bc3b4a..ead073c7a3 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -789,10 +789,14 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) } #endif -#define CPU_PC_FROM_TB(env, tb) env->eip = tb->pc - tb->cs_base - #include "cpu-all.h" +#include "exec-all.h" #include "svm.h" +static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) +{ + env->eip = tb->pc - tb->cs_base; +} + #endif /* CPU_I386_H */ |