This is an automated email from Gerrit.

Matthias Welwarsky ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/3996

-- gerrit

commit aeaf9790445aec6ae9c6bb02f6547dc905a45d3e
Author: Matthias Welwarsky <[email protected]>
Date:   Fri Feb 17 16:22:52 2017 +0100

    armv8_dpm: fix exception handling
    
    after handling of an exception in debug state, immediately
    restore the original core state.
    
    Change-Id: Ie53b63c9f19815f717f4df4390fbc13f0a204cc2
    Signed-off-by: Matthias Welwarsky <[email protected]>

diff --git a/src/target/armv8_dpm.c b/src/target/armv8_dpm.c
index e5d10df..f4e7a07 100644
--- a/src/target/armv8_dpm.c
+++ b/src/target/armv8_dpm.c
@@ -1312,6 +1312,8 @@ void armv8_dpm_handle_exception(struct arm_dpm *dpm)
        core_state = armv8_dpm_get_core_state(dpm);
        armv8_select_opcodes(armv8, core_state == ARM_STATE_AARCH64);
        armv8_select_reg_access(armv8, core_state == ARM_STATE_AARCH64);
+
+       armv8_dpm_modeswitch(dpm, ARM_MODE_ANY);
 }
 
 /*----------------------------------------------------------------------*/

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to