summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-01 20:10:25 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-01 20:10:25 +0000
commit53883c27849b6c09e30ff986f87aab2b4be2bb1e (patch)
tree89a4a1e6203bd0dbbd3a49fdc52a545b18fce570 /src/target
parent542df344112808c700940769d3f5ab134a0e1e75 (diff)
downloadopenocd+libswd-53883c27849b6c09e30ff986f87aab2b4be2bb1e.tar.gz
openocd+libswd-53883c27849b6c09e30ff986f87aab2b4be2bb1e.tar.bz2
openocd+libswd-53883c27849b6c09e30ff986f87aab2b4be2bb1e.tar.xz
openocd+libswd-53883c27849b6c09e30ff986f87aab2b4be2bb1e.zip
fix memory corruption regression introduced in 335
git-svn-id: svn://svn.berlios.de/openocd/trunk@424 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/xscale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 8f7d8351..27cd75c8 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -356,7 +356,7 @@ int xscale_receive(target_t *target, u32 *buffer, int num_words)
fields[0].num_bits = 3;
fields[0].out_value = NULL;
fields[0].out_mask = NULL;
- /* fields[0].in_value = field0; */
+ fields[0].in_value = NULL;
jtag_set_check_value(fields+0, &field0_check_value, &field0_check_mask, NULL);
fields[1].device = xscale->jtag_info.chain_pos;
@@ -649,6 +649,7 @@ int xscale_send(target_t *target, u8 *buffer, int count, int size)
fields[0].out_value = &field0_out;
fields[0].out_mask = NULL;
fields[0].in_handler = NULL;
+ fields[0].in_value = NULL;
if (!xscale->fast_memory_access)
{
jtag_set_check_value(fields+0, &field0_check_value, &field0_check_mask, NULL);