mirror of
https://github.com/mii443/qemu.git
synced 2025-08-30 19:09:35 +00:00
cpu: Turn cpu_unassigned_access() into a CPUState hook
Use it for all targets, but be careful not to pass invalid CPUState. cpu_single_env can be NULL, e.g. on Xen. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
@ -771,6 +771,7 @@ static void sparc_cpu_class_init(ObjectClass *oc, void *data)
|
||||
|
||||
cc->do_interrupt = sparc_cpu_do_interrupt;
|
||||
cc->dump_state = sparc_cpu_dump_state;
|
||||
cpu_class_set_do_unassigned_access(cc, sparc_cpu_unassigned_access);
|
||||
}
|
||||
|
||||
static const TypeInfo sparc_cpu_type_info = {
|
||||
|
Reference in New Issue
Block a user