1
0
Fork 0

Add some basic arm detection to configure for the raspberry and chromebook users

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4086
This commit is contained in:
Peter Veenstra 2018-03-22 15:05:31 +00:00
parent 99c5b63b3b
commit 2f982daf92

View file

@ -277,6 +277,18 @@ case "$host_cpu" in
c_targetcpu="m68k"
c_unalignedmemory=yes
;;
armv7l)
AC_DEFINE(C_TARGETCPU,ARMV7LE)
AC_MSG_RESULT(ARMv7 Little Endian)
c_targetcpu="arm"
c_unalignedmemory=yes
;;
armv6l)
AC_DEFINE(C_TARGETCPU,ARMV4LE)
AC_MSG_RESULT(ARMv6 Little Endian)
c_targetcpu="arm"
dnl c_unalignedmemory=yes
;;
*)
AC_DEFINE(C_TARGETCPU,UNKNOWN)
AC_MSG_RESULT(unknown)
@ -318,8 +330,13 @@ dnl x86 only enable it if dynamic-x86 is disabled.
if test x$c_targetcpu = xx86_64 ; then
AC_DEFINE(C_DYNREC,1)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
else
if test x$c_targetcpu = xarm ; then
AC_DEFINE(C_DYNREC,1)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
fi
fi
fi