From patchwork Wed Sep 21 10:25:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 115746 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7C571B6F82 for ; Wed, 21 Sep 2011 20:26:35 +1000 (EST) Received: from localhost ([::1]:43158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0Z-0007ZS-4j for incoming@patchwork.ozlabs.org; Wed, 21 Sep 2011 06:26:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0N-0007Ys-IL for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6K0M-0006OJ-CN for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:15 -0400 Received: from mtagate7.uk.ibm.com ([194.196.100.167]:33679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0M-0006O1-4D for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:14 -0400 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8LAQC19017446 for ; Wed, 21 Sep 2011 10:26:12 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8LAQCt22629794 for ; Wed, 21 Sep 2011 11:26:12 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8LHQFi1012039 for ; Wed, 21 Sep 2011 11:26:16 -0600 Received: from localhost ([9.79.3.245]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8LHQF6C012028; Wed, 21 Sep 2011 11:26:15 -0600 From: Stefan Hajnoczi To: Date: Wed, 21 Sep 2011 11:25:59 +0100 Message-Id: <1316600766-5541-2-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.167 Cc: Anthony Liguori , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 1/8] target-i386: Remove data type CCTable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Stefan Weil Remove also two assert statements which were the last remaining users. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- target-i386/cpu.h | 5 ----- target-i386/translate.c | 5 ----- 2 files changed, 0 insertions(+), 10 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 4a6f675..ae36489 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -991,11 +991,6 @@ static inline int cpu_mmu_index (CPUState *env) /* translate.c */ void optimize_flags_init(void); -typedef struct CCTable { - int (*compute_all)(void); /* return all the flags */ - int (*compute_c)(void); /* return the C flag */ -} CCTable; - #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { diff --git a/target-i386/translate.c b/target-i386/translate.c index b966762..b894e97 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -7641,11 +7641,6 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) void optimize_flags_init(void) { -#if TCG_TARGET_REG_BITS == 32 - assert(sizeof(CCTable) == (1 << 3)); -#else - assert(sizeof(CCTable) == (1 << 4)); -#endif cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); cpu_cc_op = tcg_global_mem_new_i32(TCG_AREG0, offsetof(CPUState, cc_op), "cc_op");