mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-07 19:10:37 +00:00
target-mips: Don't use _raw load/store accessors
Use cpu_*_data instead of the direct *_raw load/store accessors. Backports commit 15353001197c413f3ddebd51152a514dce08c458 from qemu
This commit is contained in:
parent
6c68869076
commit
3190a32782
|
@ -73,7 +73,7 @@ void helper_raise_exception(CPUMIPSState *env, uint32_t exception)
|
||||||
static inline type do_##name(CPUMIPSState *env, target_ulong addr, \
|
static inline type do_##name(CPUMIPSState *env, target_ulong addr, \
|
||||||
int mem_idx) \
|
int mem_idx) \
|
||||||
{ \
|
{ \
|
||||||
return (type) insn##_raw(addr); \
|
return (type) cpu_##insn##_data(env, addr); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define HELPER_LD(name, insn, type) \
|
#define HELPER_LD(name, insn, type) \
|
||||||
|
@ -100,7 +100,7 @@ HELPER_LD(ld, ldq, int64_t)
|
||||||
static inline void do_##name(CPUMIPSState *env, target_ulong addr, \
|
static inline void do_##name(CPUMIPSState *env, target_ulong addr, \
|
||||||
type val, int mem_idx) \
|
type val, int mem_idx) \
|
||||||
{ \
|
{ \
|
||||||
insn##_raw(addr, val); \
|
cpu_##insn##_data(env, addr, val); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define HELPER_ST(name, insn, type) \
|
#define HELPER_ST(name, insn, type) \
|
||||||
|
|
Loading…
Reference in a new issue