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