OSDN Git Service

target/sparc: Switch to do_transaction_failed() hook
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 1 Aug 2019 18:30:12 +0000 (19:30 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Sep 2019 11:01:00 +0000 (12:01 +0100)
commitf8c3db33a5e863291182f8862ddf81618a7c6194
treef289277316b2fd22f3935846fa181ef0cca3733f
parent9dffeec2e003a482ca858a887d3454c6bebed91e
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
target/sparc/cpu.c
target/sparc/cpu.h
target/sparc/ldst_helper.c