From 4835a21dea7551fa24008a627dba107e9739eaab Mon Sep 17 00:00:00 2001 From: Tim Sander Date: Mon, 31 Mar 2014 21:21:44 +0100 Subject: [PATCH] target: fix incorrect arm cpu monitor mode encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit According to the "Arm Arch Ref Manual ARMv7-a and ARMv7-R edition" the CPSR encoding for Monitor mode is 0b10110 (22) not 0b11010 (26) as is currently used. Change-Id: I73373a0029a81abc92febf518b88bf0dd4dec1fa Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/2081 Reviewed-by: Jörg Wunsch Tested-by: jenkins Reviewed-by: Younes REGAIEG Reviewed-by: Tim Sander Reviewed-by: Freddie Chopin --- src/target/arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/arm.h b/src/target/arm.h index c7c8dc0f..88b5902e 100644 --- a/src/target/arm.h +++ b/src/target/arm.h @@ -58,8 +58,8 @@ enum arm_mode { ARM_MODE_FIQ = 17, ARM_MODE_IRQ = 18, ARM_MODE_SVC = 19, + ARM_MODE_MON = 22, ARM_MODE_ABT = 23, - ARM_MODE_MON = 26, ARM_MODE_UND = 27, ARM_MODE_SYS = 31, -- 2.39.5