moved ROMlib_offset definition into Syn68k (to help with Executor's use of autoconf).

This commit is contained in:
Clifford Matthews 2009-06-19 15:25:57 -06:00
parent d432d6ea9f
commit 2935fe1503
3 changed files with 8 additions and 6 deletions

View File

@ -23,6 +23,12 @@
/* Global CPU state struct. */
CPUState cpu_state;
#if SIZEOF_CHAR_P == 4
uint32 ROMlib_offset;
#else
uint64 ROMlib_offset;
#endif
/* This function initializes syn68k. Call it exactly once, before any
* other syn68k calls. DOS_INT_FLAG_ADDR is the conventional memory
* offset of the 32 bit synchronous interrupt flag. Just pass in zero

View File

@ -10,12 +10,6 @@
#include <unistd.h>
#if SIZEOF_CHAR_P == 4
uint32 ROMlib_offset = MEMORY_OFFSET;
#else
uint64 ROMlib_offset = MEMORY_OFFSET;
#endif
/* These are set by command-line switches. */
int test_only_non_cc_variants; /* If 0, test only cc setting variants. */
int generate_crc;

View File

@ -28,6 +28,8 @@ main (int argc, char *argv[])
malloc_debug (31); /* Just to be safe. */
#endif
ROMlib_offset = MEMORY_OFFSET;
/* Set up default values for command line switches. */
test_only_non_cc_variants = 0;
#ifdef mc68000