From: Andreas Fritiofson Date: Sun, 18 Jan 2015 14:35:34 +0000 (+0100) Subject: hla_target: Use the correct method to access registers X-Git-Tag: v0.9.0-rc1~133 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89ba6ffec6f83d792e6dca4865a17bb1bd202557;p=openocd 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 --- 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;