summaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-25 23:24:38 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-25 23:24:38 +0000
commit8b1f24b0903a8e43e035d5680aed2fa62c68b197 (patch)
tree89bd2f9e49589da533c8ed79076719cb50ff13de /gdbstub.c
parentb448f2f36c473f9ac8de4200a897268e0cf419c1 (diff)
new physical memory access API (used by DMA accesses)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@645 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 4fa4af79a..29f73c9cb 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -472,7 +472,7 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
if (*p == ',')
p++;
len = strtoul(p, NULL, 16);
- if (cpu_memory_rw_debug(env, mem_buf, addr, len, 0) != 0)
+ if (cpu_memory_rw_debug(env, addr, mem_buf, len, 0) != 0)
memset(mem_buf, 0, len);
memtohex(buf, mem_buf, len);
put_packet(buf);
@@ -486,7 +486,7 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
if (*p == ',')
p++;
hextomem(mem_buf, p, len);
- if (cpu_memory_rw_debug(env, mem_buf, addr, len, 1) != 0)
+ if (cpu_memory_rw_debug(env, addr, mem_buf, len, 1) != 0)
put_packet("ENN");
else
put_packet("OK");