Add support for setting model name and other things

This commit is contained in:
Michael Meissner
1995-11-12 14:20:39 +00:00
parent c05c182dd6
commit 28816f45f5
9 changed files with 313 additions and 71 deletions

View File

@ -236,6 +236,12 @@ extern int current_floating_point;
#define WITH_ASSERT 1
#endif
/* Whether to check instructions for reserved bits being set */
#ifndef WITH_RESERVED_BITS
#define WITH_RESERVED_BITS 1
#endif
/* include monitoring code */
#define MONITOR_INSTRUCTION_ISSUE 1
@ -282,6 +288,19 @@ extern ppc_model current_ppc_model;
? WITH_PPC_MODEL \
: current_ppc_model)
/* Current CPU model (models are in the generated models.h include file) */
#ifndef WITH_MODEL
#define WITH_MODEL 0
#endif
#define CURRENT_MODEL (WITH_MODEL \
? WITH_MODEL \
: current_model)
#ifndef WITH_DEFAULT_MODEL
#define WITH_DEFAULT_MODEL DEFAULT_MODEL
#endif
/* INLINE CODE SELECTION:
GCC -O3 attempts to inline any function or procedure in scope. The
@ -454,7 +473,13 @@ extern ppc_model current_ppc_model;
#define IDECODE_INLINE DEFAULT_INLINE
#endif
/* Code to simule functional units of real machines */
/* Model specific code used in simulating functional units */
#ifndef MODEL_INLINE
#define MODEL_INLINE DEFAULT_INLINE
#endif
/* Code to simulate functional units of real machines */
#ifndef FUNCTION_UNIT_INLINE
#define FUNCTION_UNIT_INLINE DEFAULT_INLINE