From: aliguori Date: Tue, 18 Nov 2008 20:09:43 +0000 (+0000) Subject: Set mem_io_vaddr on io_read (Jan Kiszka) X-Git-Tag: TizenStudio_2.0_p2.3~10487 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecbe88c86a60b74bef57f0caded7c95a63b8d698;p=sdk%2Femulator%2Fqemu.git Set mem_io_vaddr on io_read (Jan Kiszka) Analogously to write accesses, we have to save the memory address also on read accesses in order to support read watchpoints. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5739 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/softmmu_template.h b/softmmu_template.h index 98dd378..cf91804 100644 --- a/softmmu_template.h +++ b/softmmu_template.h @@ -64,6 +64,7 @@ static inline DATA_TYPE glue(io_read, SUFFIX)(target_phys_addr_t physaddr, cpu_io_recompile(env, retaddr); } + env->mem_io_vaddr = addr; #if SHIFT <= 2 res = io_mem_read[index][SHIFT](io_mem_opaque[index], physaddr); #else