etm.c:997: error: comparison is always true due to limited range of
data type by replacing ~0UL with 0xffffffff. The comparision is against a u32.
---
src/target/etm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/target/etm.c b/src/target/etm.c
index 41897ec..c60cc0d 100644
--- a/src/target/etm.c
+++ b/src/target/etm.c
@@ -992,9 +992,9 @@ static int etmv1_analyze_trace(etm_context_t *ctx, struct
command_context_s *cmd
if ((pipestat == STAT_IE) || (pipestat == STAT_ID))
{
if (((instruction.type == ARM_B) ||
- (instruction.type == ARM_BL) ||
- (instruction.type == ARM_BLX)) &&
- (instruction.info.b_bl_bx_blx.target_address !=
~0UL))
+ (instruction.type == ARM_BL) ||
+ (instruction.type == ARM_BLX)) &&
+ (instruction.info.b_bl_bx_blx.target_address !=
0xffffffff))
{
next_pc =
instruction.info.b_bl_bx_blx.target_address;
}
--
1.5.6.5
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development