3 #include "dyngen-exec.h"
5 register struct CPUSPARCState *env asm(AREG0);
11 register uint32_t T0 asm(AREG1);
12 register uint32_t T1 asm(AREG2);
13 register uint32_t T2 asm(AREG3);
15 #define FT0 (env->ft0)
16 #define FT1 (env->ft1)
17 #define FT2 (env->ft2)
18 #define DT0 (env->dt0)
19 #define DT1 (env->dt1)
20 #define DT2 (env->dt2)
26 void cpu_unlock(void);
27 void cpu_loop_exit(void);
28 void helper_flush(target_ulong addr);
29 void helper_ld_asi(int asi, int size, int sign);
30 void helper_st_asi(int asi, int size, int sign);
31 void helper_rett(void);
32 void helper_ldfsr(void);
33 void set_cwp(int new_cwp);
41 void do_ldd_kernel(target_ulong addr);
42 void do_ldd_user(target_ulong addr);
43 void do_ldd_raw(target_ulong addr);
44 void do_interrupt(int intno, int is_int, int error_code,
45 unsigned int next_eip, int is_hw);
46 void raise_exception_err(int exception_index, int error_code);
47 void raise_exception(int tt);
48 void memcpy32(target_ulong *dst, const target_ulong *src);
49 target_ulong mmu_probe(target_ulong address, int mmulev);
55 /* XXX: move that to a generic header */
56 #if !defined(CONFIG_USER_ONLY)
58 #define ldul_user ldl_user
59 #define ldul_kernel ldl_kernel
62 #define MEMSUFFIX _kernel
64 #include "softmmu_header.h"
67 #include "softmmu_header.h"
70 #include "softmmu_header.h"
73 #include "softmmu_header.h"
78 #define MEMSUFFIX _user
80 #include "softmmu_header.h"
83 #include "softmmu_header.h"
86 #include "softmmu_header.h"
89 #include "softmmu_header.h"
93 /* these access are slower, they must be as rare as possible */
95 #define MEMSUFFIX _data
97 #include "softmmu_header.h"
100 #include "softmmu_header.h"
103 #include "softmmu_header.h"
106 #include "softmmu_header.h"
110 #define ldub(p) ldub_data(p)
111 #define ldsb(p) ldsb_data(p)
112 #define lduw(p) lduw_data(p)
113 #define ldsw(p) ldsw_data(p)
114 #define ldl(p) ldl_data(p)
115 #define ldq(p) ldq_data(p)
117 #define stb(p, v) stb_data(p, v)
118 #define stw(p, v) stw_data(p, v)
119 #define stl(p, v) stl_data(p, v)
120 #define stq(p, v) stq_data(p, v)
122 #endif /* !defined(CONFIG_USER_ONLY) */
124 static inline void env_to_regs(void)
128 static inline void regs_to_env(void)