diff options
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h index 19cb209..44a98e4 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -245,4 +245,13 @@ static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) env->pc = tb->pc; } +static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc, + target_ulong *cs_base, int *flags) +{ + *pc = env->pc; + *cs_base = 0; + *flags = env->dslot | + (env->pregs[PR_CCS] & (S_FLAG | P_FLAG | U_FLAG | X_FLAG)); +} + #endif |