Preliminary Bugfix for PowerPC/Linux - only 3 Params are handled correctly
authorchristian <none@none>
Sun, 3 Jul 2005 16:37:30 +0000 (16:37 +0000)
committerchristian <none@none>
Sun, 3 Jul 2005 16:37:30 +0000 (16:37 +0000)
by sprintf in C-Code

src/vm/jit/codegen.inc.h

index cadf7d53e91e27264edaea7ee128787fe8129ca8..ab2d004703abb3dac61ff63dc34f68f96899f5f3 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: codegen.inc.h 2755 2005-06-20 18:26:03Z twisti $
+   $Id: codegen.inc.h 2887 2005-07-03 16:37:30Z christian $
 
 */
 
@@ -60,6 +60,15 @@ typedef struct threadcritnodetemp threadcritnodetemp;
 #define MCODEINITSIZE (1<<15)       /* 32 Kbyte code area initialization size */
 #define DSEGINITSIZE  (1<<12)       /*  4 Kbyte data area initialization size */
 
+/* Register Pack/Unpack Macros ************************************************/
+
+#define GET_LOW_REG(a)  (((a) & 0xffff0000) >> 16)
+#define GET_HIGH_REG(a) ((a) &  0x0000ffff)
+
+#define PACK_REGS(low,high) \
+       ( ((high) & 0x0000ffff) | (((low) & 0x0000ffff) << 16) )
+
+
 #if SIZEOF_VOID_P == 8
 #define dseg_addaddress(cd,value)    dseg_adds8((cd), (s8) (value))
 #else