Commit baf8ebf0 authored by bellard's avatar bellard
Browse files

fixed virtual memory access


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@416 c046a42c-6fe2-441c-8c8c-71466251a162
parent 9d16dd55
...@@ -42,7 +42,7 @@ target_read_memory (memaddr, myaddr, length, info) ...@@ -42,7 +42,7 @@ target_read_memory (memaddr, myaddr, length, info)
{ {
int i; int i;
for(i = 0; i < length; i++) { for(i = 0; i < length; i++) {
myaddr[i] = ldub_code((void *)((long)memaddr)); myaddr[i] = ldub_code((void *)((long)memaddr + i));
} }
return 0; return 0;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment