xen/arm: traps: Merge do_trap_instr_abort_guest and do_trap_data_abort_guest
authorJulien Grall <julien.grall@linaro.org>
Tue, 12 Dec 2017 19:02:12 +0000 (19:02 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 12 Dec 2017 20:12:03 +0000 (12:12 -0800)
commit6c84027dd20be0760a0b6803b251b4392a8674cc
tree46799e81c7661698c6c7e23ad8dbe74f9afd69ec
parent2a2400c2c35a75a718436f30e393035440f29e32
xen/arm: traps: Merge do_trap_instr_abort_guest and do_trap_data_abort_guest

The two helpers do_trap_instr_abort_guest and do_trap_data_abort_guest
are used trap stage-2 abort. While the former is only handling prefetch
abort and the latter data abort, they are very similarly and does not
warrant to have separate helpers.

For instance, merging the both will make easier to maintain stage-2 abort
handling. So consolidate the two helpers in a new helper
do_trap_stage2_abort.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c