mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
x86: use wrappers for memory access helpers
Switch to wrapped versions of memory access functions. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
608badfc66
commit
329e607d8e
3 changed files with 126 additions and 103 deletions
|
@ -190,6 +190,11 @@ WRAP_LD(uint32_t, ldub_data)
|
|||
WRAP_LD(uint32_t, lduw_data)
|
||||
WRAP_LD(uint32_t, ldl_data)
|
||||
WRAP_LD(uint64_t, ldq_data)
|
||||
|
||||
WRAP_LD(uint32_t, ldub_kernel)
|
||||
WRAP_LD(uint32_t, lduw_kernel)
|
||||
WRAP_LD(uint32_t, ldl_kernel)
|
||||
WRAP_LD(uint64_t, ldq_kernel)
|
||||
#undef WRAP_LD
|
||||
|
||||
#define WRAP_ST(datatype, fn) \
|
||||
|
@ -207,4 +212,9 @@ WRAP_ST(uint32_t, stb_data)
|
|||
WRAP_ST(uint32_t, stw_data)
|
||||
WRAP_ST(uint32_t, stl_data)
|
||||
WRAP_ST(uint64_t, stq_data)
|
||||
|
||||
WRAP_ST(uint32_t, stb_kernel)
|
||||
WRAP_ST(uint32_t, stw_kernel)
|
||||
WRAP_ST(uint32_t, stl_kernel)
|
||||
WRAP_ST(uint64_t, stq_kernel)
|
||||
#undef WRAP_ST
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue