aboutsummaryrefslogtreecommitdiff
path: root/target/m68k
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-02-27 15:21:17 -0800
committerRichard Henderson <richard.henderson@linaro.org>2021-05-26 15:33:59 -0700
commit119065574d02deffc28fe5b6a864db9b467c6ffd (patch)
treec39e28d90f8c3744c6ec816109df6c1b7a3000f8 /target/m68k
parent3803b6b4273afd50021c39a8e34ca706aeadb684 (diff)
downloadqemu-119065574d02deffc28fe5b6a864db9b467c6ffd.zip
qemu-119065574d02deffc28fe5b6a864db9b467c6ffd.tar.gz
qemu-119065574d02deffc28fe5b6a864db9b467c6ffd.tar.bz2
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/m68k')
-rw-r--r--target/m68k/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c
index 4238775..72de6e9 100644
--- a/target/m68k/cpu.c
+++ b/target/m68k/cpu.c
@@ -513,7 +513,7 @@ static const struct SysemuCPUOps m68k_sysemu_ops = {
#include "hw/core/tcg-cpu-ops.h"
-static struct TCGCPUOps m68k_tcg_ops = {
+static const struct TCGCPUOps m68k_tcg_ops = {
.initialize = m68k_tcg_init,
.cpu_exec_interrupt = m68k_cpu_exec_interrupt,
.tlb_fill = m68k_cpu_tlb_fill,