diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-01-16 14:26:33 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-05-02 16:49:34 +0200 |
commit | adbf1be325482af13e374573fc875fbe15600348 (patch) | |
tree | 8a06ad6fb34e61e802ebd3176c8543f665920b31 /target/mips/internal.h | |
parent | fed50ffd5ce4b03f94036232c613b2ca8fba06eb (diff) | |
download | qemu-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/internal.h')
-rw-r--r-- | target/mips/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/mips/internal.h b/target/mips/internal.h index 99264b8..a8644f7 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -71,6 +71,9 @@ struct mips_def_t { int32_t SAARP; }; +extern const char * const regnames[32]; +extern const char * const fregnames[32]; + extern const struct mips_def_t mips_defs[]; extern const int mips_defs_number; |