[Sablevm-developer] Another small step on powerpc
Brought to you by:
egagnon
From: Mark W. <ma...@kl...> - 2002-08-25 18:52:56
|
Hi, I can now run Hello World out of the box without patching FileIn/Outputstream and from the normal user classpath (including from jar files)! The problem is in native.c (and clearly marked as such...) @@ -1241,7 +1241,10 @@ case SVM_TYPE_BOOLEAN: { /* don't forget about little/big endian alignment */ - params[0].jint = *((jboolean *) &result[0]); + if (&result[0] == 0) + params[0].jint = 0; + else + params[0].jint = 1; frame->stack_size++; } There are more places in that file that seem to need adaption for powerpc but this one fixed the FileDescriptor problem I was seeing. Cheers, Mark |