summaryrefslogtreecommitdiffstats
path: root/target/mips/tcg/user
Commit message (Collapse)AuthorAgeFilesLines
* target/mips: Add simple user-mode mips_cpu_tlb_fill()Philippe Mathieu-Daudé2021-05-021-0/+36
| | | | | | | | | | | | | | 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: Add simple user-mode mips_cpu_do_interrupt()Philippe Mathieu-Daudé2021-05-022-0/+31
The #ifdef'ry hides that the user-mode implementation of mips_cpu_do_interrupt() simply sets exception_index = EXCP_NONE. Add this simple implementation to tcg/user/tlb_helper.c, and the corresponding Meson machinery to build this file when user emulation is configured. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210428170410.479308-14-f4bug@amsat.org>