diff options
author | Matthias Welwarsky <matthias.welwarsky@sysgo.com> | 2016-10-26 17:32:43 +0200 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2017-02-24 09:11:52 +0000 |
commit | 5d00fd9d1dc504335dd71e474a3d61dec7696c40 (patch) | |
tree | cd5f3092f02a8599de8bbd3d7265e4f939f0a5f6 /src/target/aarch64.c | |
parent | 7c85165bc1a606883faa9bec51ebefbc652301f4 (diff) | |
download | riscv-openocd-5d00fd9d1dc504335dd71e474a3d61dec7696c40.zip riscv-openocd-5d00fd9d1dc504335dd71e474a3d61dec7696c40.tar.gz riscv-openocd-5d00fd9d1dc504335dd71e474a3d61dec7696c40.tar.bz2 |
aarch64: fix software breakpoints when in aarch32 state
Use the correct opcode for Aarch32 state, both for the breakpoint
instruction itself and the cache handling functions.
Change-Id: I975fa67b1e577b54f5c672a01d516419c6a614b2
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/3981
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src/target/aarch64.c')
-rw-r--r-- | src/target/aarch64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/aarch64.c b/src/target/aarch64.c index 0a6b67f..833dc7a 100644 --- a/src/target/aarch64.c +++ b/src/target/aarch64.c @@ -915,7 +915,7 @@ static int aarch64_set_breakpoint(struct target *target, } else if (breakpoint->type == BKPT_SOFT) { uint8_t code[4]; - buf_set_u32(code, 0, 32, ARMV8_HLT(0x11)); + buf_set_u32(code, 0, 32, armv8_opcode(armv8, ARMV8_OPC_HLT)); retval = target_read_memory(target, breakpoint->address & 0xFFFFFFFFFFFFFFFE, breakpoint->length, 1, |