From 89ba6ffec6f83d792e6dca4865a17bb1bd202557 Mon Sep 17 00:00:00 2001 From: Andreas Fritiofson Date: Sun, 18 Jan 2015 15:35:34 +0100 Subject: [PATCH] hla_target: Use the correct method to access registers Change-Id: I853fc5117bdf07ecbc4584ff59d324367b2cb3e3 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/2477 Tested-by: jenkins Reviewed-by: Uwe Bonnes Reviewed-by: Paul Fertser --- src/target/hla_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5