From: Richard Henderson Date: Thu, 17 Jan 2013 00:23:46 +0000 (-0800) Subject: target-i386: Name the cc_op enumeration X-Git-Tag: v1.5.0-rc0~616^2~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fee71888a29ab9f31b23386383812a4f5c953829;p=thirdparty%2Fqemu.git target-i386: Name the cc_op enumeration Signed-off-by: Richard Henderson --- diff --git a/target-i386/cpu.h b/target-i386/cpu.h index cd35cd52c09..8c4c6052998 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 89f290822bf..cf71878e8b2 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 */