Patchwork [081/111] m68k: correct fpcr update

login
register
mail settings
Submitter Bryce Lanham
Date Aug. 17, 2011, 8:47 p.m.
Message ID <1313614076-28878-82-git-send-email-blanham@gmail.com>
Download mbox | patch
Permalink /patch/110439/
State New
Headers show

Comments

Bryce Lanham - Aug. 17, 2011, 8:47 p.m.
From: Laurent Vivier <laurent@vivier.eu>

allow to run metacity

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 target-m68k/translate.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/target-m68k/translate.c b/target-m68k/translate.c
index 96586ae..91355ba 100644
--- a/target-m68k/translate.c
+++ b/target-m68k/translate.c
@@ -3602,7 +3602,7 @@  DISAS_INSN(fpu)
         case 4: /* FPCR */
             SRC_EA(val, OS_LONG, 0, NULL);
             gen_helper_set_fpcr(cpu_env, val);
-            break;
+            return;
         case 1: /* FPIAR */
         case 2: /* FPSR */
         default:
@@ -3613,7 +3613,6 @@  DISAS_INSN(fpu)
     case 5: /* fmove from control register.  */
         switch ((ext >> 10) & 7) {
         case 4: /* FPCR */
-            /* Not implemented.  Always return zero.  */
             DEST_EA(insn, OS_LONG, QEMU_FPCR, NULL);
             return;
         case 1: /* FPIAR */