summaryrefslogtreecommitdiffstats
path: root/target/s390x
diff options
context:
space:
mode:
authorRichard Henderson2021-02-28 00:21:17 +0100
committerRichard Henderson2021-05-27 00:33:59 +0200
commit119065574d02deffc28fe5b6a864db9b467c6ffd (patch)
treec39e28d90f8c3744c6ec816109df6c1b7a3000f8 /target/s390x
parenttarget/mips: Fold jazz behaviour into mips_cpu_do_transaction_failed (diff)
downloadqemu-119065574d02deffc28fe5b6a864db9b467c6ffd.tar.gz
qemu-119065574d02deffc28fe5b6a864db9b467c6ffd.tar.xz
qemu-119065574d02deffc28fe5b6a864db9b467c6ffd.zip
hw/core: Constify TCGCPUOps
We no longer have any runtime modifications to this struct, so declare them all const. Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20210227232519.222663-3-richard.henderson@linaro.org>
Diffstat (limited to 'target/s390x')
-rw-r--r--target/s390x/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index bd5070c783..890f382a36 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -490,7 +490,7 @@ static const struct SysemuCPUOps s390_sysemu_ops = {
#ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h"
-static struct TCGCPUOps s390_tcg_ops = {
+static const struct TCGCPUOps s390_tcg_ops = {
.initialize = s390x_translate_init,
.tlb_fill = s390_cpu_tlb_fill,