mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/sparc: Switch to do_transaction_failed() hook
Switch the SPARC target from the old unassigned_access hook to the new do_transaction_failed hook. This will cause the "if transaction failed" code paths added in the previous commits to become active if the access is to an unassigned address. In particular we'll now handle bus errors during page table walks correctly (generating a translation error with the right kind of fault status). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-id: 20190801183012.17564-8-peter.maydell@linaro.org
This commit is contained in:
parent
9dffeec2e0
commit
f8c3db33a5
3 changed files with 18 additions and 8 deletions
|
@ -877,7 +877,7 @@ static void sparc_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->gdb_write_register = sparc_cpu_gdb_write_register;
|
||||
cc->tlb_fill = sparc_cpu_tlb_fill;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cc->do_unassigned_access = sparc_cpu_unassigned_access;
|
||||
cc->do_transaction_failed = sparc_cpu_do_transaction_failed;
|
||||
cc->do_unaligned_access = sparc_cpu_do_unaligned_access;
|
||||
cc->get_phys_page_debug = sparc_cpu_get_phys_page_debug;
|
||||
cc->vmsd = &vmstate_sparc_cpu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue