aboutsummaryrefslogtreecommitdiff
path: root/target/mips/tcg/sysemu
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-11 12:18:06 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-06-24 16:48:08 +0200
commitdae7324b97ebe2c4012f299f0b6ec48ac8c1e74d (patch)
treed84f7f8597816f99210a9f927dbca96a78ebc663 /target/mips/tcg/sysemu
parente5e6f00c3154055dba99eb3b789c38dc70578111 (diff)
downloadqemu-dae7324b97ebe2c4012f299f0b6ec48ac8c1e74d.zip
qemu-dae7324b97ebe2c4012f299f0b6ec48ac8c1e74d.tar.gz
qemu-dae7324b97ebe2c4012f299f0b6ec48ac8c1e74d.tar.bz2
target/mips: Constify host_to_mips_errno[]
Keep host_to_mips_errno[] in .rodata by marking the array const. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210617174323.2900831-9-f4bug@amsat.org>
Diffstat (limited to 'target/mips/tcg/sysemu')
-rw-r--r--target/mips/tcg/sysemu/mips-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/tcg/sysemu/mips-semi.c b/target/mips/tcg/sysemu/mips-semi.c
index 6de60fa..77108b0 100644
--- a/target/mips/tcg/sysemu/mips-semi.c
+++ b/target/mips/tcg/sysemu/mips-semi.c
@@ -75,7 +75,7 @@ enum UHIOpenFlags {
};
/* Errno values taken from asm-mips/errno.h */
-static uint16_t host_to_mips_errno[] = {
+static const uint16_t host_to_mips_errno[] = {
[ENAMETOOLONG] = 78,
#ifdef EOVERFLOW
[EOVERFLOW] = 79,