From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAGFX-0006co-RX for qemu-devel@nongnu.org; Mon, 03 Feb 2014 04:55:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAGFX-0002U8-0q for qemu-devel@nongnu.org; Mon, 03 Feb 2014 04:55:31 -0500 Received: from mail-qa0-x22d.google.com ([2607:f8b0:400d:c00::22d]:51470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAGFW-0002Tr-N5 for qemu-devel@nongnu.org; Mon, 03 Feb 2014 04:55:30 -0500 Received: by mail-qa0-f45.google.com with SMTP id ii20so9596753qab.18 for ; Mon, 03 Feb 2014 01:55:30 -0800 (PST) From: "Edgar E. Iglesias" Date: Mon, 3 Feb 2014 19:44:45 +1000 Message-Id: <1391420690-23745-18-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1391420690-23745-1-git-send-email-edgar.iglesias@gmail.com> References: <1391420690-23745-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v4 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 7045f76..8c05087 100644 --- a/exec.c +++ b/exec.c @@ -2717,11 +2717,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.8.1.2