Commited. The patch below fixes a bug in target/target.c that causes errors on
reads/writes that access the end of the address space (0xffffffff).
Regards,
Dominic
Index: src/target/target.c
===================================================================
--- src/target/target.c (revision 956)
+++ src/target/target.c (working copy)
@@ -870,7 +870,7 @@
return ERROR_FAIL;
}
- if (address+size<address)
+ if ((address + size - 1) < address)
{
/* GDB can request this when e.g. PC is 0xfffffffc*/
LOG_ERROR("address+size wrapped(0x%08x, 0x%08x)", address,
size);
@@ -946,7 +946,7 @@
return ERROR_FAIL;
}
- if (address+size<address)
+ if ((address + size - 1) < address)
{
/* GDB can request this when e.g. PC is 0xfffffffc*/
LOG_ERROR("address+size wrapped(0x%08x, 0x%08x)", address,
size);
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development