00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "dyngen-exec.h"
00022
00023 register struct CPUCRISState *env asm(AREG0);
00024
00025 #include "cpu.h"
00026 #include "exec-all.h"
00027
00028 static inline void env_to_regs(void)
00029 {
00030 }
00031
00032 static inline void regs_to_env(void)
00033 {
00034 }
00035
00036 #if !defined(CONFIG_USER_ONLY)
00037 #include "softmmu_exec.h"
00038 #endif
00039
00040 void cpu_cris_flush_flags(CPUCRISState *env, int cc_op);
00041 void helper_movec(CPUCRISState *env, int reg, uint32_t val);
00042
00043 static inline int cpu_halted(CPUState *env) {
00044 if (!env->halted)
00045 return 0;
00046
00047
00048 if (env->interrupt_request
00049 & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
00050 env->halted = 0;
00051 return 0;
00052 }
00053 return EXCP_HALTED;
00054 }