X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=target-cris%2Fcpu.h;h=44a98e46a20f4fab7d42ce85a60cbcfbeb0bd173;hb=963262debc52f771c99c2bf2605a63f60134410d;hp=39b1061729d34f26a9bd7a9b3b4d6980db0e2402;hpb=9656f324d25895ec16ebc5eaf624e28a96c1f1be;p=qemu diff --git a/target-cris/cpu.h b/target-cris/cpu.h index 39b1061..44a98e4 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -168,7 +168,7 @@ void do_interrupt(CPUCRISState *env); int cpu_cris_signal_handler(int host_signum, void *pinfo, void *puc); void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, - int is_asi); + int is_asi, int size); enum { CC_OP_DYNAMIC, /* Use env->cc_op */ @@ -237,7 +237,21 @@ 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; +} + +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