From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cIL-00017Z-OV for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:50:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2cID-0007Jj-91 for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:50:49 -0500 Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:33678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cID-0007Jc-4u for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:50:41 -0500 Received: by mail-qc0-f179.google.com with SMTP id e16so3788958qcx.24 for ; Sun, 12 Jan 2014 23:50:40 -0800 (PST) From: edgar.iglesias@gmail.com Date: Mon, 13 Jan 2014 17:39:57 +1000 Message-Id: <1389598802-14977-18-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> References: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v3 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 758f458..ee3c3c8 100644 --- a/exec.c +++ b/exec.c @@ -2711,11 +2711,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