OSDN Git Service

target/arm: Factor out fault delivery code
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:55 +0000 (15:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 16:13:53 +0000 (17:13 +0100)
commitaac43da1d772a50778ab1252c13c08c2eb31fb39
tree31340e3e85fbac127d99f605e049200f64970afc
parent04e3aabde397e7abc78ba1ce6cbd144d5fbb1722
target/arm: Factor out fault delivery code

We currently have some similar code in tlb_fill() and in
arm_cpu_do_unaligned_access() for delivering a data abort or prefetch
abort.  We're also going to want to do the same thing to handle
external aborts.  Factor out the common code into a new function
deliver_fault().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/arm/op_helper.c