memory: fix RAM subpages in newly initialized pages
[qemu/opensuse.git] / softmmu_defs.h
blobc5a2bcd3e21d645d3dd8e1350ea814f4535174d1
1 /*
2 * Software MMU support
4 * Declare helpers used by TCG for qemu_ld/st ops.
6 * Used by softmmu_exec.h, TCG targets and exec-all.h.
8 */
9 #ifndef SOFTMMU_DEFS_H
10 #define SOFTMMU_DEFS_H
12 uint8_t REGPARM __ldb_mmu(target_ulong addr, int mmu_idx);
13 void REGPARM __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx);
14 uint16_t REGPARM __ldw_mmu(target_ulong addr, int mmu_idx);
15 void REGPARM __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx);
16 uint32_t REGPARM __ldl_mmu(target_ulong addr, int mmu_idx);
17 void REGPARM __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx);
18 uint64_t REGPARM __ldq_mmu(target_ulong addr, int mmu_idx);
19 void REGPARM __stq_mmu(target_ulong addr, uint64_t val, int mmu_idx);
21 uint8_t REGPARM __ldb_cmmu(target_ulong addr, int mmu_idx);
22 void REGPARM __stb_cmmu(target_ulong addr, uint8_t val, int mmu_idx);
23 uint16_t REGPARM __ldw_cmmu(target_ulong addr, int mmu_idx);
24 void REGPARM __stw_cmmu(target_ulong addr, uint16_t val, int mmu_idx);
25 uint32_t REGPARM __ldl_cmmu(target_ulong addr, int mmu_idx);
26 void REGPARM __stl_cmmu(target_ulong addr, uint32_t val, int mmu_idx);
27 uint64_t REGPARM __ldq_cmmu(target_ulong addr, int mmu_idx);
28 void REGPARM __stq_cmmu(target_ulong addr, uint64_t val, int mmu_idx);
30 #endif