aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-m68k/helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index 2dfd48f7bf..b4ebb14e83 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -768,10 +768,11 @@ void HELPER(mac_set_flags)(CPUState *env, uint32_t acc)
{
uint64_t val;
val = env->macc[acc];
- if (val == 0)
+ if (val == 0) {
env->macsr |= MACSR_Z;
- else if (val & (1ull << 47));
+ } else if (val & (1ull << 47)) {
env->macsr |= MACSR_N;
+ }
if (env->macsr & (MACSR_PAV0 << acc)) {
env->macsr |= MACSR_V;
}