28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $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 $ |
32 |
* |
* |
33 |
* Misc. definitions for gxemul. |
* Misc. definitions for gxemul. |
34 |
*/ |
*/ |
97 |
#define EMUL_LITTLE_ENDIAN 0 |
#define EMUL_LITTLE_ENDIAN 0 |
98 |
#define EMUL_BIG_ENDIAN 1 |
#define EMUL_BIG_ENDIAN 1 |
99 |
|
|
100 |
|
#ifdef HOST_LITTLE_ENDIAN |
101 |
|
#define LE32_TO_HOST(x) (x) |
102 |
|
#define BE32_TO_HOST(x) ((((x) & 0xff000000) >> 24) | ((x) << 24) | \ |
103 |
|
(((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8)) |
104 |
|
#else |
105 |
|
#define LE32_TO_HOST(x) ((((x) & 0xff000000) >> 24) | ((x) << 24) | \ |
106 |
|
(((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8)) |
107 |
|
#define BE32_TO_HOST(x) (x) |
108 |
|
#endif |
109 |
|
|
110 |
/* Debug stuff: */ |
/* Debug stuff: */ |
111 |
#define DEBUG_BUFSIZE 1024 |
#define DEBUG_BUFSIZE 1024 |
112 |
|
#define DEBUG_INDENTATION 4 |
113 |
#ifndef DEFAULT_BINTRANS_SIZE_IN_MB |
#ifndef DEFAULT_BINTRANS_SIZE_IN_MB |
114 |
#define DEFAULT_BINTRANS_SIZE_IN_MB 16 |
#define DEFAULT_BINTRANS_SIZE_IN_MB 16 |
115 |
#endif |
#endif |
141 |
#endif |
#endif |
142 |
|
|
143 |
|
|
|
/* of.c: */ |
|
|
int of_emul(struct cpu *cpu); |
|
|
|
|
|
|
|
144 |
/* pc_bios.c: */ |
/* pc_bios.c: */ |
145 |
void pc_bios_simple_pmode_setup(struct cpu *cpu); |
void pc_bios_simple_pmode_setup(struct cpu *cpu); |
146 |
void pc_bios_init(struct cpu *cpu); |
void pc_bios_init(struct cpu *cpu); |