On 05/04/2016 10:11 AM, Laurent Vivier wrote:
-uint32_t cpu_m68k_flush_flags(CPUM68KState *env, int op)
+static uint32_t cpu_m68k_flush_flags(CPUM68KState *env, int op)
 {
     int flags;
     uint32_t src;
@@ -271,6 +271,18 @@ set_x:
     return flags;
 }

+uint32_t cpu_m68k_get_ccr(CPUM68KState *env)
+{
+    return cpu_m68k_flush_flags(env, env->cc_op) | env->cc_x * CCF_X;
+}

This probably ought to get squished into the previous, to avoid thrashing.


r~

Reply via email to