Received: from eggs.gnu.org ([2001:4830:134:3::10]:42166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMntN-0001In-79 for qemu-devel@nongnu.org; Sun, 09 Mar 2014 20:16:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMntG-0005Ej-Ug for qemu-devel@nongnu.org; Sun, 09 Mar 2014 20:16:29 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42290 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMntG-0005EZ-PB for qemu-devel@nongnu.org; Sun, 09 Mar 2014 20:16:22 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 10 Mar 2014 01:15:33 +0100 Message-Id: <1394410549-13751-25-git-send-email-afaerber@suse.de> In-Reply-To: <1394410549-13751-1-git-send-email-afaerber@suse.de> References: <1394410549-13751-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] [PATCH qom-cpu v2 24/40] translate-all: Change tb_check_watchpoint() argument to CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= Signed-off-by: Andreas F=C3=A4rber --- exec.c | 2 +- translate-all.c | 4 ++-- translate-all.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exec.c b/exec.c index d4ce76a..dfa43a5 100644 --- a/exec.c +++ b/exec.c @@ -1599,7 +1599,7 @@ static void check_watchpoint(int offset, int len_ma= sk, int flags) wp->flags |=3D BP_WATCHPOINT_HIT; if (!cpu->watchpoint_hit) { cpu->watchpoint_hit =3D wp; - tb_check_watchpoint(env); + tb_check_watchpoint(cpu); if (wp->flags & BP_STOP_BEFORE_ACCESS) { cpu->exception_index =3D EXCP_DEBUG; cpu_loop_exit(cpu); diff --git a/translate-all.c b/translate-all.c index adcef83..82d5fa4 100644 --- a/translate-all.c +++ b/translate-all.c @@ -1371,9 +1371,9 @@ void tb_invalidate_phys_addr(AddressSpace *as, hwad= dr addr) } #endif /* TARGET_HAS_ICE && !defined(CONFIG_USER_ONLY) */ =20 -void tb_check_watchpoint(CPUArchState *env) +void tb_check_watchpoint(CPUState *cpu) { - CPUState *cpu =3D ENV_GET_CPU(env); + CPUArchState *env =3D cpu->env_ptr; TranslationBlock *tb; =20 tb =3D tb_find_pc(cpu->mem_io_pc); diff --git a/translate-all.h b/translate-all.h index f7e5932..02832b2 100644 --- a/translate-all.h +++ b/translate-all.h @@ -22,6 +22,6 @@ /* translate-all.c */ void tb_invalidate_phys_page_fast(tb_page_addr_t start, int len); void cpu_unlink_tb(CPUState *cpu); -void tb_check_watchpoint(CPUArchState *env); +void tb_check_watchpoint(CPUState *cpu); =20 #endif /* TRANSLATE_ALL_H */ --=20 1.8.4.5