/[gxemul]/trunk/src/include/misc.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/include/misc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 2  Line 2 
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:
# Line 28  Line 28 
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.241 2006/06/16 18:31:26 debug Exp $
32   *   *
33   *  Misc. definitions for gxemul.   *  Misc. definitions for gxemul.
34   */   */
# Line 45  Line 45 
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
# Line 97  struct memory; Line 111  struct memory;
111  #define EMUL_LITTLE_ENDIAN              0  #define EMUL_LITTLE_ENDIAN              0
112  #define EMUL_BIG_ENDIAN                 1  #define EMUL_BIG_ENDIAN                 1
113    
114    #ifdef HOST_LITTLE_ENDIAN
115    #define LE32_TO_HOST(x)     (x)
116    #define BE32_TO_HOST(x)     ((((x) & 0xff000000) >> 24) | ((x) << 24) | \
117                                 (((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8))
118    #else
119    #define LE32_TO_HOST(x)     ((((x) & 0xff000000) >> 24) | ((x) << 24) | \
120                                 (((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8))
121    #define BE32_TO_HOST(x)     (x)
122    #endif
123    
124  /*  Debug stuff:  */  /*  Debug stuff:  */
125  #define DEBUG_BUFSIZE           1024  #define DEBUG_BUFSIZE           1024
126    #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:  */
# Line 132  size_t mystrlcat(char *dst, const char * Line 152  size_t mystrlcat(char *dst, const char *
152  #endif  #endif
153    
154    
 /*  of.c:  */  
 int of_emul(struct cpu *cpu);  
   
   
155  /*  pc_bios.c:  */  /*  pc_bios.c:  */
156  void pc_bios_simple_pmode_setup(struct cpu *cpu);  void pc_bios_simple_pmode_setup(struct cpu *cpu);
157  void pc_bios_init(struct cpu *cpu);  void pc_bios_init(struct cpu *cpu);

Legend:
Removed from v.10  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26