aboutsummaryrefslogtreecommitdiff
path: root/src/target/hla_target.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2015-01-18 15:35:34 +0100
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2015-02-11 22:17:04 +0000
commit89ba6ffec6f83d792e6dca4865a17bb1bd202557 (patch)
tree1f2a90a9a6b1e001198d353380a867c765363343 /src/target/hla_target.c
parent24e99ac6d9a8a7672da832ec54e015b66aef246c (diff)
hla_target: Use the correct method to access registers
Change-Id: I853fc5117bdf07ecbc4584ff59d324367b2cb3e3 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2477 Tested-by: jenkins Reviewed-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src/target/hla_target.c')
-rw-r--r--src/target/hla_target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/hla_target.c b/src/target/hla_target.c
index efc03130..35ff8248 100644
--- a/src/target/hla_target.c
+++ b/src/target/hla_target.c
@@ -443,7 +443,7 @@ static int adapter_debug_entry(struct target *target)
LOG_DEBUG("entered debug state in core mode: %s at PC 0x%08" PRIx32 ", target->state: %s",
arm_mode_name(arm->core_mode),
- *(uint32_t *)(arm->pc->value),
+ buf_get_u32(arm->pc->value, 0, 32),
target_state_name(target));
return retval;