2 |
#define MISC_H |
#define MISC_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2003-2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: misc.h,v 1.236 2005/12/03 04:14:16 debug Exp $ |
* $Id: misc.h,v 1.241 2006/06/16 18:31:26 debug Exp $ |
32 |
* |
* |
33 |
* Misc. definitions for gxemul. |
* Misc. definitions for gxemul. |
34 |
*/ |
*/ |
45 |
|
|
46 |
#include "../../config.h" |
#include "../../config.h" |
47 |
|
|
48 |
/* |
|
49 |
* ENABLE_INSTRUCTION_DELAYS should be defined on the cc commandline using |
#ifdef NO_C99_PRINTF_DEFINES |
50 |
* -D if you want it. (This is done by ./configure --delays) |
/* |
51 |
* |
* This is a SUPER-UGLY HACK which happens to work on some machines. |
52 |
* ALWAYS_SIGNEXTEND_32 is enabled by ./configure --always32 |
* The correct solution is to upgrade your compiler to C99. |
53 |
*/ |
*/ |
54 |
#define USE_TINY_CACHE |
#ifdef NO_C99_64BIT_LONGLONG |
55 |
/* #define HALT_IF_PC_ZERO */ |
#define PRIi16 "i" |
56 |
|
#define PRIi32 "i" |
57 |
|
#define PRIi64 "lli" |
58 |
|
#define PRIx16 "x" |
59 |
|
#define PRIx32 "x" |
60 |
|
#define PRIx64 "llx" |
61 |
|
#else |
62 |
|
#define PRIi16 "i" |
63 |
|
#define PRIi32 "i" |
64 |
|
#define PRIi64 "li" |
65 |
|
#define PRIx16 "x" |
66 |
|
#define PRIx32 "x" |
67 |
|
#define PRIx64 "lx" |
68 |
|
#endif |
69 |
|
#endif |
70 |
|
|
71 |
|
|
72 |
#ifdef NO_MAP_ANON |
#ifdef NO_MAP_ANON |
124 |
/* Debug stuff: */ |
/* Debug stuff: */ |
125 |
#define DEBUG_BUFSIZE 1024 |
#define DEBUG_BUFSIZE 1024 |
126 |
#define DEBUG_INDENTATION 4 |
#define DEBUG_INDENTATION 4 |
|
#ifndef DEFAULT_BINTRANS_SIZE_IN_MB |
|
|
#define DEFAULT_BINTRANS_SIZE_IN_MB 16 |
|
|
#endif |
|
127 |
|
|
128 |
|
|
129 |
/* dec_prom.c: */ |
/* dec_prom.c: */ |