diff --git a/qemu/target/m68k/cpu.h b/qemu/target/m68k/cpu.h index 94841d03..43018e36 100644 --- a/qemu/target/m68k/cpu.h +++ b/qemu/target/m68k/cpu.h @@ -180,7 +180,7 @@ void cpu_m68k_set_fpcr(CPUM68KState *env, uint32_t val); typedef enum { /* Translator only -- use env->cc_op. */ - CC_OP_DYNAMIC = -1, + CC_OP_DYNAMIC, /* Each flag bit computed into cc_[xcnvz]. */ CC_OP_FLAGS, diff --git a/qemu/target/m68k/translate.c b/qemu/target/m68k/translate.c index b2232d68..8134f3dc 100644 --- a/qemu/target/m68k/translate.c +++ b/qemu/target/m68k/translate.c @@ -192,6 +192,7 @@ typedef void (*disas_proc)(CPUM68KState *env, DisasContext *s, uint16_t insn); #endif static const uint8_t cc_op_live[CC_OP_NB] = { + CCF_C | CCF_V | CCF_Z | CCF_N | CCF_X, CCF_C | CCF_V | CCF_Z | CCF_N | CCF_X, CCF_X | CCF_N | CCF_V, CCF_X | CCF_N | CCF_V,