From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIcoU-0006o5-Nz for qemu-devel@nongnu.org; Mon, 11 Jan 2016 08:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIcoT-0002Yu-Vc for qemu-devel@nongnu.org; Mon, 11 Jan 2016 08:47:14 -0500 Sender: Paolo Bonzini References: <1447682723-3977-1-git-send-email-peter.maydell@linaro.org> <1447682723-3977-10-git-send-email-peter.maydell@linaro.org> From: Paolo Bonzini Message-ID: <5693B259.2030106@redhat.com> Date: Mon, 11 Jan 2016 14:47:05 +0100 MIME-Version: 1.0 In-Reply-To: <1447682723-3977-10-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 09/19] exec.c: Use cpu_get_phys_page_attrs_debug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" , qemu-arm@nongnu.org, =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Andreas_F=c3=a4rber?= , patches@linaro.org On 16/11/2015 15:05, Peter Maydell wrote: > - hwaddr phys = cpu_get_phys_page_debug(cpu, pc); > + MemTxAttrs attrs = {}; > + hwaddr phys = cpu_get_phys_page_attrs_debug(cpu, pc, &attrs); > + int asidx = cpu_asidx_from_attrs(cpu, attrs); > if (phys != -1) { > - tb_invalidate_phys_addr(cpu->as, > + tb_invalidate_phys_addr(cpu->cpu_ases[asidx].as, > phys | (pc & ~TARGET_PAGE_MASK)); > } The only question I have is whether it is right to have empty MemTxAttrs here. Is there any way to use the MemTxAttrs for the "current state" of the CPU, whatever that is (on x86 I have added cpu_get_mem_attrs to target-i386/cpu.h)? Paolo