--- trunk/src/include/misc.h 2007/10/08 16:18:27 10 +++ trunk/src/include/misc.h 2007/10/08 16:19:37 22 @@ -28,7 +28,7 @@ * SUCH DAMAGE. * * - * $Id: misc.h,v 1.233 2005/06/20 05:52:49 debug Exp $ + * $Id: misc.h,v 1.236 2005/12/03 04:14:16 debug Exp $ * * Misc. definitions for gxemul. */ @@ -97,10 +97,19 @@ #define EMUL_LITTLE_ENDIAN 0 #define EMUL_BIG_ENDIAN 1 +#ifdef HOST_LITTLE_ENDIAN +#define LE32_TO_HOST(x) (x) +#define BE32_TO_HOST(x) ((((x) & 0xff000000) >> 24) | ((x) << 24) | \ + (((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8)) +#else +#define LE32_TO_HOST(x) ((((x) & 0xff000000) >> 24) | ((x) << 24) | \ + (((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8)) +#define BE32_TO_HOST(x) (x) +#endif /* Debug stuff: */ #define DEBUG_BUFSIZE 1024 - +#define DEBUG_INDENTATION 4 #ifndef DEFAULT_BINTRANS_SIZE_IN_MB #define DEFAULT_BINTRANS_SIZE_IN_MB 16 #endif @@ -132,10 +141,6 @@ #endif -/* of.c: */ -int of_emul(struct cpu *cpu); - - /* pc_bios.c: */ void pc_bios_simple_pmode_setup(struct cpu *cpu); void pc_bios_init(struct cpu *cpu);