Andrew Cagney
bf1024d698
* Makefile.in (INTL_SRC): Define.
...
(INTL_CFLAGS): Define.
(INTL_DIR): Define.
(STD_CFLAGS): Add INTL_CFLAGS.
2002-06-22 19:10:34 +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
5c8844646d
* bits.c (LSMASKED64): New inline function.
...
(LSEXTRACTED64): Likewise.
* bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
sim/common/sim-bits.h
(LSMASKED64, LSEXTRACTED64): New functions definitions.
* Makefile.in (sim-bits.o): Remove target.
* main.c (zalloc): Fix typo in error message.
2002-01-04 00:00:54 +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
Daniel Jacobowitz
54cfd411af
Makefile.in: Add dependencies on $(CPU_H).
2001-07-16 18:36:37 +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
Tom Tromey
a2eb9d2751
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* Makefile.in (top_builddir): New macro.
(INTLLIBS): New macro.
(INTLDEPS): Likewise.
(psim): Depend on INTLDEPS; link against INTLLIBS.
* configure.in: Call CY_GNU_GETTEXT.
1998-04-24 20:55:51 +00:00
Andrew Cagney
21a2898b49
From Jim Wilson <wilson@cygnus.com>
...
* Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
rather than the non-portable cat -n.
1997-04-15 10:48:28 +00:00
Michael Meissner
37404956b4
New version from Andrew; Portability fixes on top of that
1997-02-11 20:19:28 +00:00
Michael Meissner
f9114af581
Fix warnings when compiling callback.c
1997-02-11 18:56:35 +00:00
Michael Meissner
54973b801f
Fix from Cagney so that new common files do not show up when using psim on old gdbs
1997-01-30 00:55:18 +00:00
Michael Meissner
d2e3d3af16
build callback and targ-map from the common directory
1997-01-29 17:42:14 +00:00
Michael Meissner
5c04f4f7fc
January 23rd merge
1997-01-27 21:34:50 +00:00
Michael Meissner
9aecf50da5
Test whether /dev/zero works before attemping to us it
1996-08-12 23:06:21 +00:00
Michael Meissner
2e913166b1
7/30 release from Andrew
1996-08-06 15:55:32 +00:00
Michael Meissner
30c87b55ec
New simulator changes from Andrew
1996-07-23 15:42:42 +00:00
Jason Molenda
78c09e4af5
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
...
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
(AC_PROG_INSTALL): Added.
* configure: Rebuilt.
1996-06-26 03:35:01 +00:00
Michael Meissner
88f1eac415
Add Solaris and Linux emulations
1996-06-02 15:40:16 +00:00
Michael Meissner
08dc78ad19
Make simulator build in a Canadian cross environment
1996-05-03 19:10:20 +00:00
Michael Meissner
4e956fd5e1
Add dependency
1996-04-04 18:48:51 +00:00
Michael Meissner
d6103e8eb6
Add --enable-sim-stdio to make console I/O use stdio, not printf_filtered and polling input
1996-03-29 17:33:56 +00:00
Michael Meissner
52edddb970
Latest changes from Andrew
1996-01-10 20:42:29 +00:00
Michael Meissner
979c3c25fd
Latest cagney update
1996-01-08 18:01:17 +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
28816f45f5
Add support for setting model name and other things
1995-11-12 14:20:39 +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
73c4941b23
first stage in function unit support; add new switches & latest code from andrew
1995-11-08 18:57:06 +00:00
Michael Meissner
bea9581508
Remove references to config.make/config.hdr
1995-11-07 02:58:35 +00:00
Fred Fish
01860b7ed1
* core.c: Rename to corefile.c
...
* core.h: Rename to corefile.h
* inline.c: Include corefile.h, renamed from core.h.
* cpu.h: Include corefile.h, renamed from core.h
* vm.c: Include corefile.h, renamed from core.h
* Makefile.in (CPU_H): Change core.h to corefile.h
(vm.o): Change dependency to corefile.h
(LIB_SRC): Change core.c to corefile.c.
(LIB_OBJ): Change core.o to corefile.o.
(corefile.o): Change dependencies to corefile.c, corefile.h.
* corefile.c: Include corefile.h rather than core.h
* README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
references.
1995-11-05 05:40:15 +00:00
Michael Meissner
056e975cfe
Add 2 config flags that were missing; make data cache instructions be nops
1995-11-03 19:37:28 +00:00
Michael Meissner
e61900e6a2
Update dependencies; Fix multiple options in --enable-sim-cflags
1995-11-03 03:39:27 +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
Michael Meissner
5b4d72dd73
New changes from Andrew
1995-10-31 18:29:37 +00:00
Michael Meissner
e89929cd79
Delete *.i and *.out files for clean
1995-10-26 18:10:13 +00:00
Fred Fish
64415b767b
*** empty log message ***
1995-10-20 16:16:18 +00:00
Michael Meissner
9f5912cb98
Format #instructions with commas
1995-10-13 01:10:06 +00:00
Michael Meissner
8e20a3ac82
Inline most things except semantics which causes GCC to balloon, and device{s,_tree} which causes a bug
1995-10-12 15:48:22 +00:00
Michael Meissner
d8f994b2dc
fix typo.
1995-09-10 03:44:58 +00:00
Michael Meissner
8b3797aa18
Update to new config scheme
1995-09-08 23:56:38 +00:00
Michael Meissner
4f965b817e
Do not include sysdep.h, bfd no longer provides it
1995-09-08 13:59:49 +00:00
Michael Meissner
cb7a68927a
Add PowerPC simulator from Andrew Cagney <cagney@highland.com.au>
1995-08-23 21:06:36 +00:00