mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
cpu: move do_unaligned_access to tcg_ops
make it consistently SOFTMMU-only. Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> [claudio: make the field presence in cpu.h unconditional, removing the ifdefs] Message-Id: <20210204163931.7358-12-cfontana@suse.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
cbc183d2d9
commit
8535dd702d
14 changed files with 23 additions and 19 deletions
|
@ -365,7 +365,6 @@ static void mb_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->class_by_name = mb_cpu_class_by_name;
|
||||
cc->has_work = mb_cpu_has_work;
|
||||
cc->tcg_ops.do_interrupt = mb_cpu_do_interrupt;
|
||||
cc->do_unaligned_access = mb_cpu_do_unaligned_access;
|
||||
cc->tcg_ops.cpu_exec_interrupt = mb_cpu_exec_interrupt;
|
||||
cc->dump_state = mb_cpu_dump_state;
|
||||
cc->set_pc = mb_cpu_set_pc;
|
||||
|
@ -375,6 +374,7 @@ static void mb_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->tcg_ops.tlb_fill = mb_cpu_tlb_fill;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cc->tcg_ops.do_transaction_failed = mb_cpu_transaction_failed;
|
||||
cc->tcg_ops.do_unaligned_access = mb_cpu_do_unaligned_access;
|
||||
cc->get_phys_page_attrs_debug = mb_cpu_get_phys_page_attrs_debug;
|
||||
dc->vmsd = &vmstate_mb_cpu;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue