diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-01-31 06:56:13 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-01-31 06:56:13 +0000 |
commit | c4db5b04f888efa8b06871eafab17ef5d720a9c7 (patch) | |
tree | 093bfc6c04f1ce5e750a67159fd023d84d7f47a3 /sim/igen | |
parent | 6271cadd106ad2316615fe962bf9ca509b9bc5f8 (diff) | |
download | gdb-c4db5b04f888efa8b06871eafab17ef5d720a9c7.zip gdb-c4db5b04f888efa8b06871eafab17ef5d720a9c7.tar.gz gdb-c4db5b04f888efa8b06871eafab17ef5d720a9c7.tar.bz2 |
mips - for r5900 generate igen simulator.
igen - stop crash when simulator isn't multi-sim'ed
Diffstat (limited to 'sim/igen')
-rw-r--r-- | sim/igen/ChangeLog | 7 | ||||
-rw-r--r-- | sim/igen/gen-engine.c | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog index 7db04df..d665bdf 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -1,8 +1,13 @@ Sat Jan 31 14:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com> + * gen-engine.c (gen_engine_h): Don't assume a model is present. + (gen_engine_c): Ditto. + + * igen.c (gen_run_c): Ditto. + * gen-engine.c (print_run_body): Use CIA_GET & CIA_SET instead of CPU_CIA. Parameterize with CPU argument. - + Fri Jan 30 09:09:39 1998 Andrew Cagney <cagney@b1.cygnus.com> * gen.h (struct _gen_list): Replace processor with model. diff --git a/sim/igen/gen-engine.c b/sim/igen/gen-engine.c index 5290e73..3b83c3f 100644 --- a/sim/igen/gen-engine.c +++ b/sim/igen/gen-engine.c @@ -727,7 +727,9 @@ gen_engine_h (lf *file, for (entry = gen->tables; entry != NULL; entry = entry->next) { print_engine_run_function_header (file, - entry->model->name, + (options.gen.multi_sim + ? entry->model->name + : NULL), is_function_declaration); } } @@ -765,7 +767,9 @@ gen_engine_c(lf *file, /* output the main engine routine */ print_engine_run_function_header (file, - entry->model->name, + (options.gen.multi_sim + ? entry->model->name + : NULL), is_function_definition); print_run_body (file, entry->table); break; |