Received: from eggs.gnu.org ([2001:4830:134:3::10]:49905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH92G-0004ar-3g for qemu-devel@nongnu.org; Wed, 04 Sep 2013 05:06:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VH925-0007yy-41 for qemu-devel@nongnu.org; Wed, 04 Sep 2013 05:06:00 -0400 Received: from cantor2.suse.de ([195.135.220.15]:45472 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH924-0007yO-K2 for qemu-devel@nongnu.org; Wed, 04 Sep 2013 05:05:48 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 34CE7A5464 for ; Wed, 4 Sep 2013 11:05:48 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 4 Sep 2013 11:05:11 +0200 Message-Id: <1378285521-3230-32-git-send-email-afaerber@suse.de> In-Reply-To: <1378285521-3230-1-git-send-email-afaerber@suse.de> References: <1378285521-3230-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC qom-cpu 31/41] exec: Change memory_region_section_get_iotlb() argument to CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= It no longer needs CPUArchState since moving watchpoints to CPUState. Signed-off-by: Andreas F=C3=A4rber --- cputlb.c | 3 ++- exec.c | 3 +-- include/exec/cputlb.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cputlb.c b/cputlb.c index bd5cf0e..e5b6145 100644 --- a/cputlb.c +++ b/cputlb.c @@ -241,6 +241,7 @@ void tlb_set_page(CPUArchState *env, target_ulong vad= dr, hwaddr paddr, int prot, int mmu_idx, target_ulong size) { + CPUState *cpu =3D ENV_GET_CPU(env); MemoryRegionSection *section; unsigned int index; target_ulong address; @@ -276,7 +277,7 @@ void tlb_set_page(CPUArchState *env, target_ulong vad= dr, } =20 code_address =3D address; - iotlb =3D memory_region_section_get_iotlb(env, section, vaddr, paddr= , xlat, + iotlb =3D memory_region_section_get_iotlb(cpu, section, vaddr, paddr= , xlat, prot, &address); =20 index =3D (vaddr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); diff --git a/exec.c b/exec.c index 5f133e4..ffbf4c3 100644 --- a/exec.c +++ b/exec.c @@ -677,14 +677,13 @@ static int cpu_physical_memory_set_dirty_tracking(i= nt enable) return ret; } =20 -hwaddr memory_region_section_get_iotlb(CPUArchState *env, +hwaddr memory_region_section_get_iotlb(CPUState *cpu, MemoryRegionSection *section, target_ulong vaddr, hwaddr paddr, hwaddr xlat, int prot, target_ulong *address) { - CPUState *cpu =3D ENV_GET_CPU(env); hwaddr iotlb; CPUWatchpoint *wp; =20 diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h index 31df03c..b8ecd6f 100644 --- a/include/exec/cputlb.h +++ b/include/exec/cputlb.h @@ -36,7 +36,7 @@ void tb_flush_jmp_cache(CPUState *cpu, target_ulong add= r); MemoryRegionSection * address_space_translate_for_iotlb(AddressSpace *as, hwaddr addr, hwaddr = *xlat, hwaddr *plen); -hwaddr memory_region_section_get_iotlb(CPUArchState *env, +hwaddr memory_region_section_get_iotlb(CPUState *cpu, MemoryRegionSection *section, target_ulong vaddr, hwaddr paddr, hwaddr xlat, --=20 1.8.1.4