aboutsummaryrefslogtreecommitdiff
path: root/target/mips
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-01-28 02:07:09 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-02-21 19:42:34 +0100
commit1190c53e822a287f2767ebddf792d290dd760db0 (patch)
treedb4aa6da6cb76c5e086b149a12cf1459e50f1784 /target/mips
parentfd305527e3b2dd66240ba2fede5ca3709aeb2392 (diff)
downloadqemu-1190c53e822a287f2767ebddf792d290dd760db0.zip
qemu-1190c53e822a287f2767ebddf792d290dd760db0.tar.gz
qemu-1190c53e822a287f2767ebddf792d290dd760db0.tar.bz2
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>
Diffstat (limited to 'target/mips')
-rw-r--r--target/mips/op_helper.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c
index 9fce019..b80e8f7 100644
--- a/target/mips/op_helper.c
+++ b/target/mips/op_helper.c
@@ -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);