mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target/mips: Optimize regnames[] arrays
Since all entries are no more than 3/4/6 bytes (including nul terminator), can save space and pie runtime relocations by declaring regnames[] as array of 3/4/6 const char. Inspired-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210617174323.2900831-10-f4bug@amsat.org>
This commit is contained in:
parent
dae7324b97
commit
0610677293
5 changed files with 7 additions and 7 deletions
|
@ -1280,11 +1280,11 @@ TCGv_i64 fpu_f64[32];
|
|||
#define DISAS_STOP DISAS_TARGET_0
|
||||
#define DISAS_EXIT DISAS_TARGET_1
|
||||
|
||||
static const char * const regnames_HI[] = {
|
||||
static const char regnames_HI[][4] = {
|
||||
"HI0", "HI1", "HI2", "HI3",
|
||||
};
|
||||
|
||||
static const char * const regnames_LO[] = {
|
||||
static const char regnames_LO[][4] = {
|
||||
"LO0", "LO1", "LO2", "LO3",
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue