aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-10-27 23:57:40 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-10-27 23:57:40 +0000
commitbaf8ebf01a70782d222f0eaf29591dc60723f73c (patch)
treed12dc37b50ed46294dd49608c04f678f020e9797 /disas.c
parent9d16dd550ee51431d83e9fbfbc0adc022219b4c1 (diff)
downloadqemu-baf8ebf01a70782d222f0eaf29591dc60723f73c.zip
qemu-baf8ebf01a70782d222f0eaf29591dc60723f73c.tar.gz
qemu-baf8ebf01a70782d222f0eaf29591dc60723f73c.tar.bz2
fixed virtual memory access
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@416 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disas.c b/disas.c
index 0c8cc2a..d5aa7f3 100644
--- a/disas.c
+++ b/disas.c
@@ -42,7 +42,7 @@ target_read_memory (memaddr, myaddr, length, info)
{
int i;
for(i = 0; i < length; i++) {
- myaddr[i] = ldub_code((void *)((long)memaddr));
+ myaddr[i] = ldub_code((void *)((long)memaddr + i));
}
return 0;
}