- fix MAKE_REG definition on big endian systems, according to fpu__reg structure.

This hopefully fixes [ 648579 ] Mac OSX >>PANIC<< FPU_printall,
  I will need to check on a real big endian system.
This commit is contained in:
Christophe Bothamy 2002-12-10 22:40:16 +00:00
parent d61b85202a
commit 7dc434d872

View File

@ -1,6 +1,6 @@
/*---------------------------------------------------------------------------+ /*---------------------------------------------------------------------------+
| fpu_emu.h | | fpu_emu.h |
| $Id: fpu_emu.h,v 1.6 2002-11-30 17:15:59 sshwarts Exp $ | $Id: fpu_emu.h,v 1.7 2002-12-10 22:40:16 cbothamy Exp $
| | | |
| Copyright (C) 1992,1993,1994,1997 | | Copyright (C) 1992,1993,1994,1997 |
| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, | | W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
@ -154,11 +154,11 @@ struct fpu__reg {
} GCC_ATTRIBUTE((aligned(16), packed)); } GCC_ATTRIBUTE((aligned(16), packed));
#ifdef EMU_BIG_ENDIAN #ifdef EMU_BIG_ENDIAN
#define MAKE_REG(s,e,l,h) { h, l, \ #define MAKE_REG(s,e,l,h) { 0,0,0, \
((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)) } ((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)) , h, l}
#else #else
#define MAKE_REG(s,e,l,h) { l, h, \ #define MAKE_REG(s,e,l,h) { l, h, \
((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)) } ((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)), 0,0,0 }
#endif #endif
typedef void (*FUNC)(void); typedef void (*FUNC)(void);