diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-11-12 14:20:39 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-11-12 14:20:39 +0000 |
commit | 28816f45f574ca788dd4e05b8ee7a140e01f3d84 (patch) | |
tree | ae6525ea117a94aa6fa239a43eb8633513158742 /sim/ppc/options.c | |
parent | c05c182dd679dd98f39e59fd567f767c679fa13f (diff) | |
download | gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.zip gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.tar.gz gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.tar.bz2 |
Add support for setting model name and other things
Diffstat (limited to 'sim/ppc/options.c')
-rw-r--r-- | sim/ppc/options.c | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/sim/ppc/options.c b/sim/ppc/options.c index 161b0d1..a48a3b7 100644 --- a/sim/ppc/options.c +++ b/sim/ppc/options.c @@ -21,7 +21,7 @@ #ifndef _OPTIONS_C_ #define _OPTIONS_C_ -#include "basics.h" +#include "cpu.h" #include "options.h" STATIC_INLINE const char * @@ -85,25 +85,6 @@ options_mon (int mon) return "UNKNOWN"; } -STATIC_INLINE const char * -options_ppc (ppc_model ppc) -{ - switch (ppc) { - case PPC_MODEL_UNKNOWN: return "NONE"; - case PPC_MODEL_601: return "601"; - case PPC_MODEL_602: return "602"; - case PPC_MODEL_603: return "603"; - case PPC_MODEL_603e: return "603e"; - case PPC_MODEL_604: return "604"; - case PPC_MODEL_403: return "403"; - case PPC_MODEL_505: return "505"; - case PPC_MODEL_821: return "821"; - case PPC_MODEL_860: return "860"; - } - - return "UNKNOWN"; -} - void print_options (void) { @@ -129,9 +110,9 @@ print_options (void) printf_filtered ("WITH_ASSERT = %d\n", WITH_ASSERT); printf_filtered ("WITH_MON = %s\n", options_mon (WITH_MON)); printf_filtered ("WITH_FUNCTION_UNIT = %d\n", WITH_FUNCTION_UNIT); - printf_filtered ("WITH_DEFAULT_PPC_MODEL = %s\n", options_ppc (WITH_DEFAULT_PPC_MODEL)); - printf_filtered ("WITH_PPC_MODEL = %s\n", options_ppc (WITH_PPC_MODEL)); - printf_filtered ("WITH_RESERVE_BITS = %d\n", WITH_RESERVE_BITS); + printf_filtered ("WITH_DEFAULT_MODEL = %s\n", model_name[WITH_DEFAULT_MODEL]); + printf_filtered ("WITH_MODEL = %s\n", model_name[WITH_MODEL]); + printf_filtered ("WITH_RESERVED_BITS = %d\n", WITH_RESERVED_BITS); printf_filtered ("DEFAULT_INLINE = %d\n", DEFAULT_INLINE); printf_filtered ("SIM_ENDIAN_INLINE = %d\n", SIM_ENDIAN_INLINE); printf_filtered ("BITS_INLINE = %d\n", BITS_INLINE); |