Re: [kaffe] More mipsel jit3

2004-03-11 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The following regression tests fail: - -> BadFloatTest.java - -> CatchDeath.java - -> DoubleConst.java - -> DoubleNeg.java - -> DoublePrint.java - -> FPUStack.java - -> MapTest.java - -> NullInvoke.java - -> TestFloatDouble.java - -> TestMessageFormat

Re: [kaffe] More mipsel jit3

2004-03-10 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Timothy" == Timothy Stack <[EMAIL PROTECTED]> writes: >> The problem now looks like an invalid `load_offset_int' (which >> becomes a `lw a0,20[a0]'). I *think* it is invalid because a0 is >> loaded with memory that contains an instruction, not

Re: [kaffe] More mipsel jit3

2004-03-10 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Timothy" == Timothy Stack <[EMAIL PROTECTED]> writes: >> So far, I can get a pretty major application (Jetty) to nearly >> finish loading itself, but still end with a segfault. It runs an >> awful lot of code before it fails. Timothy> Do all o

Re: [kaffe] More mipsel jit3

2004-03-10 Thread Timothy Stack
> So far, I can get a pretty major application (Jetty) to nearly finish > loading itself, but still end with a segfault. It runs an awful lot of > code before it fails. Do all of the test cases pass? > The problem now looks like an invalid `load_offset_int' (which becomes > a `lw a0,20[a0]'). I *

Re: [kaffe] More mipsel jit3

2004-03-10 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So far, I can get a pretty major application (Jetty) to nearly finish loading itself, but still end with a segfault. It runs an awful lot of code before it fails. The problem now looks like an invalid `load_offset_int' (which becomes a `lw a0,20[a0]')

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Timothy" == Timothy Stack <[EMAIL PROTECTED]> writes: >> - -> kaffe-bin: >> /home/casey/src/kaffe/kaffe/kaffevm/jit3/machine.c:232: - -> >> translate: Assertion `reinvoke == false' failed. >> >> Looking in machine.c this looks like either a co

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Timothy Stack
> Casey> The good news: mipsel jit3 can load and run `hello world'. I > Casey> don't know how usable it is `for real', but will report on that > Casey> later. > > No luck yet. Now we fail with this: > > - -> kaffe-bin: /home/casey/src/kaffe/kaffe/kaffevm/jit3/machine.c:232: > - -> translate: Asse

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Casey" == Casey Marshall <[EMAIL PROTECTED]> writes: Casey> The good news: mipsel jit3 can load and run `hello world'. I Casey> don't know how usable it is `for real', but will report on that Casey> later. No luck yet. Now we fail with this:

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Timothy Stack
> Success! > > Casey> So either (1) the call to push_int preceding this is bogus, or > Casey> (2) that call needs to be followed by a popargs, but isn't. > > The problem stemmed from exception throwing: popargs_internal will not > call popargs if the method does not return (and popargs_noreturn,

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Casey" == Casey Marshall <[EMAIL PROTECTED]> writes: Success! Casey> So either (1) the call to push_int preceding this is bogus, or Casey> (2) that call needs to be followed by a popargs, but isn't. The problem stemmed from exception throwing

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Kevin D. Kissell
> Kevin> That's not at all surprising. The trickiest thing that I had > Kevin> to fix to get the kaffe interpreter working for MIPS was to fix > Kevin> the calling convention stuff. Argument passing in MIPS *is* > Kevin> pretty baroque, and worse, there are variants that we'll have > Kevin> to de

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Timothy Stack
> (gdb) print *((Hjava_lang_Class *) 269223872) > $3 = {head = {dtable = 0x10019c38, lock = 0x0}, lock = 0x0, > > I think that this class is HashMap itself, but can't really tell. Use: p (char *)$3.name.data to print out the name. There are also a lot of helpful macros in the "developers/gdb

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Kevin" == Kevin D Kissell <[EMAIL PROTECTED]> writes: Kevin> That's not at all surprising. The trickiest thing that I had Kevin> to fix to get the kaffe interpreter working for MIPS was to fix Kevin> the calling convention stuff. Argument pas

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Kevin D. Kissell
> Kevin> One question about that: Did you implement those operations > Kevin> because you thought it would be good for performance, or did > Kevin> you have the impression that the JIT was failing because of > Kevin> their absence? They did not seem to be broken when I was > Kevin> working on jit3

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Kevin" == Kevin D Kissell <[EMAIL PROTECTED]> writes: >> > "Casey" == Casey Marshall <[EMAIL PROTECTED]> writes: >> >> Yeah, ok, I was pretty wrong with the implementations of fcmpl and >> friends. I think I have it sorted now. Kevin> One

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Timothy Stack
> But now my problem appears to be that soft_anewarray is being called > with an uninitialized class, which is supposed to be > java.util.HashMap$HashEntry. Any ideas of why this would happen? Need some more info: What test is dying? Can you send a back trace and disassembly? And anything

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Timothy Stack
> You might want to remove the boolean_exception() method from > the ControlFlowMethods class (or move it to the end of the > class). It instantiates a new Throwable Object which causes > a whole bunch of methods to be translated and executed. Yeah, that kinda sucks, the old kaffe Throwable was pr

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Helmer Krämer
On Mon, 08 Mar 2004 13:34:13 -0800 Casey Marshall <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I've gone ahead and implemented translations for fcmpg, fcmpl, dcmpg, > and dcmpl using C.cond.fmt. This gets me further in loading Kaffe (now > System.checkPropertyA

Re: [kaffe] More mipsel jit3

2004-03-09 Thread Kevin D. Kissell
> > "Casey" == Casey Marshall <[EMAIL PROTECTED]> writes: > > Yeah, ok, I was pretty wrong with the implementations of fcmpl and > friends. I think I have it sorted now. One question about that: Did you implement those operations because you thought it would be good for performance, or did y

Re: [kaffe] More mipsel jit3

2004-03-08 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Casey" == Casey Marshall <[EMAIL PROTECTED]> writes: Yeah, ok, I was pretty wrong with the implementations of fcmpl and friends. I think I have it sorted now. But now my problem appears to be that soft_anewarray is being called with an uniniti

[kaffe] More mipsel jit3

2004-03-08 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've gone ahead and implemented translations for fcmpg, fcmpl, dcmpg, and dcmpl using C.cond.fmt. This gets me further in loading Kaffe (now System.checkPropertyAccess complains that "line.separator" is a zero-length key). Unfortunately, I am also gett