]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/mips: Pass ptw_mmu_idx down from mips_cpu_tlb_fill
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 28 Jan 2024 05:58:52 +0000 (15:58 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 3 Feb 2024 06:46:10 +0000 (16:46 +1000)
commit4e999bf4197ae3dc58b7092260f98146920a7469
tree989ae0ccf4a936449c5a21f77a0309b823b4462d
parent167d6cd0e855eb64d51707fea194833695bac2c4
target/mips: Pass ptw_mmu_idx down from mips_cpu_tlb_fill

Rather than adjust env->hflags so that the value computed
by cpu_mmu_index() changes, compute the mmu_idx that we
want directly and pass it down.

Introduce symbolic constants for MMU_{KERNEL,ERL}_IDX.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/mips/cpu.h
target/mips/tcg/sysemu/tlb_helper.c