Commit Graph

121 Commits

Author SHA1 Message Date
Bryce Denney 424233384f - added strdup replacement function to osdep
- use Bit64u and other compiler-independent types
- moved contents of macutils.* into osdep.*.
- now in osdep.h, I allow all code to use the real library function name.
  If that function is not available, #define it to point to the
  bx_* replacement function instead.  And cause the bx_* replacement
  function to be compiled in osdep.cc.
2001-04-10 02:02:05 +00:00
Bryce Denney 2289674627 - check for strdup; if found define BX_HAVE_STRDUP=1. 2001-04-10 01:59:07 +00:00
Bryce Denney c90f74536d - added informative header 2001-04-10 01:58:07 +00:00
Bryce Denney 96174271f9 - change bx_snprintf back to normal name 2001-04-10 01:57:27 +00:00
Bryce Denney cfbac2ee2c - change strtoull back to normal name 2001-04-10 01:57:02 +00:00
Bryce Denney ba2bd6cff9 - forgot to use PTR2INT in reg_add_sub.c and reg_divide.c 2001-04-10 01:55:09 +00:00
Bryce Denney 5bc03e93c4 - include osdep.h 2001-04-10 01:53:28 +00:00
Bryce Denney 2abd482398 - add snprintf.cc and strtoull.cc, with definition of missing libc functions 2001-04-10 01:52:59 +00:00
Bryce Denney b26bb9d5ec - add snprintf.o and strtoull.o 2001-04-10 01:51:50 +00:00
Bryce Denney 52f569be1c - moved snprintf and strtoull prototypes into osdep.h. See comments on
osdep.h for why they are in a separate file.
2001-04-10 01:51:16 +00:00
Bryce Denney 76bbd83325 - check for sizeof int*
- check for snprintf, strtoull
- check if empty structs allowed
- check for hash_map.h
- check for blank labels as in   void main () { int x=2; label: }
- if debugger, turn on disasm too
2001-04-10 01:50:00 +00:00
Bryce Denney 4534c19e9e - missing a comma! 2001-04-10 01:47:26 +00:00
Bryce Denney c7d20d2a91 - call bx_strtoull instead of strtoull 2001-04-10 01:46:37 +00:00
Bryce Denney 91ec229216 - call bx_strtoull instead of strtoull. 2001-04-10 01:46:12 +00:00
Bryce Denney ff34643472 - include osdep.h
- arg1 of bx_dbg_watch/unwatch is sent -1, 0, and 1 but was declared as
  a Boolean.
2001-04-10 01:45:37 +00:00
Bryce Denney 3adbd8f71b - in bx_dbg_print_string_command there was a zero-length array, which
didn't compile with some compiler.
- put conditional "#if BX_HAVE_HASH_MAP" around code that uses
  <hash_map.h>.
- replace calls to snprintf with bx_snprintf.
- arg1 of bx_dbg_watch is an int, not a Boolean.
2001-04-10 01:45:06 +00:00
Bryce Denney f850a6df1f These changes are from "portable1" patch.
- put /*comments symbols*/ around any chars after #endif.  Other compilers
  do not get it.
- fix cases in which a pointer is cast to a 32-bit int, then back to a
  pointer.  This breaks on a machine with 64-bit pointers.  Examples:
  FPU_sub arg 2 and FPU_div arg 2.  The int->ptr->int conversions are
  now done more safely by macros REGNO2PTR and PTR2INT.
- use GCC_ATTRIBUTE macro instead of __attribute__.  For compilers that
  do not support __attribute__, the macro can be defined to be nothing.
- in fpu_entry.c, arg1 of FPU_load_int32 is (s32*), but the calls to
  it cast their data to (u32*).
- if compiler does NOT inline functions in poly.h, the "extern inline"
  setting caused duplicate symbols to be created.  Changed them to
  "static inline" so that the mul_32_32 from different .c files do not
  conflict.
- implemented setcc so that it doesn't use curly brackets inside parens
- comment out sigcontext structure definition, which conflicts with
  non-linux or non-intel operating systems.  It's not used by bochs anyway.
2001-04-10 01:43:09 +00:00
cvs beff63eb32 - entered original Bochs snapshot bochs-2000_0325a.tar.gz from
ftp.bochs.com
2001-04-10 01:04:59 +00:00
root 5d62227da4 initial checkin 2000-10-09 10:34:33 +00:00
root 0031a83b19 initial checkin 2000-10-09 10:34:32 +00:00
svn ca0253bb23 Standard project directories initialized by cvs2svn. 2000-10-09 10:34:32 +00:00