target/mips: Move CP0 helpers to sysemu/cp0.c
commit5679479b9a1b0dd4772904c3af0d02bb3c9e635f
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 13 Apr 2021 21:01:12 +0000 (13 23:01 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 2 May 2021 14:49:35 +0000 (2 16:49 +0200)
tree047f35cb55993d1d0d3fcc354ba1d72dba0be3f4
parent8aa52bdc87aaf54c497902a91aaf4096cb780660
target/mips: Move CP0 helpers to sysemu/cp0.c

Opcodes accessing Coprocessor 0 are privileged.
Move the CP0 helpers to sysemu/ and simplify the #ifdef'ry.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210428170410.479308-28-f4bug@amsat.org>
target/mips/cpu.c
target/mips/internal.h
target/mips/sysemu/cp0.c [new file with mode: 0644]
target/mips/sysemu/meson.build