|
|
1.1 root 1: #ifndef EXEC_SPARC_H
2: #define EXEC_SPARC_H 1
3: #include "config.h"
1.1.1.4 root 4: #include "dyngen-exec.h"
1.1 root 5:
6: register struct CPUSPARCState *env asm(AREG0);
1.1.1.3 root 7:
1.1 root 8: #include "cpu.h"
9: #include "exec-all.h"
10:
1.1.1.7 ! root 11: #if !defined(CONFIG_USER_ONLY)
! 12: #include "softmmu_exec.h"
! 13: #endif /* !defined(CONFIG_USER_ONLY) */
1.1 root 14:
1.1.1.5 root 15: /* op_helper.c */
16: void do_interrupt(CPUState *env);
1.1.1.4 root 17:
1.1.1.6 root 18: static inline int cpu_has_work(CPUState *env1)
19: {
20: return (env1->interrupt_request & CPU_INTERRUPT_HARD) &&
21: cpu_interrupts_enabled(env1);
22: }
23:
24:
1.1.1.5 root 25: static inline int cpu_halted(CPUState *env1) {
26: if (!env1->halted)
1.1.1.4 root 27: return 0;
1.1.1.6 root 28: if (cpu_has_work(env1)) {
1.1.1.5 root 29: env1->halted = 0;
1.1.1.4 root 30: return 0;
31: }
32: return EXCP_HALTED;
33: }
1.1 root 34:
1.1.1.7 ! root 35: static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
! 36: {
! 37: env->pc = tb->pc;
! 38: env->npc = tb->cs_base;
! 39: }
! 40:
1.1 root 41: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.