forked from auracaster/openocd
cortex_a: Use endianness for soft breakpoints
Fix endianness for cortex_r4 and cortex_r5 when inserting software breakpoints. Because the cortex_a target is used by the cortex_r architecture and some chips start in BE by default (e.g. TMS570) Change-Id: I68b7fe7c4604de67fee2e64fff0fad2691659a58 Signed-off-by: Lucien Dufour <lucien.buchmann@dufour.aero> Reviewed-on: https://review.openocd.org/c/openocd/+/8909 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
c545b9c4ab
commit
25b99ae456
@@ -30,6 +30,9 @@
|
||||
#define CORTEX_A_MIDR_PARTNUM_SHIFT 4
|
||||
|
||||
#define CPUDBG_CPUID 0xD00
|
||||
#define CPUDBG_CPUID_MASK 0xff00fff0
|
||||
#define CPUDBG_CPUID_CORTEX_R4 0x4100c140
|
||||
#define CPUDBG_CPUID_CORTEX_R5 0x4100c150
|
||||
#define CPUDBG_CTYPR 0xD04
|
||||
#define CPUDBG_TTYPR 0xD0C
|
||||
#define CPUDBG_LOCKACCESS 0xFB0
|
||||
|
||||
Reference in New Issue
Block a user