summaryrefslogtreecommitdiffstats
path: root/target/riscv
diff options
context:
space:
mode:
authorRichard Henderson2019-04-03 04:07:11 +0200
committerRichard Henderson2019-05-10 20:12:50 +0200
commitc319dc13579a92937bffe02ad2c9f1a550e73973 (patch)
tree0b20168d6277dc00bb2f306d7a73a5345c1ed6ad /target/riscv
parenttarget/xtensa: Convert to CPUClass::tlb_fill (diff)
downloadqemu-c319dc13579a92937bffe02ad2c9f1a550e73973.tar.gz
qemu-c319dc13579a92937bffe02ad2c9f1a550e73973.tar.xz
qemu-c319dc13579a92937bffe02ad2c9f1a550e73973.zip
tcg: Use CPUClass::tlb_fill in cputlb.c
We can now use the CPUClass hook instead of a named function. Create a static tlb_fill function to avoid other changes within cputlb.c. This also isolates the asserts within. Remove the named tlb_fill function from all of the targets. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/riscv')
-rw-r--r--target/riscv/cpu_helper.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c
index 2535435260..41d6db41c3 100644
--- a/target/riscv/cpu_helper.c
+++ b/target/riscv/cpu_helper.c
@@ -378,12 +378,6 @@ void riscv_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
env->badaddr = addr;
riscv_raise_exception(env, cs->exception_index, retaddr);
}
-
-void tlb_fill(CPUState *cs, target_ulong addr, int size,
- MMUAccessType access_type, int mmu_idx, uintptr_t retaddr)
-{
- riscv_cpu_tlb_fill(cs, addr, size, access_type, mmu_idx, false, retaddr);
-}
#endif
bool riscv_cpu_tlb_fill(CPUState *cs, vaddr address, int size,