Dynamic recompiler now works on Linux (32-bit only)
This commit is contained in:
parent
6caeca2c7c
commit
1fb4de4507
10 changed files with 3644 additions and 35 deletions
13
Makefile.in
13
Makefile.in
|
|
@ -31,10 +31,13 @@ POST_INSTALL = :
|
||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
subdir = .
|
subdir = .
|
||||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
|
$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
|
||||||
ChangeLog INSTALL NEWS compile depcomp install-sh missing
|
ChangeLog INSTALL NEWS compile config.guess config.sub depcomp \
|
||||||
|
install-sh missing
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
|
@ -156,14 +159,22 @@ am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
|
|
|
||||||
1533
config.guess
vendored
Executable file
1533
config.guess
vendored
Executable file
File diff suppressed because it is too large
Load diff
1693
config.sub
vendored
Executable file
1693
config.sub
vendored
Executable file
File diff suppressed because it is too large
Load diff
145
configure
vendored
145
configure
vendored
|
|
@ -567,6 +567,10 @@ OS_LINUX_FALSE
|
||||||
OS_LINUX_TRUE
|
OS_LINUX_TRUE
|
||||||
OS_WIN_FALSE
|
OS_WIN_FALSE
|
||||||
OS_WIN_TRUE
|
OS_WIN_TRUE
|
||||||
|
CPU_I386_FALSE
|
||||||
|
CPU_I386_TRUE
|
||||||
|
DYNAREC_FALSE
|
||||||
|
DYNAREC_TRUE
|
||||||
am__fastdepCXX_FALSE
|
am__fastdepCXX_FALSE
|
||||||
am__fastdepCXX_TRUE
|
am__fastdepCXX_TRUE
|
||||||
CXXDEPMODE
|
CXXDEPMODE
|
||||||
|
|
@ -612,6 +616,14 @@ am__isrc
|
||||||
INSTALL_DATA
|
INSTALL_DATA
|
||||||
INSTALL_SCRIPT
|
INSTALL_SCRIPT
|
||||||
INSTALL_PROGRAM
|
INSTALL_PROGRAM
|
||||||
|
host_os
|
||||||
|
host_vendor
|
||||||
|
host_cpu
|
||||||
|
host
|
||||||
|
build_os
|
||||||
|
build_vendor
|
||||||
|
build_cpu
|
||||||
|
build
|
||||||
target_alias
|
target_alias
|
||||||
host_alias
|
host_alias
|
||||||
build_alias
|
build_alias
|
||||||
|
|
@ -655,6 +667,7 @@ ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
enable_debug
|
enable_debug
|
||||||
|
enable_dynarec
|
||||||
with_allegro_prefix
|
with_allegro_prefix
|
||||||
with_allegro_exec_prefix
|
with_allegro_exec_prefix
|
||||||
enable_allegrotest
|
enable_allegrotest
|
||||||
|
|
@ -1272,6 +1285,10 @@ Program names:
|
||||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||||
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
||||||
|
|
||||||
|
System types:
|
||||||
|
--build=BUILD configure for building on BUILD [guessed]
|
||||||
|
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
||||||
_ACEOF
|
_ACEOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -1288,6 +1305,7 @@ Optional Features:
|
||||||
--disable-dependency-tracking speeds up one-time build
|
--disable-dependency-tracking speeds up one-time build
|
||||||
--enable-dependency-tracking do not reject slow dependency extractors
|
--enable-dependency-tracking do not reject slow dependency extractors
|
||||||
--enable-debug build debug executable
|
--enable-debug build debug executable
|
||||||
|
--enable-dynarec build dynamic recompiler
|
||||||
--disable-allegrotest Do not try to compile and run a test LIBallegro program
|
--disable-allegrotest Do not try to compile and run a test LIBallegro program
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
|
|
@ -1902,8 +1920,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
am__api_version='1.11'
|
|
||||||
|
|
||||||
ac_aux_dir=
|
ac_aux_dir=
|
||||||
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
||||||
for ac_t in install-sh install.sh shtool; do
|
for ac_t in install-sh install.sh shtool; do
|
||||||
|
|
@ -1927,6 +1943,80 @@ ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
||||||
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
||||||
|
|
||||||
|
|
||||||
|
# Make sure we can run config.sub.
|
||||||
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
||||||
|
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
||||||
|
$as_echo_n "checking build system type... " >&6; }
|
||||||
|
if test "${ac_cv_build+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
ac_build_alias=$build_alias
|
||||||
|
test "x$ac_build_alias" = x &&
|
||||||
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
||||||
|
test "x$ac_build_alias" = x &&
|
||||||
|
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
||||||
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
||||||
|
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
||||||
|
$as_echo "$ac_cv_build" >&6; }
|
||||||
|
case $ac_cv_build in
|
||||||
|
*-*-*) ;;
|
||||||
|
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
||||||
|
esac
|
||||||
|
build=$ac_cv_build
|
||||||
|
ac_save_IFS=$IFS; IFS='-'
|
||||||
|
set x $ac_cv_build
|
||||||
|
shift
|
||||||
|
build_cpu=$1
|
||||||
|
build_vendor=$2
|
||||||
|
shift; shift
|
||||||
|
# Remember, the first character of IFS is used to create $*,
|
||||||
|
# except with old shells:
|
||||||
|
build_os=$*
|
||||||
|
IFS=$ac_save_IFS
|
||||||
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
||||||
|
$as_echo_n "checking host system type... " >&6; }
|
||||||
|
if test "${ac_cv_host+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test "x$host_alias" = x; then
|
||||||
|
ac_cv_host=$ac_cv_build
|
||||||
|
else
|
||||||
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
||||||
|
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
||||||
|
$as_echo "$ac_cv_host" >&6; }
|
||||||
|
case $ac_cv_host in
|
||||||
|
*-*-*) ;;
|
||||||
|
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
||||||
|
esac
|
||||||
|
host=$ac_cv_host
|
||||||
|
ac_save_IFS=$IFS; IFS='-'
|
||||||
|
set x $ac_cv_host
|
||||||
|
shift
|
||||||
|
host_cpu=$1
|
||||||
|
host_vendor=$2
|
||||||
|
shift; shift
|
||||||
|
# Remember, the first character of IFS is used to create $*,
|
||||||
|
# except with old shells:
|
||||||
|
host_os=$*
|
||||||
|
IFS=$ac_save_IFS
|
||||||
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
am__api_version='1.11'
|
||||||
|
|
||||||
# Find a good install program. We prefer a C program (faster),
|
# Find a good install program. We prefer a C program (faster),
|
||||||
# so one script is as good as another. But avoid the broken or
|
# so one script is as good as another. But avoid the broken or
|
||||||
# incompatible versions:
|
# incompatible versions:
|
||||||
|
|
@ -3913,6 +4003,47 @@ else
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the dynamic recompiler" >&5
|
||||||
|
$as_echo_n "checking whether to use the dynamic recompiler... " >&6; }
|
||||||
|
# Check whether --enable-dynarec was given.
|
||||||
|
if test "${enable_dynarec+set}" = set; then :
|
||||||
|
enableval=$enable_dynarec;
|
||||||
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynarec" >&5
|
||||||
|
$as_echo "$enable_dynarec" >&6; }
|
||||||
|
if test "$enable_dynarec" = "yes"; then
|
||||||
|
DYNAREC_TRUE=
|
||||||
|
DYNAREC_FALSE='#'
|
||||||
|
else
|
||||||
|
DYNAREC_TRUE='#'
|
||||||
|
DYNAREC_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$enable_dynarec" = "yes"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu" >&5
|
||||||
|
$as_echo_n "checking for cpu... " >&6; }
|
||||||
|
case "${host_cpu}" in
|
||||||
|
i?86)
|
||||||
|
CPU=i386
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${host_cpu}" >&5
|
||||||
|
$as_echo "${host_cpu}" >&6; }
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
as_fn_error "Unsupported CPU." "$LINENO" 5
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$CPU" = "i386"; then
|
||||||
|
CPU_I386_TRUE=
|
||||||
|
CPU_I386_FALSE='#'
|
||||||
|
else
|
||||||
|
CPU_I386_TRUE='#'
|
||||||
|
CPU_I386_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#AC_MSG_CHECKING([for libz])
|
#AC_MSG_CHECKING([for libz])
|
||||||
#AX_CHECK_ZLIB
|
#AX_CHECK_ZLIB
|
||||||
|
|
||||||
|
|
@ -4196,7 +4327,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
|
||||||
allegro_CFLAGS=""
|
allegro_CFLAGS=""
|
||||||
allegro_LIBS=""
|
allegro_LIBS=""
|
||||||
as_fn_error "building B-em requires Allegro to be installed" "$LINENO" 5
|
as_fn_error "building PCem requires Allegro to be installed" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -4504,6 +4635,14 @@ if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
||||||
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
|
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
if test -z "${DYNAREC_TRUE}" && test -z "${DYNAREC_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"DYNAREC\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
if test -z "${CPU_I386_TRUE}" && test -z "${CPU_I386_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"CPU_I386\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
if test -z "${OS_WIN_TRUE}" && test -z "${OS_WIN_FALSE}"; then
|
if test -z "${OS_WIN_TRUE}" && test -z "${OS_WIN_FALSE}"; then
|
||||||
as_fn_error "conditional \"OS_WIN\" was never defined.
|
as_fn_error "conditional \"OS_WIN\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
|
|
||||||
24
configure.ac
24
configure.ac
|
|
@ -4,6 +4,8 @@
|
||||||
AC_PREREQ([2.61])
|
AC_PREREQ([2.61])
|
||||||
AC_INIT(PCem, v9, Tom Walker <tommowalker@tommowalker.co.uk>, pcem)
|
AC_INIT(PCem, v9, Tom Walker <tommowalker@tommowalker.co.uk>, pcem)
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
@ -22,6 +24,26 @@ else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to use the dynamic recompiler])
|
||||||
|
AC_ARG_ENABLE(dynarec,
|
||||||
|
AC_HELP_STRING([--enable-dynarec], [build dynamic recompiler]))
|
||||||
|
AC_MSG_RESULT($enable_dynarec)
|
||||||
|
AM_CONDITIONAL(DYNAREC, test "$enable_dynarec" = "yes")
|
||||||
|
if test "$enable_dynarec" = "yes"; then
|
||||||
|
AC_MSG_CHECKING([for cpu])
|
||||||
|
case "${host_cpu}" in
|
||||||
|
i?86)
|
||||||
|
CPU=i386
|
||||||
|
AC_MSG_RESULT(${host_cpu})
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_ERROR([Unsupported CPU.])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(CPU_I386, test "$CPU" = "i386")
|
||||||
|
|
||||||
#AC_MSG_CHECKING([for libz])
|
#AC_MSG_CHECKING([for libz])
|
||||||
#AX_CHECK_ZLIB
|
#AX_CHECK_ZLIB
|
||||||
|
|
||||||
|
|
@ -34,7 +56,7 @@ AM_CONDITIONAL(OS_LINUX, test "$OS" = "linux")
|
||||||
# allegro.m4 from the DOS/Windows Allegro sources (the file is contained
|
# allegro.m4 from the DOS/Windows Allegro sources (the file is contained
|
||||||
# in `misc') and copy it to this directory or MSYS's `/share/aclocal'.
|
# in `misc') and copy it to this directory or MSYS's `/share/aclocal'.
|
||||||
if test "$OS" != "win"; then
|
if test "$OS" != "win"; then
|
||||||
AM_PATH_ALLEGRO(, , AC_MSG_ERROR(building B-em requires Allegro to be installed))
|
AM_PATH_ALLEGRO(, , AC_MSG_ERROR(building PCem requires Allegro to be installed))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_LIB([openal], [alGetError], [], \
|
AC_CHECK_LIB([openal], [alGetError], [], \
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "fdc.h"
|
#include "fdc.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "video.h"
|
|
||||||
|
|
||||||
#include "386_common.h"
|
#include "386_common.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,14 @@ resid-fp/wave8580_PST.cc resid-fp/wave8580_P_T.cc resid-fp/wave8580__ST.cc \
|
||||||
resid-fp/wave.cc
|
resid-fp/wave.cc
|
||||||
|
|
||||||
|
|
||||||
|
if DYNAREC
|
||||||
|
pcem_CFLAGS += -DDYNAREC
|
||||||
|
pcem_SOURCES += 386_dynarec.c 386_dynarec_ops.c codegen.c codegen_ops.c \
|
||||||
|
codegen_timing_486.c codegen_timing_pentium.c
|
||||||
|
|
||||||
|
if CPU_I386
|
||||||
|
pcem_SOURCES += codegen_x86.c
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
232
src/Makefile.in
232
src/Makefile.in
|
|
@ -35,7 +35,14 @@ POST_INSTALL = :
|
||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
bin_PROGRAMS = pcem$(EXEEXT)
|
bin_PROGRAMS = pcem$(EXEEXT)
|
||||||
|
@DYNAREC_TRUE@am__append_1 = -DDYNAREC
|
||||||
|
@DYNAREC_TRUE@am__append_2 = 386_dynarec.c 386_dynarec_ops.c codegen.c codegen_ops.c \
|
||||||
|
@DYNAREC_TRUE@codegen_timing_486.c codegen_timing_pentium.c
|
||||||
|
|
||||||
|
@CPU_I386_TRUE@@DYNAREC_TRUE@am__append_3 = codegen_x86.c
|
||||||
subdir = src
|
subdir = src
|
||||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
|
@ -47,6 +54,51 @@ CONFIG_CLEAN_FILES =
|
||||||
CONFIG_CLEAN_VPATH_FILES =
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
am__installdirs = "$(DESTDIR)$(bindir)"
|
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||||
PROGRAMS = $(bin_PROGRAMS)
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
am__pcem_SOURCES_DIST = 386.c 808x.c acer386sx.c ali1429.c \
|
||||||
|
allegro-gui.c allegro-gui-configure.c allegro-gui-hdconf.c \
|
||||||
|
allegro-joystick.c allegro-keyboard.c allegro-main.c \
|
||||||
|
allegro-midi.c allegro-mouse.c allegro-video.c amstrad.c \
|
||||||
|
cdrom-ioctl-linux.c cdrom-null.c config.c cpu.c dac.c device.c \
|
||||||
|
disc.c disc_fdi.c disc_img.c dma.c fdc.c fdi2raw.c gameport.c \
|
||||||
|
headland.c i430lx.c i430fx.c i430vx.c ide.c intel.c \
|
||||||
|
intel_flash.c io.c jim.c keyboard.c keyboard_amstrad.c \
|
||||||
|
keyboard_at.c keyboard_olim24.c keyboard_pcjr.c keyboard_xt.c \
|
||||||
|
linux-time.c lpt.c mcr.c mem.c model.c mouse.c mouse_ps2.c \
|
||||||
|
mouse_serial.c neat.c nmi.c nvr.c olivetti_m24.c opti.c pc.c \
|
||||||
|
pci.c pic.c piix.c pit.c ppi.c rom.c serial.c sis496.c sound.c \
|
||||||
|
sound_ad1848.c sound_adlib.c sound_adlibgold.c sound_cms.c \
|
||||||
|
sound_emu8k.c sound_gus.c sound_mpu401_uart.c sound_opl.c \
|
||||||
|
sound_pas16.c sound_sb.c sound_sb_dsp.c sound_sn76489.c \
|
||||||
|
sound_speaker.c sound_ssi2001.c sound_wss.c soundopenal.c \
|
||||||
|
thread-pthread.c timer.c um8669f.c um8881f.c vid_ati_eeprom.c \
|
||||||
|
vid_ati_mach64.c vid_ati18800.c vid_ati28800.c \
|
||||||
|
vid_ati68860_ramdac.c vid_cga.c vid_cl5429.c vid_ega.c \
|
||||||
|
vid_et4000.c vid_et4000w32.c vid_hercules.c vid_icd2061.c \
|
||||||
|
vid_ics2595.c vid_mda.c vid_olivetti_m24.c vid_oti067.c \
|
||||||
|
vid_paradise.c vid_pc200.c vid_pc1512.c vid_pc1640.c \
|
||||||
|
vid_pcjr.c vid_s3.c vid_s3_virge.c vid_sdac_ramdac.c \
|
||||||
|
vid_stg_ramdac.c vid_svga.c vid_svga_render.c vid_tandy.c \
|
||||||
|
vid_tgui9440.c vid_tkd8001_ramdac.c vid_tvga.c \
|
||||||
|
vid_unk_ramdac.c vid_vga.c vid_voodoo.c video.c wd76c10.c \
|
||||||
|
x86seg.c x87.c xtide.c sound_dbopl.cc sound_resid.cc \
|
||||||
|
dosbox/dbopl.cpp resid-fp/convolve.cc resid-fp/convolve-sse.cc \
|
||||||
|
resid-fp/envelope.cc resid-fp/extfilt.cc resid-fp/filter.cc \
|
||||||
|
resid-fp/pot.cc resid-fp/sid.cc resid-fp/voice.cc \
|
||||||
|
resid-fp/wave6581_PS_.cc resid-fp/wave6581_PST.cc \
|
||||||
|
resid-fp/wave6581_P_T.cc resid-fp/wave6581__ST.cc \
|
||||||
|
resid-fp/wave8580_PS_.cc resid-fp/wave8580_PST.cc \
|
||||||
|
resid-fp/wave8580_P_T.cc resid-fp/wave8580__ST.cc \
|
||||||
|
resid-fp/wave.cc 386_dynarec.c 386_dynarec_ops.c codegen.c \
|
||||||
|
codegen_ops.c codegen_timing_486.c codegen_timing_pentium.c \
|
||||||
|
codegen_x86.c
|
||||||
|
@DYNAREC_TRUE@am__objects_1 = pcem-386_dynarec.$(OBJEXT) \
|
||||||
|
@DYNAREC_TRUE@ pcem-386_dynarec_ops.$(OBJEXT) \
|
||||||
|
@DYNAREC_TRUE@ pcem-codegen.$(OBJEXT) \
|
||||||
|
@DYNAREC_TRUE@ pcem-codegen_ops.$(OBJEXT) \
|
||||||
|
@DYNAREC_TRUE@ pcem-codegen_timing_486.$(OBJEXT) \
|
||||||
|
@DYNAREC_TRUE@ pcem-codegen_timing_pentium.$(OBJEXT)
|
||||||
|
@CPU_I386_TRUE@@DYNAREC_TRUE@am__objects_2 = \
|
||||||
|
@CPU_I386_TRUE@@DYNAREC_TRUE@ pcem-codegen_x86.$(OBJEXT)
|
||||||
am_pcem_OBJECTS = pcem-386.$(OBJEXT) pcem-808x.$(OBJEXT) \
|
am_pcem_OBJECTS = pcem-386.$(OBJEXT) pcem-808x.$(OBJEXT) \
|
||||||
pcem-acer386sx.$(OBJEXT) pcem-ali1429.$(OBJEXT) \
|
pcem-acer386sx.$(OBJEXT) pcem-ali1429.$(OBJEXT) \
|
||||||
pcem-allegro-gui.$(OBJEXT) \
|
pcem-allegro-gui.$(OBJEXT) \
|
||||||
|
|
@ -113,7 +165,8 @@ am_pcem_OBJECTS = pcem-386.$(OBJEXT) pcem-808x.$(OBJEXT) \
|
||||||
wave6581_PS_.$(OBJEXT) wave6581_PST.$(OBJEXT) \
|
wave6581_PS_.$(OBJEXT) wave6581_PST.$(OBJEXT) \
|
||||||
wave6581_P_T.$(OBJEXT) wave6581__ST.$(OBJEXT) \
|
wave6581_P_T.$(OBJEXT) wave6581__ST.$(OBJEXT) \
|
||||||
wave8580_PS_.$(OBJEXT) wave8580_PST.$(OBJEXT) \
|
wave8580_PS_.$(OBJEXT) wave8580_PST.$(OBJEXT) \
|
||||||
wave8580_P_T.$(OBJEXT) wave8580__ST.$(OBJEXT) wave.$(OBJEXT)
|
wave8580_P_T.$(OBJEXT) wave8580__ST.$(OBJEXT) wave.$(OBJEXT) \
|
||||||
|
$(am__objects_1) $(am__objects_2)
|
||||||
pcem_OBJECTS = $(am_pcem_OBJECTS)
|
pcem_OBJECTS = $(am_pcem_OBJECTS)
|
||||||
am__DEPENDENCIES_1 =
|
am__DEPENDENCIES_1 =
|
||||||
pcem_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
pcem_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
||||||
|
|
@ -132,7 +185,7 @@ CXXLD = $(CXX)
|
||||||
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
|
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
|
||||||
-o $@
|
-o $@
|
||||||
SOURCES = $(pcem_SOURCES)
|
SOURCES = $(pcem_SOURCES)
|
||||||
DIST_SOURCES = $(pcem_SOURCES)
|
DIST_SOURCES = $(am__pcem_SOURCES_DIST)
|
||||||
ETAGS = etags
|
ETAGS = etags
|
||||||
CTAGS = ctags
|
CTAGS = ctags
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
@ -195,14 +248,22 @@ am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
|
|
@ -228,33 +289,43 @@ top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
noinst_SCRIPTS = ../pcem
|
noinst_SCRIPTS = ../pcem
|
||||||
CLEANFILES = $(noinst_SCRIPTS)
|
CLEANFILES = $(noinst_SCRIPTS)
|
||||||
pcem_CFLAGS = $(allegro_CFLAGS)
|
pcem_CFLAGS = $(allegro_CFLAGS) $(am__append_1)
|
||||||
pcem_LDADD = $(allegro_LIBS) -lopenal -lalut
|
pcem_LDADD = $(allegro_LIBS) -lopenal -lalut
|
||||||
pcem_SOURCES = 386.c 808x.c acer386sx.c ali1429.c allegro-gui.c allegro-gui-configure.c \
|
pcem_SOURCES = 386.c 808x.c acer386sx.c ali1429.c allegro-gui.c \
|
||||||
allegro-gui-hdconf.c allegro-joystick.c allegro-keyboard.c allegro-main.c \
|
allegro-gui-configure.c allegro-gui-hdconf.c \
|
||||||
allegro-midi.c allegro-mouse.c allegro-video.c amstrad.c cdrom-ioctl-linux.c cdrom-null.c \
|
allegro-joystick.c allegro-keyboard.c allegro-main.c \
|
||||||
config.c cpu.c dac.c device.c disc.c disc_fdi.c disc_img.c dma.c fdc.c fdi2raw.c gameport.c \
|
allegro-midi.c allegro-mouse.c allegro-video.c amstrad.c \
|
||||||
headland.c i430lx.c i430fx.c i430vx.c ide.c intel.c intel_flash.c io.c jim.c \
|
cdrom-ioctl-linux.c cdrom-null.c config.c cpu.c dac.c device.c \
|
||||||
keyboard.c keyboard_amstrad.c keyboard_at.c keyboard_olim24.c keyboard_pcjr.c keyboard_xt.c \
|
disc.c disc_fdi.c disc_img.c dma.c fdc.c fdi2raw.c gameport.c \
|
||||||
linux-time.c lpt.c mcr.c mem.c model.c mouse.c mouse_ps2.c mouse_serial.c neat.c nmi.c nvr.c \
|
headland.c i430lx.c i430fx.c i430vx.c ide.c intel.c \
|
||||||
olivetti_m24.c opti.c pc.c pci.c pic.c piix.c pit.c ppi.c rom.c serial.c sis496.c sound.c \
|
intel_flash.c io.c jim.c keyboard.c keyboard_amstrad.c \
|
||||||
sound_ad1848.c sound_adlib.c sound_adlibgold.c sound_cms.c sound_emu8k.c sound_gus.c \
|
keyboard_at.c keyboard_olim24.c keyboard_pcjr.c keyboard_xt.c \
|
||||||
sound_mpu401_uart.c sound_opl.c sound_pas16.c sound_sb.c sound_sb_dsp.c sound_sn76489.c \
|
linux-time.c lpt.c mcr.c mem.c model.c mouse.c mouse_ps2.c \
|
||||||
sound_speaker.c sound_ssi2001.c sound_wss.c soundopenal.c thread-pthread.c timer.c um8669f.c \
|
mouse_serial.c neat.c nmi.c nvr.c olivetti_m24.c opti.c pc.c \
|
||||||
um8881f.c vid_ati_eeprom.c vid_ati_mach64.c vid_ati18800.c vid_ati28800.c vid_ati68860_ramdac.c \
|
pci.c pic.c piix.c pit.c ppi.c rom.c serial.c sis496.c sound.c \
|
||||||
vid_cga.c vid_cl5429.c vid_ega.c vid_et4000.c vid_et4000w32.c vid_hercules.c vid_icd2061.c \
|
sound_ad1848.c sound_adlib.c sound_adlibgold.c sound_cms.c \
|
||||||
vid_ics2595.c vid_mda.c vid_olivetti_m24.c vid_oti067.c vid_paradise.c vid_pc200.c \
|
sound_emu8k.c sound_gus.c sound_mpu401_uart.c sound_opl.c \
|
||||||
vid_pc1512.c vid_pc1640.c vid_pcjr.c vid_s3.c vid_s3_virge.c vid_sdac_ramdac.c \
|
sound_pas16.c sound_sb.c sound_sb_dsp.c sound_sn76489.c \
|
||||||
vid_stg_ramdac.c vid_svga.c vid_svga_render.c vid_tandy.c vid_tgui9440.c \
|
sound_speaker.c sound_ssi2001.c sound_wss.c soundopenal.c \
|
||||||
vid_tkd8001_ramdac.c vid_tvga.c vid_unk_ramdac.c vid_vga.c vid_voodoo.c video.c wd76c10.c \
|
thread-pthread.c timer.c um8669f.c um8881f.c vid_ati_eeprom.c \
|
||||||
x86seg.c x87.c xtide.c sound_dbopl.cc sound_resid.cc dosbox/dbopl.cpp \
|
vid_ati_mach64.c vid_ati18800.c vid_ati28800.c \
|
||||||
resid-fp/convolve.cc resid-fp/convolve-sse.cc resid-fp/envelope.cc \
|
vid_ati68860_ramdac.c vid_cga.c vid_cl5429.c vid_ega.c \
|
||||||
resid-fp/extfilt.cc resid-fp/filter.cc resid-fp/pot.cc resid-fp/sid.cc \
|
vid_et4000.c vid_et4000w32.c vid_hercules.c vid_icd2061.c \
|
||||||
resid-fp/voice.cc resid-fp/wave6581_PS_.cc resid-fp/wave6581_PST.cc \
|
vid_ics2595.c vid_mda.c vid_olivetti_m24.c vid_oti067.c \
|
||||||
resid-fp/wave6581_P_T.cc resid-fp/wave6581__ST.cc resid-fp/wave8580_PS_.cc \
|
vid_paradise.c vid_pc200.c vid_pc1512.c vid_pc1640.c \
|
||||||
resid-fp/wave8580_PST.cc resid-fp/wave8580_P_T.cc resid-fp/wave8580__ST.cc \
|
vid_pcjr.c vid_s3.c vid_s3_virge.c vid_sdac_ramdac.c \
|
||||||
resid-fp/wave.cc
|
vid_stg_ramdac.c vid_svga.c vid_svga_render.c vid_tandy.c \
|
||||||
|
vid_tgui9440.c vid_tkd8001_ramdac.c vid_tvga.c \
|
||||||
|
vid_unk_ramdac.c vid_vga.c vid_voodoo.c video.c wd76c10.c \
|
||||||
|
x86seg.c x87.c xtide.c sound_dbopl.cc sound_resid.cc \
|
||||||
|
dosbox/dbopl.cpp resid-fp/convolve.cc resid-fp/convolve-sse.cc \
|
||||||
|
resid-fp/envelope.cc resid-fp/extfilt.cc resid-fp/filter.cc \
|
||||||
|
resid-fp/pot.cc resid-fp/sid.cc resid-fp/voice.cc \
|
||||||
|
resid-fp/wave6581_PS_.cc resid-fp/wave6581_PST.cc \
|
||||||
|
resid-fp/wave6581_P_T.cc resid-fp/wave6581__ST.cc \
|
||||||
|
resid-fp/wave8580_PS_.cc resid-fp/wave8580_PST.cc \
|
||||||
|
resid-fp/wave8580_P_T.cc resid-fp/wave8580__ST.cc \
|
||||||
|
resid-fp/wave.cc $(am__append_2) $(am__append_3)
|
||||||
all: all-am
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
@ -343,6 +414,8 @@ distclean-compile:
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extfilt.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extfilt.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-386.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-386.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-386_dynarec.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-386_dynarec_ops.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-808x.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-808x.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-acer386sx.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-acer386sx.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-ali1429.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-ali1429.Po@am__quote@
|
||||||
|
|
@ -358,6 +431,11 @@ distclean-compile:
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-amstrad.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-amstrad.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-cdrom-ioctl-linux.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-cdrom-ioctl-linux.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-cdrom-null.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-cdrom-null.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-codegen.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-codegen_ops.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-codegen_timing_486.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-codegen_timing_pentium.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-codegen_x86.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-config.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-config.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-cpu.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-cpu.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-dac.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcem-dac.Po@am__quote@
|
||||||
|
|
@ -2231,6 +2309,104 @@ pcem-xtide.obj: xtide.c
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-xtide.obj `if test -f 'xtide.c'; then $(CYGPATH_W) 'xtide.c'; else $(CYGPATH_W) '$(srcdir)/xtide.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-xtide.obj `if test -f 'xtide.c'; then $(CYGPATH_W) 'xtide.c'; else $(CYGPATH_W) '$(srcdir)/xtide.c'; fi`
|
||||||
|
|
||||||
|
pcem-386_dynarec.o: 386_dynarec.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-386_dynarec.o -MD -MP -MF $(DEPDIR)/pcem-386_dynarec.Tpo -c -o pcem-386_dynarec.o `test -f '386_dynarec.c' || echo '$(srcdir)/'`386_dynarec.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-386_dynarec.Tpo $(DEPDIR)/pcem-386_dynarec.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='386_dynarec.c' object='pcem-386_dynarec.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-386_dynarec.o `test -f '386_dynarec.c' || echo '$(srcdir)/'`386_dynarec.c
|
||||||
|
|
||||||
|
pcem-386_dynarec.obj: 386_dynarec.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-386_dynarec.obj -MD -MP -MF $(DEPDIR)/pcem-386_dynarec.Tpo -c -o pcem-386_dynarec.obj `if test -f '386_dynarec.c'; then $(CYGPATH_W) '386_dynarec.c'; else $(CYGPATH_W) '$(srcdir)/386_dynarec.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-386_dynarec.Tpo $(DEPDIR)/pcem-386_dynarec.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='386_dynarec.c' object='pcem-386_dynarec.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-386_dynarec.obj `if test -f '386_dynarec.c'; then $(CYGPATH_W) '386_dynarec.c'; else $(CYGPATH_W) '$(srcdir)/386_dynarec.c'; fi`
|
||||||
|
|
||||||
|
pcem-386_dynarec_ops.o: 386_dynarec_ops.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-386_dynarec_ops.o -MD -MP -MF $(DEPDIR)/pcem-386_dynarec_ops.Tpo -c -o pcem-386_dynarec_ops.o `test -f '386_dynarec_ops.c' || echo '$(srcdir)/'`386_dynarec_ops.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-386_dynarec_ops.Tpo $(DEPDIR)/pcem-386_dynarec_ops.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='386_dynarec_ops.c' object='pcem-386_dynarec_ops.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-386_dynarec_ops.o `test -f '386_dynarec_ops.c' || echo '$(srcdir)/'`386_dynarec_ops.c
|
||||||
|
|
||||||
|
pcem-386_dynarec_ops.obj: 386_dynarec_ops.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-386_dynarec_ops.obj -MD -MP -MF $(DEPDIR)/pcem-386_dynarec_ops.Tpo -c -o pcem-386_dynarec_ops.obj `if test -f '386_dynarec_ops.c'; then $(CYGPATH_W) '386_dynarec_ops.c'; else $(CYGPATH_W) '$(srcdir)/386_dynarec_ops.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-386_dynarec_ops.Tpo $(DEPDIR)/pcem-386_dynarec_ops.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='386_dynarec_ops.c' object='pcem-386_dynarec_ops.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-386_dynarec_ops.obj `if test -f '386_dynarec_ops.c'; then $(CYGPATH_W) '386_dynarec_ops.c'; else $(CYGPATH_W) '$(srcdir)/386_dynarec_ops.c'; fi`
|
||||||
|
|
||||||
|
pcem-codegen.o: codegen.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen.o -MD -MP -MF $(DEPDIR)/pcem-codegen.Tpo -c -o pcem-codegen.o `test -f 'codegen.c' || echo '$(srcdir)/'`codegen.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen.Tpo $(DEPDIR)/pcem-codegen.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen.c' object='pcem-codegen.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen.o `test -f 'codegen.c' || echo '$(srcdir)/'`codegen.c
|
||||||
|
|
||||||
|
pcem-codegen.obj: codegen.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen.obj -MD -MP -MF $(DEPDIR)/pcem-codegen.Tpo -c -o pcem-codegen.obj `if test -f 'codegen.c'; then $(CYGPATH_W) 'codegen.c'; else $(CYGPATH_W) '$(srcdir)/codegen.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen.Tpo $(DEPDIR)/pcem-codegen.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen.c' object='pcem-codegen.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen.obj `if test -f 'codegen.c'; then $(CYGPATH_W) 'codegen.c'; else $(CYGPATH_W) '$(srcdir)/codegen.c'; fi`
|
||||||
|
|
||||||
|
pcem-codegen_ops.o: codegen_ops.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_ops.o -MD -MP -MF $(DEPDIR)/pcem-codegen_ops.Tpo -c -o pcem-codegen_ops.o `test -f 'codegen_ops.c' || echo '$(srcdir)/'`codegen_ops.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_ops.Tpo $(DEPDIR)/pcem-codegen_ops.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_ops.c' object='pcem-codegen_ops.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_ops.o `test -f 'codegen_ops.c' || echo '$(srcdir)/'`codegen_ops.c
|
||||||
|
|
||||||
|
pcem-codegen_ops.obj: codegen_ops.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_ops.obj -MD -MP -MF $(DEPDIR)/pcem-codegen_ops.Tpo -c -o pcem-codegen_ops.obj `if test -f 'codegen_ops.c'; then $(CYGPATH_W) 'codegen_ops.c'; else $(CYGPATH_W) '$(srcdir)/codegen_ops.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_ops.Tpo $(DEPDIR)/pcem-codegen_ops.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_ops.c' object='pcem-codegen_ops.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_ops.obj `if test -f 'codegen_ops.c'; then $(CYGPATH_W) 'codegen_ops.c'; else $(CYGPATH_W) '$(srcdir)/codegen_ops.c'; fi`
|
||||||
|
|
||||||
|
pcem-codegen_timing_486.o: codegen_timing_486.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_timing_486.o -MD -MP -MF $(DEPDIR)/pcem-codegen_timing_486.Tpo -c -o pcem-codegen_timing_486.o `test -f 'codegen_timing_486.c' || echo '$(srcdir)/'`codegen_timing_486.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_timing_486.Tpo $(DEPDIR)/pcem-codegen_timing_486.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_timing_486.c' object='pcem-codegen_timing_486.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_timing_486.o `test -f 'codegen_timing_486.c' || echo '$(srcdir)/'`codegen_timing_486.c
|
||||||
|
|
||||||
|
pcem-codegen_timing_486.obj: codegen_timing_486.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_timing_486.obj -MD -MP -MF $(DEPDIR)/pcem-codegen_timing_486.Tpo -c -o pcem-codegen_timing_486.obj `if test -f 'codegen_timing_486.c'; then $(CYGPATH_W) 'codegen_timing_486.c'; else $(CYGPATH_W) '$(srcdir)/codegen_timing_486.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_timing_486.Tpo $(DEPDIR)/pcem-codegen_timing_486.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_timing_486.c' object='pcem-codegen_timing_486.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_timing_486.obj `if test -f 'codegen_timing_486.c'; then $(CYGPATH_W) 'codegen_timing_486.c'; else $(CYGPATH_W) '$(srcdir)/codegen_timing_486.c'; fi`
|
||||||
|
|
||||||
|
pcem-codegen_timing_pentium.o: codegen_timing_pentium.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_timing_pentium.o -MD -MP -MF $(DEPDIR)/pcem-codegen_timing_pentium.Tpo -c -o pcem-codegen_timing_pentium.o `test -f 'codegen_timing_pentium.c' || echo '$(srcdir)/'`codegen_timing_pentium.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_timing_pentium.Tpo $(DEPDIR)/pcem-codegen_timing_pentium.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_timing_pentium.c' object='pcem-codegen_timing_pentium.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_timing_pentium.o `test -f 'codegen_timing_pentium.c' || echo '$(srcdir)/'`codegen_timing_pentium.c
|
||||||
|
|
||||||
|
pcem-codegen_timing_pentium.obj: codegen_timing_pentium.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_timing_pentium.obj -MD -MP -MF $(DEPDIR)/pcem-codegen_timing_pentium.Tpo -c -o pcem-codegen_timing_pentium.obj `if test -f 'codegen_timing_pentium.c'; then $(CYGPATH_W) 'codegen_timing_pentium.c'; else $(CYGPATH_W) '$(srcdir)/codegen_timing_pentium.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_timing_pentium.Tpo $(DEPDIR)/pcem-codegen_timing_pentium.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_timing_pentium.c' object='pcem-codegen_timing_pentium.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_timing_pentium.obj `if test -f 'codegen_timing_pentium.c'; then $(CYGPATH_W) 'codegen_timing_pentium.c'; else $(CYGPATH_W) '$(srcdir)/codegen_timing_pentium.c'; fi`
|
||||||
|
|
||||||
|
pcem-codegen_x86.o: codegen_x86.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_x86.o -MD -MP -MF $(DEPDIR)/pcem-codegen_x86.Tpo -c -o pcem-codegen_x86.o `test -f 'codegen_x86.c' || echo '$(srcdir)/'`codegen_x86.c
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_x86.Tpo $(DEPDIR)/pcem-codegen_x86.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_x86.c' object='pcem-codegen_x86.o' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_x86.o `test -f 'codegen_x86.c' || echo '$(srcdir)/'`codegen_x86.c
|
||||||
|
|
||||||
|
pcem-codegen_x86.obj: codegen_x86.c
|
||||||
|
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -MT pcem-codegen_x86.obj -MD -MP -MF $(DEPDIR)/pcem-codegen_x86.Tpo -c -o pcem-codegen_x86.obj `if test -f 'codegen_x86.c'; then $(CYGPATH_W) 'codegen_x86.c'; else $(CYGPATH_W) '$(srcdir)/codegen_x86.c'; fi`
|
||||||
|
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/pcem-codegen_x86.Tpo $(DEPDIR)/pcem-codegen_x86.Po
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='codegen_x86.c' object='pcem-codegen_x86.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(pcem_CFLAGS) $(CFLAGS) -c -o pcem-codegen_x86.obj `if test -f 'codegen_x86.c'; then $(CYGPATH_W) 'codegen_x86.c'; else $(CYGPATH_W) '$(srcdir)/codegen_x86.c'; fi`
|
||||||
|
|
||||||
.cc.o:
|
.cc.o:
|
||||||
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@
|
||||||
#include "codegen_ops.h"
|
#include "codegen_ops.h"
|
||||||
#include "codegen_ops_x86.h"
|
#include "codegen_ops_x86.h"
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
x86seg *op_ea_seg;
|
x86seg *op_ea_seg;
|
||||||
int op_ssegs;
|
int op_ssegs;
|
||||||
uint32_t op_old_pc;
|
uint32_t op_old_pc;
|
||||||
|
|
@ -49,6 +54,12 @@ static int last_ssegs;
|
||||||
void codegen_init()
|
void codegen_init()
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
|
#ifdef __linux__
|
||||||
|
void *start;
|
||||||
|
size_t len;
|
||||||
|
long pagesize = sysconf(_SC_PAGESIZE);
|
||||||
|
long pagemask = ~(pagesize - 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
codeblock = malloc(BLOCK_SIZE * sizeof(codeblock_t));
|
codeblock = malloc(BLOCK_SIZE * sizeof(codeblock_t));
|
||||||
codeblock_hash = malloc(HASH_SIZE * sizeof(codeblock_t *));
|
codeblock_hash = malloc(HASH_SIZE * sizeof(codeblock_t *));
|
||||||
|
|
@ -56,6 +67,15 @@ void codegen_init()
|
||||||
memset(codeblock, 0, BLOCK_SIZE * sizeof(codeblock_t));
|
memset(codeblock, 0, BLOCK_SIZE * sizeof(codeblock_t));
|
||||||
memset(codeblock_hash, 0, HASH_SIZE * sizeof(codeblock_t *));
|
memset(codeblock_hash, 0, HASH_SIZE * sizeof(codeblock_t *));
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
start = (void *)((long)codeblock & pagemask);
|
||||||
|
len = ((BLOCK_SIZE * sizeof(codeblock_t)) + pagesize) & pagemask;
|
||||||
|
if (mprotect(start, len, PROT_READ | PROT_WRITE | PROT_EXEC) != 0)
|
||||||
|
{
|
||||||
|
perror("mprotect");
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
// pclog("Codegen is %p\n", (void *)pages[0xfab12 >> 12].block);
|
// pclog("Codegen is %p\n", (void *)pages[0xfab12 >> 12].block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef _X86_OPS_H
|
||||||
|
#define _X86_OPS_H
|
||||||
|
|
||||||
typedef int (*OpFn)(uint32_t fetchdat);
|
typedef int (*OpFn)(uint32_t fetchdat);
|
||||||
|
|
||||||
#ifdef DYNAREC
|
#ifdef DYNAREC
|
||||||
|
|
@ -103,3 +106,5 @@ extern OpFn ops_fpu_df_a16[256];
|
||||||
extern OpFn ops_fpu_df_a32[256];
|
extern OpFn ops_fpu_df_a32[256];
|
||||||
extern OpFn ops_nofpu_a16[256];
|
extern OpFn ops_nofpu_a16[256];
|
||||||
extern OpFn ops_nofpu_a32[256];
|
extern OpFn ops_nofpu_a32[256];
|
||||||
|
|
||||||
|
#endif /*_X86_OPS_H*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue