root / softmmu_defs.h @ 058f8f16
History | View | Annotate | Download (2.5 kB)
1 | efbf29b6 | Blue Swirl | /*
|
---|---|---|---|
2 | efbf29b6 | Blue Swirl | * Software MMU support
|
3 | efbf29b6 | Blue Swirl | *
|
4 | efbf29b6 | Blue Swirl | * Declare helpers used by TCG for qemu_ld/st ops.
|
5 | efbf29b6 | Blue Swirl | *
|
6 | efbf29b6 | Blue Swirl | * Used by softmmu_exec.h, TCG targets and exec-all.h.
|
7 | efbf29b6 | Blue Swirl | *
|
8 | efbf29b6 | Blue Swirl | */
|
9 | 79383c9c | blueswir1 | #ifndef SOFTMMU_DEFS_H
|
10 | 79383c9c | blueswir1 | #define SOFTMMU_DEFS_H
|
11 | 79383c9c | blueswir1 | |
12 | e141ab52 | Blue Swirl | #ifndef CONFIG_TCG_PASS_AREG0
|
13 | 6a18ae2d | Blue Swirl | uint8_t __ldb_mmu(target_ulong addr, int mmu_idx);
|
14 | 6a18ae2d | Blue Swirl | void __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx); |
15 | 6a18ae2d | Blue Swirl | uint16_t __ldw_mmu(target_ulong addr, int mmu_idx);
|
16 | 6a18ae2d | Blue Swirl | void __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx); |
17 | 6a18ae2d | Blue Swirl | uint32_t __ldl_mmu(target_ulong addr, int mmu_idx);
|
18 | 6a18ae2d | Blue Swirl | void __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx); |
19 | 6a18ae2d | Blue Swirl | uint64_t __ldq_mmu(target_ulong addr, int mmu_idx);
|
20 | 6a18ae2d | Blue Swirl | void __stq_mmu(target_ulong addr, uint64_t val, int mmu_idx); |
21 | 79383c9c | blueswir1 | |
22 | 6a18ae2d | Blue Swirl | uint8_t __ldb_cmmu(target_ulong addr, int mmu_idx);
|
23 | 6a18ae2d | Blue Swirl | void __stb_cmmu(target_ulong addr, uint8_t val, int mmu_idx); |
24 | 6a18ae2d | Blue Swirl | uint16_t __ldw_cmmu(target_ulong addr, int mmu_idx);
|
25 | 6a18ae2d | Blue Swirl | void __stw_cmmu(target_ulong addr, uint16_t val, int mmu_idx); |
26 | 6a18ae2d | Blue Swirl | uint32_t __ldl_cmmu(target_ulong addr, int mmu_idx);
|
27 | 6a18ae2d | Blue Swirl | void __stl_cmmu(target_ulong addr, uint32_t val, int mmu_idx); |
28 | 6a18ae2d | Blue Swirl | uint64_t __ldq_cmmu(target_ulong addr, int mmu_idx);
|
29 | 6a18ae2d | Blue Swirl | void __stq_cmmu(target_ulong addr, uint64_t val, int mmu_idx); |
30 | e141ab52 | Blue Swirl | #else
|
31 | e141ab52 | Blue Swirl | uint8_t helper_ldb_mmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
32 | e141ab52 | Blue Swirl | void helper_stb_mmu(CPUArchState *env, target_ulong addr, uint8_t val,
|
33 | e141ab52 | Blue Swirl | int mmu_idx);
|
34 | e141ab52 | Blue Swirl | uint16_t helper_ldw_mmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
35 | e141ab52 | Blue Swirl | void helper_stw_mmu(CPUArchState *env, target_ulong addr, uint16_t val,
|
36 | e141ab52 | Blue Swirl | int mmu_idx);
|
37 | e141ab52 | Blue Swirl | uint32_t helper_ldl_mmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
38 | e141ab52 | Blue Swirl | void helper_stl_mmu(CPUArchState *env, target_ulong addr, uint32_t val,
|
39 | e141ab52 | Blue Swirl | int mmu_idx);
|
40 | e141ab52 | Blue Swirl | uint64_t helper_ldq_mmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
41 | e141ab52 | Blue Swirl | void helper_stq_mmu(CPUArchState *env, target_ulong addr, uint64_t val,
|
42 | e141ab52 | Blue Swirl | int mmu_idx);
|
43 | e141ab52 | Blue Swirl | |
44 | e141ab52 | Blue Swirl | uint8_t helper_ldb_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
45 | e141ab52 | Blue Swirl | void helper_stb_cmmu(CPUArchState *env, target_ulong addr, uint8_t val,
|
46 | e141ab52 | Blue Swirl | int mmu_idx);
|
47 | e141ab52 | Blue Swirl | uint16_t helper_ldw_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
48 | e141ab52 | Blue Swirl | void helper_stw_cmmu(CPUArchState *env, target_ulong addr, uint16_t val,
|
49 | e141ab52 | Blue Swirl | int mmu_idx);
|
50 | e141ab52 | Blue Swirl | uint32_t helper_ldl_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
51 | e141ab52 | Blue Swirl | void helper_stl_cmmu(CPUArchState *env, target_ulong addr, uint32_t val,
|
52 | e141ab52 | Blue Swirl | int mmu_idx);
|
53 | e141ab52 | Blue Swirl | uint64_t helper_ldq_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx);
|
54 | e141ab52 | Blue Swirl | void helper_stq_cmmu(CPUArchState *env, target_ulong addr, uint64_t val,
|
55 | e141ab52 | Blue Swirl | int mmu_idx);
|
56 | e141ab52 | Blue Swirl | #endif
|
57 | 79383c9c | blueswir1 | |
58 | 79383c9c | blueswir1 | #endif |