diff options
author | Laurent Vivier <laurent@vivier.eu> | 2015-08-09 01:44:24 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2016-10-25 20:54:47 +0200 |
commit | 9fdb533fb129b19610941bd1e5dd93e7471a18f5 (patch) | |
tree | b6d6d84319038c3468e478b0ce1b1e3522e09c39 /target-m68k/cpu.h | |
parent | 91f90d7191f862ab27528dbdf76cee55c77f79cf (diff) |
target-m68k: update CPU flags management
Copied from target-i386
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-m68k/cpu.h')
-rw-r--r-- | target-m68k/cpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h index 72a939eeaa..f0f670c2e2 100644 --- a/target-m68k/cpu.h +++ b/target-m68k/cpu.h @@ -167,7 +167,7 @@ int cpu_m68k_signal_handler(int host_signum, void *pinfo, * using this information. Condition codes are not generated if they * are only needed for conditional branches. */ -enum { +typedef enum { CC_OP_DYNAMIC, /* Use env->cc_op */ CC_OP_FLAGS, /* CC_DEST = CVZN, CC_SRC = unused */ CC_OP_LOGICB, /* CC_DEST = result, CC_SRC = unused */ @@ -188,7 +188,8 @@ enum { CC_OP_SHIFTB, /* CC_DEST = result, CC_SRC = carry */ CC_OP_SHIFTW, /* CC_DEST = result, CC_SRC = carry */ CC_OP_SHIFT, /* CC_DEST = result, CC_SRC = carry */ -}; + CC_OP_NB, +} CCOp; #define CCF_C 0x01 #define CCF_V 0x02 |