/[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 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: misc.h,v 1.229 2005/04/16 02:02:28 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   */   */
# Line 97  struct memory; Line 97  struct memory;
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
# Line 121  void file_load(struct machine *machine, Line 130  void file_load(struct machine *machine,
130  void debug_indentation(int diff);  void debug_indentation(int diff);
131  void debug(char *fmt, ...);  void debug(char *fmt, ...);
132  void fatal(char *fmt, ...);  void fatal(char *fmt, ...);
 unsigned long long mystrtoull(const char *s, char **endp, int base);  
133    
134    
135  /*  of.c:  */  /*  misc.c:  */
136  int of_emul(struct cpu *cpu);  unsigned long long mystrtoull(const char *s, char **endp, int base);
137    int mymkstemp(char *template);
138    #ifdef USE_STRLCPY_REPLACEMENTS
139    size_t mystrlcpy(char *dst, const char *src, size_t size);
140    size_t mystrlcat(char *dst, const char *src, size_t size);
141    #endif
142    
143    
144  /*  pc_bios.c:  */  /*  pc_bios.c:  */
145    void pc_bios_simple_pmode_setup(struct cpu *cpu);
146    void pc_bios_init(struct cpu *cpu);
147  int pc_bios_emul(struct cpu *cpu);  int pc_bios_emul(struct cpu *cpu);
148    
149    
# Line 145  void useremul_list_emuls(void); Line 160  void useremul_list_emuls(void);
160  void useremul_init(void);  void useremul_init(void);
161    
162    
163    /*  yamon.c:  */
164    int yamon_emul(struct cpu *cpu);
165    
166    
167  #endif  /*  MISC_H  */  #endif  /*  MISC_H  */

Legend:
Removed from v.4  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26