diff options
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/cpu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h index 1a8c884134..19cb20987a 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -237,7 +237,12 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) #define SFR_RW_MM_TLB_LO env->pregs[PR_SRS]][5 #define SFR_RW_MM_TLB_HI env->pregs[PR_SRS]][6 -#define CPU_PC_FROM_TB(env, tb) env->pc = tb->pc - #include "cpu-all.h" +#include "exec-all.h" + +static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) +{ + env->pc = tb->pc; +} + #endif |