|
| From: | Richard Henderson |
| Subject: | Re: [Qemu-devel] [PATCH 18/52] target-m68k: Some fixes to SR and flags management |
| Date: | Fri, 6 May 2016 06:49:03 -1000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
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~
| [Prev in Thread] | Current Thread | [Next in Thread] |