target/mips: Add simple user-mode mips_cpu_tlb_fill()
commit8074365fc7ab51c582565f4d77299889e511af5b
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 13 Apr 2021 09:26:57 +0000 (13 11:26 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 2 May 2021 14:49:35 +0000 (2 16:49 +0200)
tree6f0bdb7aa5fb9e8fb66bad730c7e36df599eef96
parent0a31c16c9ce2639c8706b9f863724ba42a46f121
target/mips: Add simple user-mode mips_cpu_tlb_fill()

tlb_helper.c's #ifdef'ry hides a quite simple user-mode
implementation of mips_cpu_tlb_fill().

Copy the user-mode implementation (without #ifdef'ry) to
tcg/user/helper.c and simplify tlb_helper.c's #ifdef'ry.

This will allow us to restrict tlb_helper.c to sysemu.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210428170410.479308-15-f4bug@amsat.org>
target/mips/tcg/user/tlb_helper.c
target/mips/tlb_helper.c