lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lightning] lightning and ultrasparc


From: Eli Barzilay
Subject: Re: [Lightning] lightning and ultrasparc
Date: Sat, 11 Aug 2007 14:17:10 -0400

On Aug 11, Shawn wrote:
> Does lightning support 64-bit sparc, or does it only generate 32-bit  
> code?
> 
> Using 1.2c, I'm getting bus errors on a netbsd/sparc64 box for
> something that's producing working functions on OS X/powerpc32.  I'm
> hoping that's the problem and not that I'm not doing something else
> right and have to track that down...

This reminds me -- we recently ran into a problem with the JIT on
x86_64.  Matthew did the following to fix it:

--- trunk/src/mzscheme/src/lightning/i386/core.h        (original)
+++ trunk/src/mzscheme/src/lightning/i386/core.h        Sat Aug  4 22:41:28 2007
@@ -110,7 +110,7 @@
 #ifdef JIT_X86_64
 # define jit_bra_l(rs, is, op) (_s32P((long)(is)) \
                                 ? _jit_bra_l(rs, is, op) \
-                                : (jit_movi_l(JIT_REXTMP, is), 
jit_bra_qr(JIT_REXTMP, rs, op)))
+                                : (MOVQir(is, JIT_REXTMP), 
jit_bra_qr(JIT_REXTMP, rs, op)))
 #else
 # define jit_bra_l(rs, is, op) _jit_bra_l(rs, is, op)
 #endif


-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]