diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-10-29 12:30:01 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-01-07 05:09:41 -1000 |
commit | 04a37d4ca4bfef595b2e9bec99eac8bfc806c76b (patch) | |
tree | bbfa000533efff43d45ad1946b97a0d647b016cc /target/rx | |
parent | d997143533e010b37363b10eddaf18ccb0e5659f (diff) | |
download | qemu-04a37d4ca4bfef595b2e9bec99eac8bfc806c76b.zip qemu-04a37d4ca4bfef595b2e9bec99eac8bfc806c76b.tar.gz qemu-04a37d4ca4bfef595b2e9bec99eac8bfc806c76b.tar.bz2 |
tcg: Make tb arg to synchronize_from_tb const
There is nothing within the translators that ought to be
changing the TranslationBlock data, so make it const.
This does not actually use the read-only copy of the
data structure that exists within the rx region.
Reviewed-by: Joelle van Dyne <j@getutm.app>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/rx')
-rw-r--r-- | target/rx/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 23ee17a..2bb1414 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -33,7 +33,8 @@ static void rx_cpu_set_pc(CPUState *cs, vaddr value) cpu->env.pc = value; } -static void rx_cpu_synchronize_from_tb(CPUState *cs, TranslationBlock *tb) +static void rx_cpu_synchronize_from_tb(CPUState *cs, + const TranslationBlock *tb) { RXCPU *cpu = RX_CPU(cs); |