arm11: print next address to debug
fixes clang warning. Basically the next address pointer is not used for anything in the fn, except to be examined in debug. Change-Id: I253519b8e49e54490bbe7da8ec3d2dd31f49052a Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/155 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
parent
2ea7a42e22
commit
566faa17de
|
@ -605,14 +605,14 @@ static int arm11_step(struct target *target, int current,
|
||||||
if ((next_instruction & 0xFFF00070) == 0xe1200070)
|
if ((next_instruction & 0xFFF00070) == 0xe1200070)
|
||||||
{
|
{
|
||||||
address = arm11_nextpc(arm11, 0, address + 4);
|
address = arm11_nextpc(arm11, 0, address + 4);
|
||||||
LOG_DEBUG("Skipping BKPT");
|
LOG_DEBUG("Skipping BKPT %08" PRIx32, address);
|
||||||
}
|
}
|
||||||
/* skip over Wait for interrupt / Standby */
|
/* skip over Wait for interrupt / Standby */
|
||||||
/* mcr 15, 0, r?, cr7, cr0, {4} */
|
/* mcr 15, 0, r?, cr7, cr0, {4} */
|
||||||
else if ((next_instruction & 0xFFFF0FFF) == 0xee070f90)
|
else if ((next_instruction & 0xFFFF0FFF) == 0xee070f90)
|
||||||
{
|
{
|
||||||
address = arm11_nextpc(arm11, 0, address + 4);
|
address = arm11_nextpc(arm11, 0, address + 4);
|
||||||
LOG_DEBUG("Skipping WFI");
|
LOG_DEBUG("Skipping WFI %08" PRIx32, address);
|
||||||
}
|
}
|
||||||
/* ignore B to self */
|
/* ignore B to self */
|
||||||
else if ((next_instruction & 0xFEFFFFFF) == 0xeafffffe)
|
else if ((next_instruction & 0xFEFFFFFF) == 0xeafffffe)
|
||||||
|
|
Loading…
Reference in New Issue