root / target-sh4 / exec.h @ 86cc1ce0
History | View | Annotate | Download (2.1 kB)
1 | fdf9b3e8 | bellard | /*
|
---|---|---|---|
2 | fdf9b3e8 | bellard | * SH4 emulation
|
3 | fdf9b3e8 | bellard | *
|
4 | fdf9b3e8 | bellard | * Copyright (c) 2005 Samuel Tardieu
|
5 | fdf9b3e8 | bellard | *
|
6 | fdf9b3e8 | bellard | * This library is free software; you can redistribute it and/or
|
7 | fdf9b3e8 | bellard | * modify it under the terms of the GNU Lesser General Public
|
8 | fdf9b3e8 | bellard | * License as published by the Free Software Foundation; either
|
9 | fdf9b3e8 | bellard | * version 2 of the License, or (at your option) any later version.
|
10 | fdf9b3e8 | bellard | *
|
11 | fdf9b3e8 | bellard | * This library is distributed in the hope that it will be useful,
|
12 | fdf9b3e8 | bellard | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | fdf9b3e8 | bellard | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | fdf9b3e8 | bellard | * Lesser General Public License for more details.
|
15 | fdf9b3e8 | bellard | *
|
16 | fdf9b3e8 | bellard | * You should have received a copy of the GNU Lesser General Public
|
17 | fdf9b3e8 | bellard | * License along with this library; if not, write to the Free Software
|
18 | fdf9b3e8 | bellard | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | fdf9b3e8 | bellard | */
|
20 | fdf9b3e8 | bellard | #ifndef _EXEC_SH4_H
|
21 | fdf9b3e8 | bellard | #define _EXEC_SH4_H
|
22 | fdf9b3e8 | bellard | |
23 | fdf9b3e8 | bellard | #include "config.h" |
24 | fdf9b3e8 | bellard | #include "dyngen-exec.h" |
25 | fdf9b3e8 | bellard | |
26 | fdf9b3e8 | bellard | register struct CPUSH4State *env asm(AREG0); |
27 | fdf9b3e8 | bellard | register uint32_t T0 asm(AREG1); |
28 | fdf9b3e8 | bellard | register uint32_t T1 asm(AREG2); |
29 | 9c2a9ea1 | pbrook | //register uint32_t T2 asm(AREG3);
|
30 | fdf9b3e8 | bellard | |
31 | eda9b09b | bellard | #define FT0 (env->ft0)
|
32 | eda9b09b | bellard | #define FT1 (env->ft1)
|
33 | eda9b09b | bellard | #define DT0 (env->dt0)
|
34 | eda9b09b | bellard | #define DT1 (env->dt1)
|
35 | eda9b09b | bellard | |
36 | fdf9b3e8 | bellard | #include "cpu.h" |
37 | fdf9b3e8 | bellard | #include "exec-all.h" |
38 | fdf9b3e8 | bellard | |
39 | fdf9b3e8 | bellard | #ifndef CONFIG_USER_ONLY
|
40 | fdf9b3e8 | bellard | #include "softmmu_exec.h" |
41 | fdf9b3e8 | bellard | #endif
|
42 | fdf9b3e8 | bellard | |
43 | fdf9b3e8 | bellard | #define RETURN() __asm__ __volatile__("") |
44 | fdf9b3e8 | bellard | |
45 | fdf9b3e8 | bellard | static inline void regs_to_env(void) |
46 | fdf9b3e8 | bellard | { |
47 | fdf9b3e8 | bellard | /* XXXXX */
|
48 | fdf9b3e8 | bellard | } |
49 | fdf9b3e8 | bellard | |
50 | fdf9b3e8 | bellard | static inline void env_to_regs(void) |
51 | fdf9b3e8 | bellard | { |
52 | fdf9b3e8 | bellard | /* XXXXX */
|
53 | fdf9b3e8 | bellard | } |
54 | fdf9b3e8 | bellard | |
55 | fdf9b3e8 | bellard | int cpu_sh4_handle_mmu_fault(CPUState * env, target_ulong address, int rw, |
56 | fdf9b3e8 | bellard | int is_user, int is_softmmu); |
57 | fdf9b3e8 | bellard | |
58 | fdf9b3e8 | bellard | int find_itlb_entry(CPUState * env, target_ulong address,
|
59 | fdf9b3e8 | bellard | int use_asid, int update); |
60 | fdf9b3e8 | bellard | int find_utlb_entry(CPUState * env, target_ulong address, int use_asid); |
61 | fdf9b3e8 | bellard | |
62 | fdf9b3e8 | bellard | void helper_addc_T0_T1(void); |
63 | fdf9b3e8 | bellard | void helper_addv_T0_T1(void); |
64 | fdf9b3e8 | bellard | void helper_div1_T0_T1(void); |
65 | fdf9b3e8 | bellard | void helper_dmulsl_T0_T1(void); |
66 | fdf9b3e8 | bellard | void helper_dmulul_T0_T1(void); |
67 | fdf9b3e8 | bellard | void helper_macl_T0_T1(void); |
68 | fdf9b3e8 | bellard | void helper_macw_T0_T1(void); |
69 | fdf9b3e8 | bellard | void helper_negc_T0(void); |
70 | fdf9b3e8 | bellard | void helper_subc_T0_T1(void); |
71 | fdf9b3e8 | bellard | void helper_subv_T0_T1(void); |
72 | fdf9b3e8 | bellard | void helper_rotcl(uint32_t * addr);
|
73 | fdf9b3e8 | bellard | void helper_rotcr(uint32_t * addr);
|
74 | fdf9b3e8 | bellard | |
75 | fdf9b3e8 | bellard | void do_interrupt(CPUState * env);
|
76 | fdf9b3e8 | bellard | |
77 | fdf9b3e8 | bellard | void cpu_loop_exit(void); |
78 | fdf9b3e8 | bellard | void do_raise_exception(void); |
79 | fdf9b3e8 | bellard | |
80 | fdf9b3e8 | bellard | #endif /* _EXEC_SH4_H */ |