Commit baf8ebf01a70782d222f0eaf29591dc60723f73c

Authored by bellard
1 parent 9d16dd55

fixed virtual memory access


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@416 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
@@ -42,7 +42,7 @@ target_read_memory (memaddr, myaddr, length, info) @@ -42,7 +42,7 @@ target_read_memory (memaddr, myaddr, length, info)
42 { 42 {
43 int i; 43 int i;
44 for(i = 0; i < length; i++) { 44 for(i = 0; i < length; i++) {
45 - myaddr[i] = ldub_code((void *)((long)memaddr)); 45 + myaddr[i] = ldub_code((void *)((long)memaddr + i));
46 } 46 }
47 return 0; 47 return 0;
48 } 48 }