Beginning of work to get Syn68k working on x86_64 in 64-bit mode (we used to be able to do on the Alpha)

This commit is contained in:
Clifford T. Matthews 2009-06-07 19:59:00 -06:00
parent 71bf911a65
commit c2604c275a
4 changed files with 13 additions and 5 deletions

5
TODO
View File

@ -1,3 +1,8 @@
Non-native version can't be built
may need to dig into ancient svn history to find old
makefiles that used to build it
Mac OS X fixes:
figure out why i486-cleanup.pl basically eats all

View File

@ -67,11 +67,11 @@ AC_SUBST(HOST_NATIVE)
AC_ARG_ENABLE([native],
AC_HELP_STRING([--enable-native],
[native or nonnative (default is native)]),
[var_native=$enable_native], [var_native=no] )
[var_native=$enable_native], [var_native=yes] )
if test "$var_native" = "yes"; then
NO_NATIVE=TRUE
else
NO_NATIVE=FALSE
else
NO_NATIVE=TRUE
fi
AC_SUBST(NO_NATIVE)

View File

@ -12,7 +12,8 @@
# if defined(__BIG_ENDIAN__) || defined(m68k) || defined(mc68000) \
|| defined(sparc) || defined(powerpc) || defined (__ppc__)
# define BIGENDIAN /* ARDI naming convention, why rock the boat? */
# elif defined(__alpha) || defined(i860) || defined(vax) || defined(i386)
# elif defined(__alpha) || defined(i860) || defined(vax) || defined(i386) \
|| defined(__x86_64)
# define LITTLEENDIAN
# else
# error "Unknown CPU type"
@ -35,7 +36,7 @@
# define QUADALIGN
# elif !defined(m68k) && !defined(mc68000) && !defined(i386) \
&& !defined(vax) && !defined(__alpha) && !defined(powerpc) \
&& !defined (__ppc__)
&& !defined (__ppc__) && !defined(__x86_64)
# error Unknown CPU type
# endif
#endif

View File

@ -17,6 +17,8 @@
# define GLOBAL_REGISTER_DECLS register const uint16 *code asm ("$9");
#elif defined (powerpc) || defined (__ppc__)
# define GLOBAL_REGISTER_DECLS register const uint16 *code asm ("%r13");
#elif defined(__x86_64)
# define GLOBAL_REGISTER_DECLS register const uint16 *code asm ("%rsi");
#else
# error "Choose a global register to hold the current synthetic PC. Make sure it is saved by the normal calling convention."
#endif