arch-arm: Adjust breakpoint EC depending on source state
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 22 May 2018 10:58:28 +0000 (11:58 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 6 Jun 2018 13:52:39 +0000 (13:52 +0000)
commita9b78bcee79a9228d0590091c5f6dfc265e59300
treecbdfa7ce434f0b188aa9d4765b123f3b7f25886d
parente404dddca9715e4d0098830783ca3f6fca86f35b
arch-arm: Adjust breakpoint EC depending on source state

The software breakpoint exception class needs to be adjusted depending
on the source EL's execution state. This change fixes an incorrect
exception class when taking a breakpoint from aarch64.

Change-Id: I99d87a04be6bf9ce3a69f6b19969fa006cfd63a4
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/10809
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/arch/arm/faults.cc
src/arch/arm/faults.hh
src/arch/arm/types.hh