sim: move default model to the runtime sim state
This kills off another compile-time option by moving the setting to the individual arch runtimes. This will allow dynamic selection by the arch when doing a single build with multiple arches. The sim_model_init rework is a little funky. In the past it was disabled entirely if no default model was set. We maintain the spirit of the logic by gating the fallback logic on whether the port has defined any models.
This commit is contained in:
parent
1c636da093
commit
d414eb3e7f
62 changed files with 120 additions and 298 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac (sim_default_model): Delete.
|
||||||
|
* m4/sim_ac_output.m4 (sim_default_model): Likewise.
|
||||||
|
* configure, Makefile.in: Regenerate.
|
||||||
|
* m4/sim_ac_option_default_model.m4: Removed.
|
||||||
|
|
||||||
2021-06-29 Mike Frysinger <vapier@gentoo.org>
|
2021-06-29 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* m4/sim_ac_option_warnings.m4: Add -Wunused-but-set-parameter.
|
* m4/sim_ac_option_warnings.m4: Add -Wunused-but-set-parameter.
|
||||||
|
|
|
@ -781,7 +781,6 @@ psdir = @psdir@
|
||||||
sbindir = @sbindir@
|
sbindir = @sbindir@
|
||||||
sharedstatedir = @sharedstatedir@
|
sharedstatedir = @sharedstatedir@
|
||||||
sim_bitsize = @sim_bitsize@
|
sim_bitsize = @sim_bitsize@
|
||||||
sim_default_model = @sim_default_model@
|
|
||||||
sim_float = @sim_float@
|
sim_float = @sim_float@
|
||||||
sim_hw_cflags = @sim_hw_cflags@
|
sim_hw_cflags = @sim_hw_cflags@
|
||||||
sim_hw_sockser = @sim_hw_sockser@
|
sim_hw_sockser = @sim_hw_sockser@
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* interp.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* interp.c (sim_open): Set STATE_MACHS.
|
* interp.c (sim_open): Set STATE_MACHS.
|
||||||
|
|
1
sim/bfin/aclocal.m4
vendored
1
sim/bfin/aclocal.m4
vendored
|
@ -12,5 +12,4 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
29
sim/bfin/configure
vendored
29
sim/bfin/configure
vendored
|
@ -628,12 +628,10 @@ PACKAGE_VERSION
|
||||||
PACKAGE_TARNAME
|
PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL'
|
||||||
sim_default_model'
|
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1241,13 +1239,6 @@ if test -n "$ac_init_help"; then
|
||||||
|
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
Optional Features:
|
|
||||||
--disable-option-checking ignore unrecognized --enable/--with options
|
|
||||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
|
@ -1678,23 +1669,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="bf537"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgen_breaks=""
|
cgen_breaks=""
|
||||||
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
||||||
cgen_breaks="break cgen_rtx_error";
|
cgen_breaks="break cgen_rtx_error";
|
||||||
|
@ -1716,7 +1690,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,4 @@ dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(Makefile.in)
|
AC_INIT(Makefile.in)
|
||||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(bf537)
|
|
||||||
|
|
||||||
SIM_AC_OUTPUT
|
SIM_AC_OUTPUT
|
||||||
|
|
|
@ -704,6 +704,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = bfin_sim_machs;
|
STATE_MACHS (sd) = bfin_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "bf537";
|
||||||
current_alignment = STRICT_ALIGNMENT;
|
current_alignment = STRICT_ALIGNMENT;
|
||||||
current_target_byte_order = BFD_ENDIAN_LITTLE;
|
current_target_byte_order = BFD_ENDIAN_LITTLE;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/bpf/aclocal.m4
vendored
1
sim/bpf/aclocal.m4
vendored
|
@ -13,6 +13,5 @@
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_bitsize.m4])
|
m4_include([../m4/sim_ac_option_bitsize.m4])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
21
sim/bpf/configure
vendored
21
sim/bpf/configure
vendored
|
@ -628,14 +628,12 @@ PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache
|
||||||
sim_default_model
|
|
||||||
sim_bitsize'
|
sim_bitsize'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_bitsize
|
enable_sim_bitsize
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1250,8 +1248,6 @@ Optional Features:
|
||||||
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
|
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -1762,22 +1758,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="bpf-def"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgen_breaks=""
|
cgen_breaks=""
|
||||||
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
||||||
cgen_breaks="break cgen_rtx_error";
|
cgen_breaks="break cgen_rtx_error";
|
||||||
|
@ -1799,7 +1779,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,5 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_BITSIZE([64])
|
SIM_AC_OPTION_BITSIZE([64])
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL([bpf-def])
|
|
||||||
|
|
||||||
SIM_AC_OUTPUT
|
SIM_AC_OUTPUT
|
||||||
|
|
|
@ -129,6 +129,7 @@ sim_open (SIM_OPEN_KIND kind,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = bpf_sim_machs;
|
STATE_MACHS (sd) = bpf_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "bpf-def";
|
||||||
|
|
||||||
if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
|
if (sim_cpu_alloc_all (sd, 1) != SIM_RC_OK)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* Make-common.in (SIM_DEFAULT_MODEL): Delete.
|
||||||
|
* sim-base.h (struct sim_state): Add model_name.
|
||||||
|
(STATE_MODEL_NAME): Define.
|
||||||
|
* sim-model.c (model_option_handler): Set STATE_MODEL_NAME.
|
||||||
|
(sim_model_init): Delete WITH_MODEL_P check. Change
|
||||||
|
WITH_DEFAULT_MODEL to STATE_MODEL_NAME.
|
||||||
|
* sim-model.h (WITH_DEFAULT_MODEL): Delete.
|
||||||
|
(WITH_MODEL_P): Delete.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* cgen-defs.h (cgen_cpu_max_extra_bytes): Add SIM_DESC arg.
|
* cgen-defs.h (cgen_cpu_max_extra_bytes): Add SIM_DESC arg.
|
||||||
|
|
|
@ -73,7 +73,6 @@ top_builddir = ..
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
|
|
||||||
SIM_BITSIZE = @sim_bitsize@
|
SIM_BITSIZE = @sim_bitsize@
|
||||||
SIM_DEFAULT_MODEL = @sim_default_model@
|
|
||||||
SIM_FLOAT = @sim_float@
|
SIM_FLOAT = @sim_float@
|
||||||
SIM_RESERVED_BITS = @sim_reserved_bits@
|
SIM_RESERVED_BITS = @sim_reserved_bits@
|
||||||
SIM_SCACHE = @sim_scache@
|
SIM_SCACHE = @sim_scache@
|
||||||
|
@ -195,7 +194,6 @@ CGEN_INCLUDE_DEPS = \
|
||||||
|
|
||||||
CONFIG_CFLAGS = \
|
CONFIG_CFLAGS = \
|
||||||
-DHAVE_CONFIG_H \
|
-DHAVE_CONFIG_H \
|
||||||
$(SIM_DEFAULT_MODEL) \
|
|
||||||
$(SIM_BITSIZE) \
|
$(SIM_BITSIZE) \
|
||||||
$(SIM_FLOAT) \
|
$(SIM_FLOAT) \
|
||||||
$(SIM_HW_CFLAGS) \
|
$(SIM_HW_CFLAGS) \
|
||||||
|
|
|
@ -147,6 +147,10 @@ struct sim_state {
|
||||||
const SIM_MACH * const *machs;
|
const SIM_MACH * const *machs;
|
||||||
#define STATE_MACHS(sd) ((sd)->machs)
|
#define STATE_MACHS(sd) ((sd)->machs)
|
||||||
|
|
||||||
|
/* If non-NULL, the model to select for CPUs. */
|
||||||
|
const char *model_name;
|
||||||
|
#define STATE_MODEL_NAME(sd) ((sd)->model_name)
|
||||||
|
|
||||||
/* In standalone simulator, this is the program's arguments passed
|
/* In standalone simulator, this is the program's arguments passed
|
||||||
on the command line. */
|
on the command line. */
|
||||||
char **prog_argv;
|
char **prog_argv;
|
||||||
|
|
|
@ -68,6 +68,7 @@ model_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
|
||||||
sim_io_eprintf (sd, "unknown model `%s'\n", arg);
|
sim_io_eprintf (sd, "unknown model `%s'\n", arg);
|
||||||
return SIM_RC_FAIL;
|
return SIM_RC_FAIL;
|
||||||
}
|
}
|
||||||
|
STATE_MODEL_NAME (sd) = arg;
|
||||||
sim_model_set (sd, cpu, model);
|
sim_model_set (sd, cpu, model);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -209,9 +210,6 @@ sim_model_init (SIM_DESC sd)
|
||||||
{
|
{
|
||||||
SIM_CPU *cpu;
|
SIM_CPU *cpu;
|
||||||
|
|
||||||
if (!WITH_MODEL_P)
|
|
||||||
return SIM_RC_OK;
|
|
||||||
|
|
||||||
/* If both cpu model and state architecture are set, ensure they're
|
/* If both cpu model and state architecture are set, ensure they're
|
||||||
compatible. If only one is set, set the other. If neither are set,
|
compatible. If only one is set, set the other. If neither are set,
|
||||||
use the default model. STATE_ARCHITECTURE is the bfd_arch_info data
|
use the default model. STATE_ARCHITECTURE is the bfd_arch_info data
|
||||||
|
@ -222,10 +220,11 @@ sim_model_init (SIM_DESC sd)
|
||||||
cpu = STATE_CPU (sd, 0);
|
cpu = STATE_CPU (sd, 0);
|
||||||
|
|
||||||
if (! STATE_ARCHITECTURE (sd)
|
if (! STATE_ARCHITECTURE (sd)
|
||||||
&& ! CPU_MACH (cpu))
|
&& ! CPU_MACH (cpu)
|
||||||
|
&& STATE_MODEL_NAME (sd))
|
||||||
{
|
{
|
||||||
/* Set the default model. */
|
/* Set the default model. */
|
||||||
const SIM_MODEL *model = sim_model_lookup (sd, WITH_DEFAULT_MODEL);
|
const SIM_MODEL *model = sim_model_lookup (sd, STATE_MODEL_NAME (sd));
|
||||||
SIM_ASSERT (model != NULL);
|
SIM_ASSERT (model != NULL);
|
||||||
sim_model_set (sd, NULL, model);
|
sim_model_set (sd, NULL, model);
|
||||||
}
|
}
|
||||||
|
@ -242,7 +241,7 @@ sim_model_init (SIM_DESC sd)
|
||||||
return SIM_RC_FAIL;
|
return SIM_RC_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (STATE_ARCHITECTURE (sd))
|
else if (STATE_ARCHITECTURE (sd) && STATE_MACHS (sd))
|
||||||
{
|
{
|
||||||
/* Use the default model for the selected machine.
|
/* Use the default model for the selected machine.
|
||||||
The default model is the first one in the list. */
|
The default model is the first one in the list. */
|
||||||
|
@ -257,7 +256,7 @@ sim_model_init (SIM_DESC sd)
|
||||||
}
|
}
|
||||||
sim_model_set (sd, NULL, MACH_MODELS (mach));
|
sim_model_set (sd, NULL, MACH_MODELS (mach));
|
||||||
}
|
}
|
||||||
else
|
else if (CPU_MACH (cpu))
|
||||||
{
|
{
|
||||||
STATE_ARCHITECTURE (sd) = bfd_scan_arch (MACH_BFD_NAME (CPU_MACH (cpu)));
|
STATE_ARCHITECTURE (sd) = bfd_scan_arch (MACH_BFD_NAME (CPU_MACH (cpu)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,13 +47,6 @@ typedef struct {
|
||||||
#define MAX_UNITS 1
|
#define MAX_UNITS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WITH_DEFAULT_MODEL
|
|
||||||
# define WITH_DEFAULT_MODEL NULL
|
|
||||||
# define WITH_MODEL_P 0
|
|
||||||
#else
|
|
||||||
# define WITH_MODEL_P 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef int (MODEL_FN) (sim_cpu *, void *);
|
typedef int (MODEL_FN) (sim_cpu *, void *);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
6
sim/configure
vendored
6
sim/configure
vendored
|
@ -640,7 +640,6 @@ am__EXEEXT_TRUE
|
||||||
LTLIBOBJS
|
LTLIBOBJS
|
||||||
SIM_RX_CYCLE_ACCURATE_FLAGS
|
SIM_RX_CYCLE_ACCURATE_FLAGS
|
||||||
sim_reserved_bits
|
sim_reserved_bits
|
||||||
sim_default_model
|
|
||||||
sim_scache
|
sim_scache
|
||||||
sim_float
|
sim_float
|
||||||
sim_bitsize
|
sim_bitsize
|
||||||
|
@ -12180,7 +12179,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 12183 "configure"
|
#line 12182 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
@ -12286,7 +12285,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 12289 "configure"
|
#line 12288 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
@ -14674,7 +14673,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
|
||||||
$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
|
$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
|
||||||
# Check whether --enable-sim-rx-cycle-accurate was given.
|
# Check whether --enable-sim-rx-cycle-accurate was given.
|
||||||
|
|
|
@ -172,7 +172,6 @@ dnl respective SIM_AC_OPTION_xxx call above, we can drop these.
|
||||||
AC_SUBST(sim_bitsize)
|
AC_SUBST(sim_bitsize)
|
||||||
AC_SUBST(sim_float)
|
AC_SUBST(sim_float)
|
||||||
AC_SUBST(sim_scache)
|
AC_SUBST(sim_scache)
|
||||||
AC_SUBST(sim_default_model)
|
|
||||||
AC_SUBST(sim_reserved_bits)
|
AC_SUBST(sim_reserved_bits)
|
||||||
|
|
||||||
dnl Some arches have unique configure flags.
|
dnl Some arches have unique configure flags.
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/cris/aclocal.m4
vendored
1
sim/cris/aclocal.m4
vendored
|
@ -12,6 +12,5 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
25
sim/cris/configure
vendored
25
sim/cris/configure
vendored
|
@ -628,13 +628,11 @@ PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache'
|
||||||
sim_default_model'
|
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1248,8 +1246,6 @@ Optional Features:
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -1701,24 +1697,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# The default model shouldn't matter as long as there's a BFD.
|
|
||||||
|
|
||||||
default_sim_default_model="crisv32"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgen_breaks=""
|
cgen_breaks=""
|
||||||
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
||||||
cgen_breaks="break cgen_rtx_error";
|
cgen_breaks="break cgen_rtx_error";
|
||||||
|
@ -1740,7 +1718,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,4 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
|
|
||||||
# The default model shouldn't matter as long as there's a BFD.
|
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(crisv32)
|
|
||||||
|
|
||||||
SIM_AC_OUTPUT
|
SIM_AC_OUTPUT
|
||||||
|
|
|
@ -659,6 +659,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = cris_sim_machs;
|
STATE_MACHS (sd) = cris_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "crisv32";
|
||||||
current_target_byte_order = BFD_ENDIAN_LITTLE;
|
current_target_byte_order = BFD_ENDIAN_LITTLE;
|
||||||
|
|
||||||
/* The cpu data is kept in a separately allocated chunk of memory. */
|
/* The cpu data is kept in a separately allocated chunk of memory. */
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/frv/aclocal.m4
vendored
1
sim/frv/aclocal.m4
vendored
|
@ -12,6 +12,5 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
23
sim/frv/configure
vendored
23
sim/frv/configure
vendored
|
@ -629,13 +629,11 @@ PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache'
|
||||||
sim_default_model'
|
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
enable_sim_trapdump
|
enable_sim_trapdump
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
|
@ -1250,8 +1248,6 @@ Optional Features:
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
--enable-sim-trapdump Make unknown traps dump the registers
|
--enable-sim-trapdump Make unknown traps dump the registers
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
|
@ -1704,22 +1700,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="fr500"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enable making unknown traps dump out registers
|
# Enable making unknown traps dump out registers
|
||||||
#
|
#
|
||||||
|
@ -1759,7 +1739,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ AC_INIT(Makefile.in)
|
||||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(fr500)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enable making unknown traps dump out registers
|
# Enable making unknown traps dump out registers
|
||||||
|
|
|
@ -57,6 +57,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, bfd *abfd,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = frv_sim_machs;
|
STATE_MACHS (sd) = frv_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "fr500";
|
||||||
current_alignment = STRICT_ALIGNMENT;
|
current_alignment = STRICT_ALIGNMENT;
|
||||||
current_target_byte_order = BFD_ENDIAN_BIG;
|
current_target_byte_order = BFD_ENDIAN_BIG;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/iq2000/aclocal.m4
vendored
1
sim/iq2000/aclocal.m4
vendored
|
@ -12,6 +12,5 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
23
sim/iq2000/configure
vendored
23
sim/iq2000/configure
vendored
|
@ -628,13 +628,11 @@ PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache'
|
||||||
sim_default_model'
|
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1248,8 +1246,6 @@ Optional Features:
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -1701,22 +1697,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="iq2000"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgen_breaks=""
|
cgen_breaks=""
|
||||||
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
||||||
cgen_breaks="break cgen_rtx_error";
|
cgen_breaks="break cgen_rtx_error";
|
||||||
|
@ -1738,7 +1718,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,5 @@ AC_INIT(Makefile.in)
|
||||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(iq2000)
|
|
||||||
|
|
||||||
SIM_AC_OUTPUT
|
SIM_AC_OUTPUT
|
||||||
|
|
|
@ -64,6 +64,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = iq2000_sim_machs;
|
STATE_MACHS (sd) = iq2000_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "iq2000";
|
||||||
current_alignment = STRICT_ALIGNMENT;
|
current_alignment = STRICT_ALIGNMENT;
|
||||||
current_target_byte_order = BFD_ENDIAN_BIG;
|
current_target_byte_order = BFD_ENDIAN_BIG;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/lm32/aclocal.m4
vendored
1
sim/lm32/aclocal.m4
vendored
|
@ -12,6 +12,5 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
23
sim/lm32/configure
vendored
23
sim/lm32/configure
vendored
|
@ -628,13 +628,11 @@ PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache'
|
||||||
sim_default_model'
|
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1248,8 +1246,6 @@ Optional Features:
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -1701,22 +1697,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="lm32"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgen_breaks=""
|
cgen_breaks=""
|
||||||
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
||||||
cgen_breaks="break cgen_rtx_error";
|
cgen_breaks="break cgen_rtx_error";
|
||||||
|
@ -1738,7 +1718,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,5 @@ AC_INIT(Makefile.in)
|
||||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(lm32)
|
|
||||||
|
|
||||||
SIM_AC_OUTPUT
|
SIM_AC_OUTPUT
|
||||||
|
|
|
@ -95,6 +95,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = lm32_sim_machs;
|
STATE_MACHS (sd) = lm32_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "lm32";
|
||||||
current_alignment = STRICT_ALIGNMENT;
|
current_alignment = STRICT_ALIGNMENT;
|
||||||
current_target_byte_order = BFD_ENDIAN_BIG;
|
current_target_byte_order = BFD_ENDIAN_BIG;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/m32r/aclocal.m4
vendored
1
sim/m32r/aclocal.m4
vendored
|
@ -12,6 +12,5 @@
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
23
sim/m32r/configure
vendored
23
sim/m32r/configure
vendored
|
@ -630,13 +630,11 @@ PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache'
|
||||||
sim_default_model'
|
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1250,8 +1248,6 @@ Optional Features:
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -1703,22 +1699,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="m32r/d"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
case "${target_alias}" in
|
case "${target_alias}" in
|
||||||
m32r*-linux*)
|
m32r*-linux*)
|
||||||
traps_obj=traps-linux.o
|
traps_obj=traps-linux.o
|
||||||
|
@ -1753,7 +1733,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ AC_INIT(Makefile.in)
|
||||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(m32r/d)
|
|
||||||
|
|
||||||
case "${target_alias}" in
|
case "${target_alias}" in
|
||||||
m32r*-linux*)
|
m32r*-linux*)
|
||||||
|
|
|
@ -58,6 +58,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = m32r_sim_machs;
|
STATE_MACHS (sd) = m32r_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "m32r/d";
|
||||||
current_alignment = STRICT_ALIGNMENT;
|
current_alignment = STRICT_ALIGNMENT;
|
||||||
current_target_byte_order = BFD_ENDIAN_BIG;
|
current_target_byte_order = BFD_ENDIAN_BIG;
|
||||||
|
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
dnl Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
|
||||||
dnl
|
|
||||||
dnl This program is free software; you can redistribute it and/or modify
|
|
||||||
dnl it under the terms of the GNU General Public License as published by
|
|
||||||
dnl the Free Software Foundation; either version 3 of the License, or
|
|
||||||
dnl (at your option) any later version.
|
|
||||||
dnl
|
|
||||||
dnl This program is distributed in the hope that it will be useful,
|
|
||||||
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
dnl GNU General Public License for more details.
|
|
||||||
dnl
|
|
||||||
dnl You should have received a copy of the GNU General Public License
|
|
||||||
dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
dnl
|
|
||||||
dnl The argument is the default model if none is specified.
|
|
||||||
AC_DEFUN([SIM_AC_OPTION_DEFAULT_MODEL],
|
|
||||||
[
|
|
||||||
default_sim_default_model="ifelse([$1],,0,[$1])"
|
|
||||||
AC_ARG_ENABLE(sim-default-model,
|
|
||||||
[AS_HELP_STRING([--enable-sim-default-model=model],
|
|
||||||
[Specify default model to simulate])],
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes|no) AC_MSG_ERROR("Missing argument to --enable-sim-default-model");;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi],[sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"])
|
|
||||||
])
|
|
||||||
AC_SUBST(sim_default_model)
|
|
|
@ -48,7 +48,6 @@ dnl when the rest of the code is in the respective macros.
|
||||||
AC_SUBST(sim_bitsize)
|
AC_SUBST(sim_bitsize)
|
||||||
AC_SUBST(sim_float)
|
AC_SUBST(sim_float)
|
||||||
AC_SUBST(sim_scache)
|
AC_SUBST(sim_scache)
|
||||||
AC_SUBST(sim_default_model)
|
|
||||||
AC_SUBST(sim_reserved_bits)
|
AC_SUBST(sim_reserved_bits)
|
||||||
|
|
||||||
dnl Used by common/Make-common.in to see which configure script created it.
|
dnl Used by common/Make-common.in to see which configure script created it.
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
2
sim/mips/configure
vendored
2
sim/mips/configure
vendored
|
@ -586,7 +586,6 @@ ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
SIM_COMMON_BUILD_FALSE
|
SIM_COMMON_BUILD_FALSE
|
||||||
SIM_COMMON_BUILD_TRUE
|
SIM_COMMON_BUILD_TRUE
|
||||||
sim_default_model
|
|
||||||
sim_scache
|
sim_scache
|
||||||
cgen_breaks
|
cgen_breaks
|
||||||
sim_multi_obj
|
sim_multi_obj
|
||||||
|
@ -2212,7 +2211,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
2
sim/mn10300/configure
vendored
2
sim/mn10300/configure
vendored
|
@ -586,7 +586,6 @@ ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
SIM_COMMON_BUILD_FALSE
|
SIM_COMMON_BUILD_FALSE
|
||||||
SIM_COMMON_BUILD_TRUE
|
SIM_COMMON_BUILD_TRUE
|
||||||
sim_default_model
|
|
||||||
sim_scache
|
sim_scache
|
||||||
sim_float
|
sim_float
|
||||||
cgen_breaks
|
cgen_breaks
|
||||||
|
@ -1778,7 +1777,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* sim-if.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* arch.c (sim_machs): Rename to ...
|
* arch.c (sim_machs): Rename to ...
|
||||||
|
|
1
sim/or1k/aclocal.m4
vendored
1
sim/or1k/aclocal.m4
vendored
|
@ -13,6 +13,5 @@
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_bitsize.m4])
|
m4_include([../m4/sim_ac_option_bitsize.m4])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_option_scache.m4])
|
m4_include([../m4/sim_ac_option_scache.m4])
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
21
sim/or1k/configure
vendored
21
sim/or1k/configure
vendored
|
@ -628,14 +628,12 @@ PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_scache
|
sim_scache
|
||||||
sim_default_model
|
|
||||||
sim_bitsize'
|
sim_bitsize'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_bitsize
|
enable_sim_bitsize
|
||||||
enable_sim_scache
|
enable_sim_scache
|
||||||
enable_sim_default_model
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1250,8 +1248,6 @@ Optional Features:
|
||||||
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
|
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
|
||||||
--enable-sim-scache=size
|
--enable-sim-scache=size
|
||||||
Specify simulator execution cache size
|
Specify simulator execution cache size
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
@ -1762,22 +1758,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default_sim_default_model="or1200"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgen_breaks=""
|
cgen_breaks=""
|
||||||
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
|
||||||
cgen_breaks="break cgen_rtx_error";
|
cgen_breaks="break cgen_rtx_error";
|
||||||
|
@ -1799,7 +1779,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,5 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
SIM_AC_OPTION_BITSIZE([32], [31], [32])
|
SIM_AC_OPTION_BITSIZE([32], [31], [32])
|
||||||
SIM_AC_OPTION_SCACHE(16384)
|
SIM_AC_OPTION_SCACHE(16384)
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL([or1200])
|
|
||||||
|
|
||||||
SIM_AC_OUTPUT
|
SIM_AC_OUTPUT
|
||||||
|
|
|
@ -164,6 +164,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = or1k_sim_machs;
|
STATE_MACHS (sd) = or1k_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = "or1200";
|
||||||
current_target_byte_order = BFD_ENDIAN_BIG;
|
current_target_byte_order = BFD_ENDIAN_BIG;
|
||||||
|
|
||||||
/* The cpu data is kept in a separately allocated chunk of memory. */
|
/* The cpu data is kept in a separately allocated chunk of memory. */
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Delete SIM_AC_OPTION_DEFAULT_MODEL call.
|
||||||
|
* interp.c (sim_open): Set STATE_MODEL_NAME.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* interp.c (sim_open): Set STATE_MACHS.
|
* interp.c (sim_open): Set STATE_MACHS.
|
||||||
|
|
1
sim/riscv/aclocal.m4
vendored
1
sim/riscv/aclocal.m4
vendored
|
@ -13,5 +13,4 @@
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||||
m4_include([../m4/sim_ac_option_bitsize.m4])
|
m4_include([../m4/sim_ac_option_bitsize.m4])
|
||||||
m4_include([../m4/sim_ac_option_default_model.m4])
|
|
||||||
m4_include([../m4/sim_ac_output.m4])
|
m4_include([../m4/sim_ac_output.m4])
|
||||||
|
|
28
sim/riscv/configure
vendored
28
sim/riscv/configure
vendored
|
@ -628,12 +628,10 @@ PACKAGE_TARNAME
|
||||||
PACKAGE_NAME
|
PACKAGE_NAME
|
||||||
PATH_SEPARATOR
|
PATH_SEPARATOR
|
||||||
SHELL
|
SHELL
|
||||||
sim_default_model
|
|
||||||
sim_bitsize'
|
sim_bitsize'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_sim_default_model
|
|
||||||
enable_sim_bitsize
|
enable_sim_bitsize
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
|
@ -1246,8 +1244,6 @@ Optional Features:
|
||||||
--disable-option-checking ignore unrecognized --enable/--with options
|
--disable-option-checking ignore unrecognized --enable/--with options
|
||||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--enable-sim-default-model=model
|
|
||||||
Specify default model to simulate
|
|
||||||
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
|
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
|
||||||
|
|
||||||
Report bugs to the package provider.
|
Report bugs to the package provider.
|
||||||
|
@ -1680,29 +1676,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Select the default model for the target.
|
|
||||||
riscv_model=
|
|
||||||
case "${target}" in
|
|
||||||
riscv32*) riscv_model="RV32G" ;;
|
|
||||||
riscv*) riscv_model="RV64G" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
default_sim_default_model="${riscv_model}"
|
|
||||||
# Check whether --enable-sim-default-model was given.
|
|
||||||
if test "${enable_sim_default_model+set}" = set; then :
|
|
||||||
enableval=$enable_sim_default_model; case "${enableval}" in
|
|
||||||
yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
|
|
||||||
*) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
|
|
||||||
esac
|
|
||||||
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
|
|
||||||
echo "Setting default model = $sim_default_model" 6>&1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Select the bitsize of the target.
|
# Select the bitsize of the target.
|
||||||
riscv_addr_bitsize=
|
riscv_addr_bitsize=
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
|
@ -1790,7 +1763,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,6 @@ dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(Makefile.in)
|
AC_INIT(Makefile.in)
|
||||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||||
|
|
||||||
# Select the default model for the target.
|
|
||||||
riscv_model=
|
|
||||||
case "${target}" in
|
|
||||||
riscv32*) riscv_model="RV32G" ;;
|
|
||||||
riscv*) riscv_model="RV64G" ;;
|
|
||||||
esac
|
|
||||||
SIM_AC_OPTION_DEFAULT_MODEL(${riscv_model})
|
|
||||||
|
|
||||||
# Select the bitsize of the target.
|
# Select the bitsize of the target.
|
||||||
riscv_addr_bitsize=
|
riscv_addr_bitsize=
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
|
|
|
@ -66,6 +66,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback,
|
||||||
|
|
||||||
/* Set default options before parsing user options. */
|
/* Set default options before parsing user options. */
|
||||||
STATE_MACHS (sd) = riscv_sim_machs;
|
STATE_MACHS (sd) = riscv_sim_machs;
|
||||||
|
STATE_MODEL_NAME (sd) = WITH_TARGET_WORD_BITSIZE == 32 ? "RV32G" : "RV64G";
|
||||||
current_target_byte_order = BFD_ENDIAN_LITTLE;
|
current_target_byte_order = BFD_ENDIAN_LITTLE;
|
||||||
|
|
||||||
/* The cpu data is kept in a separately allocated chunk of memory. */
|
/* The cpu data is kept in a separately allocated chunk of memory. */
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2021-06-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
2
sim/v850/configure
vendored
2
sim/v850/configure
vendored
|
@ -586,7 +586,6 @@ ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
SIM_COMMON_BUILD_FALSE
|
SIM_COMMON_BUILD_FALSE
|
||||||
SIM_COMMON_BUILD_TRUE
|
SIM_COMMON_BUILD_TRUE
|
||||||
sim_default_model
|
|
||||||
sim_scache
|
sim_scache
|
||||||
sim_float
|
sim_float
|
||||||
cgen_breaks
|
cgen_breaks
|
||||||
|
@ -1778,7 +1777,6 @@ ac_config_commands="$ac_config_commands stamp-h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SIM_COMMON_BUILD_TRUE='#'
|
SIM_COMMON_BUILD_TRUE='#'
|
||||||
SIM_COMMON_BUILD_FALSE=
|
SIM_COMMON_BUILD_FALSE=
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue