From baf8ebf01a70782d222f0eaf29591dc60723f73c Mon Sep 17 00:00:00 2001 From: bellard Date: Mon, 27 Oct 2003 23:57:40 +0000 Subject: fixed virtual memory access git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@416 c046a42c-6fe2-441c-8c8c-71466251a162 --- disas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disas.c') diff --git a/disas.c b/disas.c index 0c8cc2a8f4..d5aa7f3713 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; } -- cgit v1.2.3