mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -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
|
@ -71,6 +71,7 @@ static void hppa_cpu_disas_set_info(CPUState *cs, disassemble_info *info)
|
|||
info->print_insn = print_insn_hppa;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
static void hppa_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
|
||||
MMUAccessType access_type,
|
||||
int mmu_idx, uintptr_t retaddr)
|
||||
|
@ -87,6 +88,7 @@ static void hppa_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
|
|||
|
||||
cpu_loop_exit_restore(cs, retaddr);
|
||||
}
|
||||
#endif /* CONFIG_USER_ONLY */
|
||||
|
||||
static void hppa_cpu_realizefn(DeviceState *dev, Error **errp)
|
||||
{
|
||||
|
@ -150,9 +152,9 @@ static void hppa_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->tcg_ops.tlb_fill = hppa_cpu_tlb_fill;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cc->get_phys_page_debug = hppa_cpu_get_phys_page_debug;
|
||||
cc->tcg_ops.do_unaligned_access = hppa_cpu_do_unaligned_access;
|
||||
dc->vmsd = &vmstate_hppa_cpu;
|
||||
#endif
|
||||
cc->do_unaligned_access = hppa_cpu_do_unaligned_access;
|
||||
cc->disas_set_info = hppa_cpu_disas_set_info;
|
||||
cc->tcg_ops.initialize = hppa_translate_init;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue