aboutsummaryrefslogtreecommitdiff
path: root/target/mips/fpu.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-01-16 14:26:33 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-02 16:49:34 +0200
commitadbf1be325482af13e374573fc875fbe15600348 (patch)
tree8a06ad6fb34e61e802ebd3176c8543f665920b31 /target/mips/fpu.c
parentfed50ffd5ce4b03f94036232c613b2ca8fba06eb (diff)
downloadqemu-adbf1be325482af13e374573fc875fbe15600348.zip
qemu-adbf1be325482af13e374573fc875fbe15600348.tar.gz
qemu-adbf1be325482af13e374573fc875fbe15600348.tar.bz2
target/mips: Make CPU/FPU regnames[] arrays global
The CPU/FPU regnames[] arrays is used in mips_tcg_init() and mips_cpu_dump_state(), which while being in translate.c is not specific to TCG. To be able to move mips_cpu_dump_state() to cpu.c, which is compiled for all accelerator, we need to make the regnames[] arrays global to target/mips/ by declaring them in "internal.h". Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210428170410.479308-5-f4bug@amsat.org>
Diffstat (limited to 'target/mips/fpu.c')
-rw-r--r--target/mips/fpu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/mips/fpu.c b/target/mips/fpu.c
index 39a2f7f..1447dba 100644
--- a/target/mips/fpu.c
+++ b/target/mips/fpu.c
@@ -16,3 +16,10 @@ const FloatRoundMode ieee_rm[4] = {
float_round_up,
float_round_down
};
+
+const char * const fregnames[32] = {
+ "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7",
+ "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15",
+ "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23",
+ "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31",
+};