From 2e38847b8d3055f5203d7a258c4a48845cdb4f11 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Fri, 13 Dec 2013 16:31:02 +1000 Subject: exec: Make cpu_memory_rw_debug use the CPUs AS Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- exec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index 1e99115..b69fd29 100644 --- a/exec.c +++ b/exec.c @@ -2720,11 +2720,11 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr, if (l > len) l = len; phys_addr += (addr & ~TARGET_PAGE_MASK); - if (is_write) - cpu_physical_memory_write_rom(&address_space_memory, - phys_addr, buf, l); - else - cpu_physical_memory_rw(phys_addr, buf, l, is_write); + if (is_write) { + cpu_physical_memory_write_rom(cpu->as, phys_addr, buf, l); + } else { + address_space_rw(cpu->as, phys_addr, buf, l, 0); + } len -= l; buf += l; addr += l; -- cgit v1.1