4 #include "dyngen-exec.h"
6 register struct CPUSPARCState
*env
asm(AREG0
);
12 #define REGWPTR env->regwptr
14 register uint32_t T0
asm(AREG1
);
15 register uint32_t T1
asm(AREG2
);
17 #undef REG_REGWPTR // Broken
19 #if defined(__sparc__)
20 register uint32_t *REGWPTR
asm(AREG4
);
22 register uint32_t *REGWPTR
asm(AREG3
);
27 register uint32_t T2
asm(AREG4
);
34 #define REGWPTR env->regwptr
35 register uint32_t T2
asm(AREG3
);
40 #define FT0 (env->ft0)
41 #define FT1 (env->ft1)
42 #define DT0 (env->dt0)
43 #define DT1 (env->dt1)
44 #if defined(CONFIG_USER_ONLY)
45 #define QT0 (env->qt0)
46 #define QT1 (env->qt1)
53 void cpu_unlock(void);
54 void cpu_loop_exit(void);
55 void helper_ldfsr(void);
56 void set_cwp(int new_cwp
);
66 #if defined(CONFIG_USER_ONLY)
76 void do_fcmps_fcc1(void);
77 void do_fcmpd_fcc1(void);
78 void do_fcmps_fcc2(void);
79 void do_fcmpd_fcc2(void);
80 void do_fcmps_fcc3(void);
81 void do_fcmpd_fcc3(void);
82 void do_fcmpes_fcc1(void);
83 void do_fcmped_fcc1(void);
84 void do_fcmpes_fcc2(void);
85 void do_fcmped_fcc2(void);
86 void do_fcmpes_fcc3(void);
87 void do_fcmped_fcc3(void);
88 #if defined(CONFIG_USER_ONLY)
91 void do_fcmpq_fcc1(void);
92 void do_fcmpq_fcc2(void);
93 void do_fcmpq_fcc3(void);
94 void do_fcmpeq_fcc1(void);
95 void do_fcmpeq_fcc2(void);
96 void do_fcmpeq_fcc3(void);
99 void do_interrupt(int intno
);
100 void raise_exception(int tt
);
101 void check_ieee_exceptions();
102 void memcpy32(target_ulong
*dst
, const target_ulong
*src
);
103 target_ulong
mmu_probe(CPUState
*env
, target_ulong address
, int mmulev
);
104 void dump_mmu(CPUState
*env
);
106 /* XXX: move that to a generic header */
107 #if !defined(CONFIG_USER_ONLY)
108 #include "softmmu_exec.h"
109 #endif /* !defined(CONFIG_USER_ONLY) */
111 static inline void env_to_regs(void)
113 #if defined(reg_REGWPTR)
114 REGWPTR
= env
->regbase
+ (env
->cwp
* 16);
115 env
->regwptr
= REGWPTR
;
119 static inline void regs_to_env(void)
123 int cpu_sparc_handle_mmu_fault(CPUState
*env
, target_ulong address
, int rw
,
124 int mmu_idx
, int is_softmmu
);
126 static inline int cpu_halted(CPUState
*env
) {
129 if ((env
->interrupt_request
& CPU_INTERRUPT_HARD
) && (env
->psret
!= 0)) {