diff options
author | Richard Henderson <rth@twiddle.net> | 2013-01-16 16:23:46 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-02-18 15:03:56 -0800 |
commit | fee71888a29ab9f31b23386383812a4f5c953829 (patch) | |
tree | b36050dd93b7fb2c5be7cd127cac04a0b09bce16 /target-i386 | |
parent | c7b3c87397a3458d3d26499c483e0badaf79849c (diff) |
target-i386: Name the cc_op enumeration
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/cpu.h | 4 | ||||
-rw-r--r-- | 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 cd35cd52c0..8c4c605299 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 89f290822b..cf71878e8b 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 */ |