Try to fix USB HID and make the HID reports readable.
[qemu/mini2440/sniper_sniper_test.git] / target-sparc / exec.h
blob19d1732e7c618e20950a7ef30d3aa1e49706f807
1 #ifndef EXEC_SPARC_H
2 #define EXEC_SPARC_H 1
3 #include "config.h"
4 #include "dyngen-exec.h"
6 register struct CPUSPARCState *env asm(AREG0);
7 #define REGWPTR env->regwptr
9 #define FT0 (env->ft0)
10 #define FT1 (env->ft1)
11 #define DT0 (env->dt0)
12 #define DT1 (env->dt1)
13 #define QT0 (env->qt0)
14 #define QT1 (env->qt1)
16 #include "cpu.h"
17 #include "exec-all.h"
19 static inline void env_to_regs(void)
21 #if defined(reg_REGWPTR)
22 REGWPTR = env->regbase + (env->cwp * 16);
23 env->regwptr = REGWPTR;
24 #endif
27 static inline void regs_to_env(void)
31 int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw,
32 int mmu_idx, int is_softmmu);
33 void do_interrupt(int intno);
35 static inline int cpu_halted(CPUState *env1) {
36 if (!env1->halted)
37 return 0;
38 if ((env1->interrupt_request & CPU_INTERRUPT_HARD) && (env1->psret != 0)) {
39 env1->halted = 0;
40 return 0;
42 return EXCP_HALTED;
45 #endif