mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
3803b6b427
commit
119065574d
22 changed files with 23 additions and 23 deletions
|
@ -203,7 +203,7 @@ static const struct SysemuCPUOps cris_sysemu_ops = {
|
|||
|
||||
#include "hw/core/tcg-cpu-ops.h"
|
||||
|
||||
static struct TCGCPUOps crisv10_tcg_ops = {
|
||||
static const struct TCGCPUOps crisv10_tcg_ops = {
|
||||
.initialize = cris_initialize_crisv10_tcg,
|
||||
.cpu_exec_interrupt = cris_cpu_exec_interrupt,
|
||||
.tlb_fill = cris_cpu_tlb_fill,
|
||||
|
@ -213,7 +213,7 @@ static struct TCGCPUOps crisv10_tcg_ops = {
|
|||
#endif /* !CONFIG_USER_ONLY */
|
||||
};
|
||||
|
||||
static struct TCGCPUOps crisv32_tcg_ops = {
|
||||
static const struct TCGCPUOps crisv32_tcg_ops = {
|
||||
.initialize = cris_initialize_tcg,
|
||||
.cpu_exec_interrupt = cris_cpu_exec_interrupt,
|
||||
.tlb_fill = cris_cpu_tlb_fill,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue