mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/mips: Optimize CPU/FPU regnames[] arrays
Since all entries are no more than 4 bytes (including nul terminator), can save space and pie runtime relocations by declaring regnames[] as array of 4 const char. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210428170410.479308-6-f4bug@amsat.org>
This commit is contained in:
parent
adbf1be325
commit
830b87ea25
3 changed files with 4 additions and 4 deletions
|
@ -71,8 +71,8 @@ struct mips_def_t {
|
|||
int32_t SAARP;
|
||||
};
|
||||
|
||||
extern const char * const regnames[32];
|
||||
extern const char * const fregnames[32];
|
||||
extern const char regnames[32][4];
|
||||
extern const char fregnames[32][4];
|
||||
|
||||
extern const struct mips_def_t mips_defs[];
|
||||
extern const int mips_defs_number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue