From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWgZ-0004GT-Ar for qemu-devel@nongnu.org; Thu, 19 Dec 2013 01:02:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtWgT-0001cJ-ER for qemu-devel@nongnu.org; Thu, 19 Dec 2013 01:02:15 -0500 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:51464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWgT-0001cD-88 for qemu-devel@nongnu.org; Thu, 19 Dec 2013 01:02:09 -0500 Received: by mail-pb0-f51.google.com with SMTP id up15so693925pbc.24 for ; Wed, 18 Dec 2013 22:02:08 -0800 (PST) From: edgar.iglesias@gmail.com Date: Thu, 19 Dec 2013 15:51:28 +1000 Message-Id: <1387432293-17711-18-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1387432293-17711-1-git-send-email-edgar.iglesias@gmail.com> References: <1387432293-17711-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v2 17/22] exec: Make cpu_memory_rw_debug use the CPUs AS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, blauwirbel@gmail.com, aliguori@amazon.com, pcrost@xilinx.com, pbonzini@redhat.com, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exec.c b/exec.c index f606376..2872b86 100644 --- a/exec.c +++ b/exec.c @@ -2677,11 +2677,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; -- 1.7.10.4