target/mips: Optimize CPU/FPU regnames[] arrays
commit830b87ea25b3710c3fce04dee782bcf1c89ba27f
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 18 Apr 2021 21:41:10 +0000 (18 23:41 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 2 May 2021 14:49:34 +0000 (2 16:49 +0200)
tree48f310b3f6676987bd9cd3e213038bbda3532dd7
parentadbf1be325482af13e374573fc875fbe15600348
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>
target/mips/cpu.c
target/mips/fpu.c
target/mips/internal.h