diff options
author | Richard Henderson | 2021-02-28 00:21:17 +0100 |
---|---|---|
committer | Richard Henderson | 2021-05-27 00:33:59 +0200 |
commit | 119065574d02deffc28fe5b6a864db9b467c6ffd (patch) | |
tree | c39e28d90f8c3744c6ec816109df6c1b7a3000f8 /target/xtensa | |
parent | target/mips: Fold jazz behaviour into mips_cpu_do_transaction_failed (diff) | |
download | qemu-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/xtensa')
-rw-r--r-- | target/xtensa/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index da4dbecdf1..58ec3a0862 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -190,7 +190,7 @@ static const struct SysemuCPUOps xtensa_sysemu_ops = { #include "hw/core/tcg-cpu-ops.h" -static struct TCGCPUOps xtensa_tcg_ops = { +static const struct TCGCPUOps xtensa_tcg_ops = { .initialize = xtensa_translate_init, .cpu_exec_interrupt = xtensa_cpu_exec_interrupt, .tlb_fill = xtensa_cpu_tlb_fill, |