refactor: only register undef_injection_handler during register accesses
Before, the undef_injection_handler was registered at the start of the
test, and unregistered at the end. This patch makes it so the
undef_injection_handler is only registered where a register is being
accessed. This gives us more control in which exceptions we catch.
Change-Id: I4262288543cac6b1f9ab0e6fd5092d7e3a31fb75
Signed-off-by: Charlie Bareham <charlie.bareham@arm.com>
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
1 file changed