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