From patchwork Thu Jan 24 04:02:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 215228 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 839982C0040 for ; Thu, 24 Jan 2013 16:07:37 +1100 (EST) Received: from localhost ([::1]:33044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyE3a-0002Xc-Ji for incoming@patchwork.ozlabs.org; Wed, 23 Jan 2013 23:04:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyE2w-0001Qb-6p for qemu-devel@nongnu.org; Wed, 23 Jan 2013 23:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyE2p-0004ET-TG for qemu-devel@nongnu.org; Wed, 23 Jan 2013 23:04:14 -0500 Received: from mail-pb0-f47.google.com ([209.85.160.47]:47822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyE2p-0004EI-IO for qemu-devel@nongnu.org; Wed, 23 Jan 2013 23:04:07 -0500 Received: by mail-pb0-f47.google.com with SMTP id wz17so5145726pbc.34 for ; Wed, 23 Jan 2013 20:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=NmxjTEZsAw1nNbQ0277IhUcPDa2fV46Z/DR7PKqz/Eo=; b=rV/q74+E4BNb3t9iLHKGKBLvWN4Kzkgd5U0rt6pubda6cGm7DjmuXOo1xzVrsDNX85 CyVAZptnO9cL19ZPNKlCbDymH1vAeNbClprJAwgQOUaeIEZM+0i0fODg3WaNIQisbSGK YIF9rrVOZqVeoWf4J97HM1GJJVtNdgd7LGOsgnGKTzdMZixx48H+PPYxvA/PIN7nBqes fqxTfmvOFCPW7kuaIjfndqNws1Y/LTx8koAip1hi96VdobuGqd1bB1QaUPIRRaUOiUCQ savERLtD9fWpAaw4FxxT4g+z8XCgLbWxuyppb9vDlnJjGWL+O02cBj4ZrZ6NE05fuuby s4MA== X-Received: by 10.68.219.164 with SMTP id pp4mr1422960pbc.72.1359000246350; Wed, 23 Jan 2013 20:04:06 -0800 (PST) Received: from anchor.twiddle.home (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPS id ot3sm14027480pbb.38.2013.01.23.20.04.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 20:04:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 23 Jan 2013 20:02:57 -0800 Message-Id: <1359000221-19834-14-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1359000221-19834-1-git-send-email-rth@twiddle.net> References: <1359000221-19834-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.47 Cc: Blue Swirl , Paolo Bonzini Subject: [Qemu-devel] [PATCH 13/57] target-i386: Name the cc_op enumeration 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 Signed-off-by: Richard Henderson --- target-i386/cpu.h | 4 ++-- target-i386/translate.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index fe50698..04ac339 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -582,7 +582,7 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS]; #define CPU_INTERRUPT_TPR CPU_INTERRUPT_TGT_INT_3 -enum { +typedef enum { CC_OP_DYNAMIC, /* must use dynamic code to get cc_op */ CC_OP_EFLAGS, /* all cc are explicitly computed, CC_SRC = flags */ @@ -637,7 +637,7 @@ enum { CC_OP_SARQ, CC_OP_NB, -}; +} CCOp; typedef struct SegmentCache { uint32_t selector; diff --git a/target-i386/translate.c b/target-i386/translate.c index c8ddb7a..aa696a5 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -89,7 +89,7 @@ typedef struct DisasContext { int rex_x, rex_b; #endif int ss32; /* 32 bit stack segment */ - int cc_op; /* current CC operation */ + CCOp cc_op; /* current CC operation */ int addseg; /* non zero if either DS/ES/SS have a non zero base */ int f_st; /* currently unused */ int vm86; /* vm86 mode */