aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorAndrey Volkov <avolkov@transas.com>2002-05-17 19:09:13 +0000
committerAndrey Volkov <avolkov@transas.com>2002-05-17 19:09:13 +0000
commita8cdafbd4e8dbf81a28d98de6a046bd9bc5cc097 (patch)
tree8b2577939ae2f269c86281b55c4c1a1aa24d7f6c /sim/common
parentb9c9142c4073da3ece8bbb1a0401c841d8daa142 (diff)
downloadgdb-a8cdafbd4e8dbf81a28d98de6a046bd9bc5cc097.zip
gdb-a8cdafbd4e8dbf81a28d98de6a046bd9bc5cc097.tar.gz
gdb-a8cdafbd4e8dbf81a28d98de6a046bd9bc5cc097.tar.bz2
* h8300s now new target, not alias of h8300h
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog6
-rw-r--r--sim/common/run.c10
-rw-r--r--sim/common/sim-options.c11
3 files changed, 22 insertions, 5 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 6935b01..ee6bd71 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-17 Andrey Volkov <avolkov@transas.com>
+
+ * run.c: Made h8300s as new target, not h8300h alias.
+ Added new option -S (h8300s target)
+ * sim-options.c: Ditto.
+
2002-05-01 Chris Demetriou <cgd@broadcom.com>
* callback.c: Use 'deprecated' rather than 'depreciated.'
diff --git a/sim/common/run.c b/sim/common/run.c
index c34d5e6..6a21586 100644
--- a/sim/common/run.c
+++ b/sim/common/run.c
@@ -115,7 +115,7 @@ main (ac, av)
do all argv processing. */
#ifdef SIM_H8300 /* FIXME: quick hack */
- while ((i = getopt (ac, av, "a:c:m:op:s:htv")) != EOF)
+ while ((i = getopt (ac, av, "a:c:m:op:s:hStv")) != EOF)
#else
while ((i = getopt (ac, av, "a:c:m:op:s:tv")) != EOF)
#endif
@@ -173,8 +173,11 @@ main (ac, av)
/* FIXME: Quick hack, to be replaced by more general facility. */
#ifdef SIM_H8300
case 'h':
- set_h8300h (1);
+ set_h8300h (1,0);
break;
+ case 'S':
+ set_h8300h (1,1);
+ break;
#endif
default:
usage ();
@@ -318,7 +321,8 @@ usage ()
fprintf (stderr, "-c size Set simulator cache size to `size'.\n");
#endif
#ifdef SIM_H8300
- fprintf (stderr, "-h Executable is for H8/300H or H8/S.\n");
+ fprintf (stderr, "-h Executable is for h8/300h.\n");
+ fprintf (stderr, "-S Executable is for h8/300s.\n");
#endif
fprintf (stderr, "-m size Set memory size of simulator, in bytes.\n");
#ifdef SIM_HAVE_ENVIRONMENT
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index 9ccc51d..aae0245 100644
--- a/sim/common/sim-options.c
+++ b/sim/common/sim-options.c
@@ -110,6 +110,7 @@ typedef enum {
OPTION_HELP,
#ifdef SIM_H8300 /* FIXME: Should be movable to h8300 dir. */
OPTION_H8300,
+ OPTION_H8300S,
#endif
OPTION_LOAD_LMA,
OPTION_LOAD_VMA,
@@ -152,7 +153,10 @@ static const OPTION standard_options[] =
#ifdef SIM_H8300 /* FIXME: Should be movable to h8300 dir. */
{ {"h8300h", no_argument, NULL, OPTION_H8300},
- 'h', NULL, "Indicate the CPU is h8/300h or h8/300s",
+ 'h', NULL, "Indicate the CPU is h8/300h",
+ standard_option_handler },
+ { {"h8300s", no_argument, NULL, OPTION_H8300S},
+ 'S', NULL, "Indicate the CPU is h8/300s",
standard_option_handler },
#endif
@@ -354,7 +358,10 @@ standard_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
#ifdef SIM_H8300 /* FIXME: Can be moved to h8300 dir. */
case OPTION_H8300:
- set_h8300h (1);
+ set_h8300h (1,0);
+ break;
+ case OPTION_H8300S:
+ set_h8300h (1,1);
break;
#endif