On 4/18/21 9:31 AM, Philippe Mathieu-Daudé wrote:
Opcodes accessing Coprocessor 0 are privileged.
Move the CP0 helpers to sysemu/ and simplify the #ifdef'ry.
Signed-off-by: Philippe Mathieu-Daudé<f4...@amsat.org>
---
target/mips/internal.h | 9 +--
target/mips/cpu.c | 103 ---------------------------
target/mips/sysemu/cp0.c | 123 +++++++++++++++++++++++++++++++++
target/mips/sysemu/meson.build | 1 +
4 files changed, 129 insertions(+), 107 deletions(-)
create mode 100644 target/mips/sysemu/cp0.c
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~