summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-10-24 06:36:06 -0700
committerZachary T Welch <zw@superlucidity.net>2009-11-05 18:03:19 -0800
commitaf84cd33a2e0b8af31d4c7dbd64cfd0348d65a0e (patch)
tree04a6469e846f05a09e12ea64742707b20e215f89 /src
parent4d67b0974f23c1d24050eeec8c8533a2396fa6d4 (diff)
downloadopenocd_libswd-af84cd33a2e0b8af31d4c7dbd64cfd0348d65a0e.tar.gz
openocd_libswd-af84cd33a2e0b8af31d4c7dbd64cfd0348d65a0e.tar.bz2
openocd_libswd-af84cd33a2e0b8af31d4c7dbd64cfd0348d65a0e.tar.xz
openocd_libswd-af84cd33a2e0b8af31d4c7dbd64cfd0348d65a0e.zip
Improve xscale command argument parsing.
Diffstat (limited to 'src')
-rw-r--r--src/target/xscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 4598872d..78c21248 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -3290,7 +3290,7 @@ static int xscale_handle_vector_catch_command(command_context_t *cmd_ctx,
}
else
{
- COMMAND_PARSE_NUMBER(u32, args[0], xscale->vector_catch);
+ COMMAND_PARSE_NUMBER(u8, args[0], xscale->vector_catch);
buf_set_u32(xscale->reg_cache->reg_list[XSCALE_DCSR].value, 16, 8, xscale->vector_catch);
xscale_write_dcsr(target, -1, -1);
}
@@ -3478,7 +3478,7 @@ xscale_handle_trace_image_command(struct command_context_s *cmd_ctx,
if (argc >= 2)
{
xscale->trace.image->base_address_set = 1;
- COMMAND_PARSE_NUMBER(u32, args[1], xscale->trace.image->base_address);
+ COMMAND_PARSE_NUMBER(int, args[1], xscale->trace.image->base_address);
}
else
{