target/mips: Move helper_cache() to tcg/sysemu/special_helper.c
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 13 Apr 2021 18:21:16 +0000 (20:21 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 2 May 2021 14:49:35 +0000 (16:49 +0200)
commitecdbcb0a9450e9109ae3dd6cfa10c71fda753bda
tree8ec95dfa2a174e9e1e5ce10801bda9f913ecb0f3
parentd60146a9389db771fa4061d9376ba3e208ff2cdb
target/mips: Move helper_cache() to tcg/sysemu/special_helper.c

Move helper_cache() to tcg/sysemu/special_helper.c.

The CACHE opcode is privileged and is not accessible in user
emulation. However we get a link failure when restricting the
symbol to sysemu. For now, add a stub helper to satisfy linking,
which abort if ever called.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210428170410.479308-25-f4bug@amsat.org>
target/mips/helper.h
target/mips/op_helper.c
target/mips/tcg/sysemu/special_helper.c
target/mips/tcg/sysemu_helper.h.inc
target/mips/translate.c