Browse Source

target/loongarch: Constify loongarch_tcg_ops

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
coverity
Richard Henderson 3 years ago
parent
commit
2889fb8bd2
  1. 2
      target/loongarch/cpu.c

2
target/loongarch/cpu.c

@ -734,7 +734,7 @@ void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)
#ifdef CONFIG_TCG
#include "hw/core/tcg-cpu-ops.h"
static TCGCPUOps loongarch_tcg_ops = {
static const TCGCPUOps loongarch_tcg_ops = {
.initialize = loongarch_translate_init,
.synchronize_from_tb = loongarch_cpu_synchronize_from_tb,
.restore_state_to_opc = loongarch_restore_state_to_opc,

Loading…
Cancel
Save