diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-04-18 23:41:10 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-05-02 16:49:34 +0200 |
commit | 830b87ea25b3710c3fce04dee782bcf1c89ba27f (patch) | |
tree | 48f310b3f6676987bd9cd3e213038bbda3532dd7 /target/mips/fpu.c | |
parent | adbf1be325482af13e374573fc875fbe15600348 (diff) |
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>
Diffstat (limited to 'target/mips/fpu.c')
-rw-r--r-- | target/mips/fpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/fpu.c b/target/mips/fpu.c index 1447dba3fa..c7c487c1f9 100644 --- a/target/mips/fpu.c +++ b/target/mips/fpu.c @@ -17,7 +17,7 @@ const FloatRoundMode ieee_rm[4] = { float_round_down }; -const char * const fregnames[32] = { +const char fregnames[32][4] = { "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", |