Hi,

There were two post-release fixes to MMU MPFR emulation. The first one
got included in the ARAnyM debian package while the second was committed
after the debian package was uploaded.

The attached patch will fix the issue, it's been tested by me and also
Geert. Unofficial Debian binary packages containing this fix were
available at http://aranym.org/download.html for some time already.

Thanks

Petr

From: Petr Stehlik <psteh...@sophics.cz>
Date: Wed, 28 Mar 2012 10:09:27 +0200
Subject: fpu_mpfr longword conversion fix

---
 src/uae_cpu/fpu/fpu_mpfr.cpp |    1 +
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -u -r1.5 -r1.6
--- a/src/uae_cpu/fpu/fpu_mpfr.cpp	23 Mar 2012 15:42:15 -0000	1.5
+++ b/src/uae_cpu/fpu/fpu_mpfr.cpp	27 Mar 2012 15:02:48 -0000	1.6
@@ -869,7 +869,7 @@
       switch (size)
 	{
 	case 0:
-	  m68k_dreg (regs, reg) = extract_to_integer (*value, -0x80000000, 0x7fffffff);
+	  m68k_dreg (regs, reg) = extract_to_integer (*value, -0x7fffffff-1, 0x7fffffff);
 	  break;
 	case 1:
 	  m68k_dreg (regs, reg) = extract_to_single (*value);
@@ -933,7 +933,7 @@
   switch (size)
     {
     case 0:
-      put_long (addr, extract_to_integer (*value, -0x80000000, 0x7fffffff));
+      put_long (addr, extract_to_integer (*value, -0x7fffffff-1, 0x7fffffff));
       break;
     case 1:
       put_long (addr, extract_to_single (*value));

Reply via email to