1 | #ifndef SOFTMMU_DEFS_H
|
---|
2 | #define SOFTMMU_DEFS_H
|
---|
3 |
|
---|
4 | #ifndef VBOX
|
---|
5 | uint8_t REGPARM __ldb_mmu(target_ulong addr, int mmu_idx);
|
---|
6 | void REGPARM __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx);
|
---|
7 | uint16_t REGPARM __ldw_mmu(target_ulong addr, int mmu_idx);
|
---|
8 | void REGPARM __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx);
|
---|
9 | uint32_t REGPARM __ldl_mmu(target_ulong addr, int mmu_idx);
|
---|
10 | void REGPARM __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx);
|
---|
11 | uint64_t REGPARM __ldq_mmu(target_ulong addr, int mmu_idx);
|
---|
12 | void REGPARM __stq_mmu(target_ulong addr, uint64_t val, int mmu_idx);
|
---|
13 |
|
---|
14 | uint8_t REGPARM __ldb_cmmu(target_ulong addr, int mmu_idx);
|
---|
15 | void REGPARM __stb_cmmu(target_ulong addr, uint8_t val, int mmu_idx);
|
---|
16 | uint16_t REGPARM __ldw_cmmu(target_ulong addr, int mmu_idx);
|
---|
17 | void REGPARM __stw_cmmu(target_ulong addr, uint16_t val, int mmu_idx);
|
---|
18 | uint32_t REGPARM __ldl_cmmu(target_ulong addr, int mmu_idx);
|
---|
19 | void REGPARM __stl_cmmu(target_ulong addr, uint32_t val, int mmu_idx);
|
---|
20 | uint64_t REGPARM __ldq_cmmu(target_ulong addr, int mmu_idx);
|
---|
21 | void REGPARM __stq_cmmu(target_ulong addr, uint64_t val, int mmu_idx);
|
---|
22 | #else /* VBOX */
|
---|
23 | RTCCUINTREG REGPARM __ldb_mmu(target_ulong addr, int mmu_idx);
|
---|
24 | void REGPARM __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx);
|
---|
25 | RTCCUINTREG REGPARM __ldw_mmu(target_ulong addr, int mmu_idx);
|
---|
26 | void REGPARM __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx);
|
---|
27 | RTCCUINTREG REGPARM __ldl_mmu(target_ulong addr, int mmu_idx);
|
---|
28 | void REGPARM __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx);
|
---|
29 | uint64_t REGPARM __ldq_mmu(target_ulong addr, int mmu_idx);
|
---|
30 | void REGPARM __stq_mmu(target_ulong addr, uint64_t val, int mmu_idx);
|
---|
31 |
|
---|
32 | RTCCUINTREG REGPARM __ldb_cmmu(target_ulong addr, int mmu_idx);
|
---|
33 | void REGPARM __stb_cmmu(target_ulong addr, uint8_t val, int mmu_idx);
|
---|
34 | RTCCUINTREG REGPARM __ldw_cmmu(target_ulong addr, int mmu_idx);
|
---|
35 | void REGPARM __stw_cmmu(target_ulong addr, uint16_t val, int mmu_idx);
|
---|
36 | RTCCUINTREG REGPARM __ldl_cmmu(target_ulong addr, int mmu_idx);
|
---|
37 | void REGPARM __stl_cmmu(target_ulong addr, uint32_t val, int mmu_idx);
|
---|
38 | uint64_t REGPARM __ldq_cmmu(target_ulong addr, int mmu_idx);
|
---|
39 | void REGPARM __stq_cmmu(target_ulong addr, uint64_t val, int mmu_idx);
|
---|
40 |
|
---|
41 | # ifdef REM_PHYS_ADDR_IN_TLB
|
---|
42 | RTCCUINTREG REGPARM __ldb_vbox_phys(RTCCUINTREG addr);
|
---|
43 | RTCCUINTREG REGPARM __ldub_vbox_phys(RTCCUINTREG addr);
|
---|
44 | void REGPARM __stb_vbox_phys(RTCCUINTREG addr, RTCCUINTREG val);
|
---|
45 | RTCCUINTREG REGPARM __ldw_vbox_phys(RTCCUINTREG addr);
|
---|
46 | RTCCUINTREG REGPARM __lduw_vbox_phys(RTCCUINTREG addr);
|
---|
47 | void REGPARM __stw_vbox_phys(RTCCUINTREG addr, RTCCUINTREG val);
|
---|
48 | RTCCUINTREG REGPARM __ldl_vbox_phys(RTCCUINTREG addr);
|
---|
49 | RTCCUINTREG REGPARM __ldul_vbox_phys(RTCCUINTREG addr);
|
---|
50 | void REGPARM __stl_vbox_phys(RTCCUINTREG addr, RTCCUINTREG val);
|
---|
51 | uint64_t REGPARM __ldq_vbox_phys(RTCCUINTREG addr);
|
---|
52 | void REGPARM __stq_vbox_phys(RTCCUINTREG addr, uint64_t val);
|
---|
53 | # endif
|
---|
54 |
|
---|
55 | #endif /* VBOX */
|
---|
56 |
|
---|
57 | #endif
|
---|