Andrew Cagney
d81bb16ac0
2003-06-19 Andrew Cagney <cagney@redhat.com>
...
* ld-insn.h: Update copyright.
(cache_fields): Define.
(insn_table_fields): Add insn_field_6 and insn_field_7.
(load_insn_table): Pass in the "cache_rules".
* ld-insn.c: Update copyright.
(load_insn_table): Add parameter "cache_rules". Handle "cache",
"computed" and "scratch" fields.
(main): Pass "cache_rules" to load_insn_table.
* ld-cache.h: Update copyright.
(append_cache_table): Declare.
* ld-cache.c: Update copyright.
(append_cache_table): New function.
(load_cache_table): Call.
* gen-model.c: Include "ld-cache.h".
* gen-itable.c: Include "ld-cache.h".
* igen.c: Move #include "ld-cache.h" to earlier. Update
copyright.
(main): Permit a NULL "cache_rules". Pass address of
"cache_rules" to load_insn_table.
* Makefile.in (tmp-ld-insn): Add "ld-cache.o".
(tmp-igen): Do not include ppc-cache-rules.
(gen-itable.o, gen-model.o): Add "ld-cache.h".
* ppc-cache-rules: Delete file.
* ppc-instructions: Add cache rules.
2003-06-20 03:59:33 +00:00
Andrew Cagney
8d64d0fdca
2003-06-19 Andrew Cagney <cagney@redhat.com>
...
* Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
(SIM_FPU_FLAGS): Define.
(icache.o): Delete explicit compile command.
(semantics.o, idecode.o): Delete explicit compile command.
(NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
* gen-support.c (gen_support_c): Generate #include of
"sim-inline.h" and "sim-fpu.h", but conditional on
HAVE_COMMON_FPU.
* gen-idecode.c (gen_idecode_c): Ditto.
* igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
"sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
Move to before "support.h".
* Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
copyright.
2003-06-19 18:42:30 +00:00
Matthew Green
43c4bab055
* Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
...
* igen.c (main): Change -I to add include paths for :include:
files.
Implement -G as per sim/igen, with just gen-icache=N support.
Call load_insn_table() with the built include path.
* ld-insn.c (parse_include_entry): New. Load an :include: file.
(load_insn_table): New `includes' argument. Look for :include:
entries and call parse_include_entry() for them.
(main): Adjust load_insn_table() call.
* ld-insn.h (model_include_fields): New enum.
(load_insn_table): Update prototype.
* table.c (struct _open_table, struct _table): Rework
structures to handle included files.
(table_push): Move the guts of table_open() here.
* table.c (struct _open table, struct table): Make table object an
indirect ptr to the current table file.
(current_line, new_table_entry, next_line): Make file arg type
open_table.
(table_open): Use table_push.
(table_entry_read): Point variable file at current table, at eof, pop
last open table.
* misc.h (NZALLOC): New macro. From sim/igen.
* table.h, table.c (table_push): New function.
2002-01-12 10:21:12 +00:00
Matthew Green
d29d5195ca
* support sim-fpu.c for correct FP emulation.
...
* Makefile.in (LIB_OBJ): Add @sim_fpu@.
(ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
(icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
(sim-fpu.o, sim-bits.o, tconfig.h): New targets.
* configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
* configure: Regenerate.
* device.h (device_find_integer_array_property): Match function definition.
* gen-icache.c (print_icache_internal_function_declaration): Rename
INLINE_ICACHE to PSIM_INLINE_ICACHE.
* gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
to PSIM_INLINE_IDECODE.
* gen-semantics.c (print_semantic_function_header): Rename
EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
* gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
PSIM_INLINE_SUPPORT.
* igen.c (print_function_name): Also escape `(' and `)'.
(gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
(gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
* inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
(EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
(STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
(INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
(EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
(INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
(EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
(INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
(EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
(INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
(EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
(INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
* options.c (options_inline): Fix names.
* sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
* sim-endian.h: Likewise.
* sim-main.h: New file.
* std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
2001-12-14 00:22:13 +00:00
Stan Shebs
7a292a7adf
import gdb-19990422 snapshot
1999-04-26 18:34:20 +00:00
Stan Shebs
c906108c21
Initial creation of sourceware repository
1999-04-16 01:35:26 +00:00
Stan Shebs
071ea11e85
Initial creation of sourceware repository
1999-04-16 01:34:07 +00:00
Michael Meissner
5c04f4f7fc
January 23rd merge
1997-01-27 21:34:50 +00:00
Michael Meissner
30c87b55ec
New simulator changes from Andrew
1996-07-23 15:42:42 +00:00
Michael Meissner
8a1d8a0b60
update from andrew
1996-03-23 15:02:42 +00:00
Michael Meissner
f2181eff5f
Sort instruction names; Add igen -R option; count # of CRs that mtcrf moved
1995-11-25 01:35:14 +00:00
Michael Meissner
45525d8d6d
Fix warnings to everything can be compiled with -Wall; Redo model specific changes once again to speed things up
1995-11-24 16:44:37 +00:00
Michael Meissner
4a0351ab45
Add floating point model specific support; Redo method model specific support is done; Add remaining floating add/subtract-multiply
1995-11-21 21:41:25 +00:00
Michael Meissner
4220dcd698
checkpoint ppc simulator
1995-11-17 19:17:58 +00:00
Michael Meissner
84bbbc3577
Delete old functional_unit support; Add --enable-sim-model-issue; Monitor branch prediction success
1995-11-16 21:42:27 +00:00
Michael Meissner
867b71685a
fix bug in last checkin
1995-11-16 19:25:47 +00:00
Michael Meissner
845ff5a45f
more functional unit changes
1995-11-16 19:02:52 +00:00
Michael Meissner
80948f392b
More model specific changes
1995-11-15 22:53:59 +00:00
Michael Meissner
39c324612d
make inline model use static when inlining.
1995-11-14 11:34:01 +00:00
Michael Meissner
f35df46cc3
make inline model use static when inlining.
1995-11-14 11:25:34 +00:00
Michael Meissner
fe439e0f18
fix more warnings
1995-11-14 10:52:24 +00:00
Michael Meissner
ac79ccd41d
Fix warnings and dependency
1995-11-14 09:52:29 +00:00
Michael Meissner
1dc7c0ed84
checkpoint
1995-11-13 16:07:30 +00:00
Michael Meissner
eb4ef19775
Add model-functions support
1995-11-13 01:27:21 +00:00
Michael Meissner
28816f45f5
Add support for setting model name and other things
1995-11-12 14:20:39 +00:00
Michael Meissner
a31140524a
Tons of changes to allow model specific information in the instruction file.
1995-11-10 22:49:05 +00:00
Michael Meissner
ba62bb1c74
Turn on INLINES if using GCC to compile simulator; Print more stuff if requests -t trace; If !WITH_ASSERT, do not check whether illegal bits in instruction are set
1995-11-09 19:50:51 +00:00
Michael Meissner
c5addc193d
General cleanup; add -t options support to print all options
1995-11-09 02:35:15 +00:00
Michael Meissner
c494cadde6
Use autoconf correctly; provide more stats with -I
1995-11-02 20:21:35 +00:00
Michael Meissner
a983c8f080
Andrew's latest changes & print all instruction counts if -I
1995-11-02 14:27:18 +00:00
Michael Meissner
c143ef6296
Lots of changes
1995-11-01 19:32:38 +00:00