mirror of https://gitee.com/openkylin/qemu.git
target/mips: Let do_translate_address() take MMUAccessType argument
The single caller, HELPER_LD_ATOMIC(), passes MMUAccessType to do_translate_address(). Let the prototype use it as argument, as it is stricter than an integer. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Message-Id: <20210128144125.3696119-9-f4bug@amsat.org>
This commit is contained in:
parent
fd305527e3
commit
1190c53e82
|
@ -288,13 +288,14 @@ target_ulong helper_rotx(target_ulong rs, uint32_t shift, uint32_t shiftx,
|
|||
#ifndef CONFIG_USER_ONLY
|
||||
|
||||
static inline hwaddr do_translate_address(CPUMIPSState *env,
|
||||
target_ulong address,
|
||||
int rw, uintptr_t retaddr)
|
||||
target_ulong address,
|
||||
MMUAccessType access_type,
|
||||
uintptr_t retaddr)
|
||||
{
|
||||
hwaddr paddr;
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
||||
paddr = cpu_mips_translate_address(env, address, rw);
|
||||
paddr = cpu_mips_translate_address(env, address, access_type);
|
||||
|
||||
if (paddr == -1LL) {
|
||||
cpu_loop_exit_restore(cs, retaddr);
|
||||
|
|
Loading…
Reference in New Issue