target/mips: Optimize regnames[] arrays
commit06106772933bd215a797d28cdbff4aac5676b430
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 29 May 2021 18:13:44 +0000 (29 20:13 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 24 Jun 2021 14:48:08 +0000 (24 16:48 +0200)
tree3afc1b13ef4335b9314cf401f4e3ec71e8eb733d
parentdae7324b97ebe2c4012f299f0b6ec48ac8c1e74d
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>
target/mips/cpu.c
target/mips/internal.h
target/mips/tcg/msa_translate.c
target/mips/tcg/mxu_translate.c
target/mips/tcg/translate.c