Commit Graph

3340 Commits

Author SHA1 Message Date
Doug Evans e94d449d6f * cgen-trace.h (trace_extract): Add cast to fix warning. 2009-11-22 22:29:28 +00:00
Nathan Froyd 68a3e151da * configure.ac: If build != host, create a separate build-config.h
file desecribing the build machine.
	* configure: Regenerate.
	* lf.c: Include build-config.h instead of config.h.
	* dgen.c: Likewise.
	* igen.c: Likewise.
	* misc.c: Likewise.
	* misc.h: Likewise.
	* filter.c: Likewise.
	* table.c: Likewise.
2009-11-14 02:22:32 +00:00
Tristan Gingold 8f0ac70082 2009-11-12 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_write): Allow byte access.
	(sim_read): Ditto.
2009-11-12 15:24:04 +00:00
Tristan Gingold 33bcfade88 2009-11-12 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_load): Clear memory before loading.
2009-11-12 15:17:42 +00:00
Tristan Gingold 46b5151381 2009-11-09 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_resume): Fix typo for OP_ret.
2009-11-09 13:50:30 +00:00
Doug Evans ca25db52ba * cgen-mem.h (DECLARE_GETT): Don't inline.
(DECLARE_SETT): Ditto.
2009-11-06 04:46:17 +00:00
Doug Evans fb067cad5a * arch.c: Regenerate.
* arch.h: Regenerate.
	* cpu.c: Regenerate.
	* cpu.h: Regenerate.
	* cpuall.h: Regenerate.
	* decode.c: Regenerate.
	* decode.h: Regenerate.
	* model.c: Regenerate.
	* sem-switch.c: Regenerate.
	* sem.c: Regenerate.
2009-11-04 05:42:21 +00:00
Doug Evans 1a5691a5c5 * arch.c: Regenerate.
* arch.h: Regenerate.
	* cpu.c: Regenerate.
	* cpu.h: Regenerate.
	* cpuall.h: Regenerate.
	* decode.c: Regenerate.
	* decode.h: Regenerate.
	* model.c: Regenerate.
	* sem-switch.c: Regenerate.
	* sem.c: Regenerate.
2009-11-04 05:16:33 +00:00
Doug Evans e9c6059176 * arch.c: Regenerate.
* arch.h: Regenerate.
	* cpu.c: Regenerate.
	* cpu.h: Regenerate.
	* cpu2.c: Regenerate.
	* cpu2.h: Regenerate.
	* cpuall.h: Regenerate.
	* cpux.c: Regenerate.
	* cpux.h: Regenerate.
	* decode.c: Regenerate.
	* decode.h: Regenerate.
	* decode2.c: Regenerate.
	* decode2.h: Regenerate.
	* decodex.c: Regenerate.
	* decodex.h: Regenerate.
	* model.c: Regenerate.
	* model2.c: Regenerate.
	* modelx.c: Regenerate.
	* sem-switch.c: Regenerate.
	* sem.c: Regenerate.
	* sem2-switch.c: Regenerate.
	* semx-switch.c: Regenerate.
2009-11-04 05:07:00 +00:00
Doug Evans 894a1d7b60 * Makefile.in (mloop.c): Add @true to rule.
(mloopx.c, mloop2.c): Ditto.
	(stamp-*): Add Makefile dependency.
	(arch.c, arch.h, cpuall.h): Specify full path.
	(cpu.h, sem.c, sem-switch.c, model.c, decode.c, decode.h): Ditto.
	(cpux.h, semx-switch.c, modelx.c, decodex.c, decodex.h): Ditto.
	(cpu2.h, sem2-switch.c, model2.c, decode2.c, decode2.h): Ditto.
2009-11-04 05:02:18 +00:00
Doug Evans fda1c30b0b * arch.c: Regenerate.
* arch.h: Regenerate.
	* cpu.c: Regenerate.
	* cpu.h: Regenerate.
	* cpuall.h: Regenerate.
	* decode-compact.c: Regenerate.
	* decode-compact.h: Regenerate.
	* decode-media.c: Regenerate.
	* decode-media.h: Regenerate.
	* defs-compact.h: Regenerate.
	* defs-media.h: Regenerate.
	* sem-compact-switch.c: Regenerate.
	* sem-compact.c: Regenerate.
	* sem-media-switch.c: Regenerate.
	* sem-media.c: Regenerate.
	* sh-desc.c: Regenerate.
	* sh-opc.h: Regenerate.
2009-11-04 04:40:47 +00:00
Doug Evans b29791a834 * arch.c: Regenerate.
* arch.h: Regenerate.
	* cpu.c: Regenerate.
	* cpu.h: Regenerate.
	* cpuall.h: Regenerate.
	* decode.c: Regenerate.
	* decode.h: Regenerate.
	* model.c: Regenerate.
	* sem.c: Regenerate.
2009-11-04 04:33:07 +00:00
Doug Evans 62d08856b0 * Makefile.in (SIM_EXTRA_DEPS): Add sh-desc.h sh-opc.h.
(sh-desc.o): New rule.
	(sh-desc.h,sh-desc.c,sh-opc.h): Replaces rule for desc.h.
	(all generated file rules): Specify generated file with full path.
2009-11-03 16:56:52 +00:00
Doug Evans c92e840bf6 * Makefile.in (stamp-arch): Update path to lm32.cpu.
(stamp-cpu): Ditto.
2009-10-28 04:24:44 +00:00
Doug Evans f979b695e8 * sh-desc.h: Regenerate. 2009-10-24 16:32:52 +00:00
Doug Evans f09d60e19b * cris/arch.c: Regenerate.
* cris/arch.h: Regenerate.
	* cris/cpuall.h: Regenerate.
	* cris/cpuv10.c: Regenerate.
	* cris/cpuv10.h: Regenerate.
	* cris/cpuv32.c: Regenerate.
	* cris/cpuv32.h: Regenerate.
	* cris/cris-desc.c: Regenerate.
	* cris/cris-desc.h: Regenerate.
	* cris/cris-opc.h: Regenerate.
	* cris/decodev10.c: Regenerate.
	* cris/decodev10.h: Regenerate.
	* cris/decodev32.c: Regenerate.
	* cris/decodev32.h: Regenerate.
	* cris/modelv10.c: Regenerate.
	* cris/modelv32.c: Regenerate.
	* cris/semcrisv10f-switch.c: Regenerate.
	* cris/semcrisv32f-switch.c: Regenerate.
2009-10-24 04:33:41 +00:00
Tristan Gingold 244d525937 2009-10-23 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_stop): Return 1.
2009-10-23 09:14:32 +00:00
Doug Evans 0a8d1bde17 * MAINTAINERS: Add myself as m32r maintainer. 2009-10-16 18:57:30 +00:00
Michael Eager 060916aa31 * MAINTAINERS: Add self as MicroBlaze maintainer. 2009-10-15 19:38:12 +00:00
Joel Sherrill 5bc4da4d06 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* std-config.h: Fix spelling error.
2009-10-15 15:46:49 +00:00
Joel Sherrill c272cb468a 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* sim-inline.h: Fix spelling error.
2009-10-15 15:46:19 +00:00
Ben Elliston 42c8b6b546 * MAINTAINERS (common): Move myself to "past maintainers" section. 2009-10-13 23:44:18 +00:00
Michael Eager 419c2fda00 * microblaze/interp.c: Add include microblaze-dis.h. 2009-10-06 15:19:52 +00:00
Tom Tromey 1428dcedf3 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
* Make-common.in: Add datarootdir.
2009-10-02 15:43:17 +00:00
Michael Eager bd30e45a34 2009-09-23 Michael Eager <eager@eagercon.com>
* configure: Add microblaze-*.* (not regenerated).
       * configure.ac: Likewise.
       * microblaze/config.in: New.
       * microblaze/configure: Generate.
       * microblaze/configure.ac: New.
       * microblaze/interp.c: New.
       * microblaze/Makefile.in: New.
       * microblaze/microblaze.h: New.
       * microblaze/microblaze.isa: New.
       * microblaze/sim-main.h: New.
       * microblaze/sysdep.h: New.
2009-09-23 20:01:47 +00:00
Joel Brobecker 93cfa9cf1f * main.c: Fix spelling error. 2009-09-22 15:44:12 +00:00
Doug Evans 5b81ce52a3 fix thinko in previous entry 2009-09-15 23:30:37 +00:00
Doug Evans bf0275b1b5 back out previous patch, replace with
* configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN.
	* configure: Regenerate.
	* config.in: Regenerate.
	* hw_sem.c: #include "config.h".
	(HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN.
2009-09-15 23:26:44 +00:00
Doug Evans 6ae841305c * configure.ac (sim_hwflags): Clean up definition, AC_SUBST it.
* configure: Regenerate.
	* Makefile.in (SIM_HWFLAGS): New variable.
	(STD_CFLAGS, NOWARN_CFLAGS): Add it.
2009-09-15 23:06:42 +00:00
Anthony Green 5c27d164d8 Use common memory infrastructure and introduce device tree support 2009-09-10 21:57:03 +00:00
Ralf Wildenhues 0aec8eb1b5 Remove SIM_CHECK_MEMBER* in sim/common/.
sim/common/:
	* aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
	(SIM_CHECK_MEMBERS_1): Remove.
	* configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
	AC_CHECK_MEMBERS one.
	* configure: Regenerate.
2009-08-29 11:36:26 +00:00
Ralf Wildenhues 4433007921 Fix SIM_CHECK_MEMBER definition with Autoconf 2.64.
sim/common/:
	* aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
	* configure: Regenerate.
2009-08-29 11:35:06 +00:00
Ralf Wildenhues 81ecdfbb4d Regenerate tree using Autoconf 2.64 and Automake 1.11.
config/:
	* override.m4 (_GCC_AUTOCONF_VERSION): Bump to 2.64.

/:
	* configure: Regenerate.

etc/:
	* configure: Regenerate.

sim/common/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/iq2000/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/d10v/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/igen/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/m32r/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/frv/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/:
	* avr/config.in: Regenerate.
	* avr/configure: Likewise.
	* configure: Likewise.
	* cris/config.in: Likewise.
	* cris/configure: Likewise.

sim/h8300/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/mn10300/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/ppc/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/erc32/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/arm/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/m68hc11/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/lm32/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/sh64/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/v850/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/cr16/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/moxie/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/m32c/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/mips/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/mcore/:
	* config.in: Regenerate.
	* configure: Likewise.

sim/testsuite/d10v-elf/:
	* configure: Regenerate.

sim/testsuite/:
	* configure: Regenerate.

sim/testsuite/frv-elf/:
	* configure: Regenerate.

sim/testsuite/m32r-elf/:
	* configure: Regenerate.

sim/testsuite/mips64el-elf/:
	* configure: Regenerate.

sim/sh/:
	* config.in: Regenerate.
	* configure: Likewise.

gold/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* configure: Likewise.
	* testsuite/Makefile.in: Likewise.

gprof/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* configure: Likewise.
	* gconfig.in: Likewise.

opcodes/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* configure: Likewise.

gas/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* configure: Likewise.
	* doc/Makefile.in: Likewise.

ld/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* configure: Likewise.

gdb/:
	* aclocal.m4: Regenerate.
	* config.in: Likewise.
	* configure: Likewise.
	* gnulib/Makefile.in: Likewise.

gdb/doc/:
	* configure: Regenerate.

gdb/gdbserver/:
	* aclocal.m4: Regenerate.
	* config.in: Likewise.
	* configure: Likewise.

gdb/testsuite/:
	* configure: Regenerate.
	* gdb.hp/configure: Likewise.
	* gdb.hp/gdb.aCC/configure: Likewise.
	* gdb.hp/gdb.base-hp/configure: Likewise.
	* gdb.hp/gdb.compat/configure: Likewise.
	* gdb.hp/gdb.defects/configure: Likewise.
	* gdb.hp/gdb.objdbg/configure: Likewise.
	* gdb.stabs/configure: Likewise.

binutils/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* configure: Likewise.
	* doc/Makefile.in: Likewise.

bfd/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* configure: Likewise.

bfd/doc/:
	* Makefile.in: Regenerate.

readline/:
	* configure: Regenerate.

readline/examples/rlfe/:
	* configure: Regenerate.
2009-08-22 16:56:56 +00:00
Ralf Wildenhues c462b41bcd Minor fixes in sim, gold, gdb for Autoconf 2.64, Automake 1.11.
gold/:
	* Makefile.am (AUTOMAKE_OPTIONS): Add foreign.
	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add foreign.
	* Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.

gdb/:
	* configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of
	AC_GNU_SOURCE, AC_AIX, AC_ISC_POSIX.

sim/common/:
	* aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
	definition of AC_CHECK_MEMBER.
2009-08-22 15:59:24 +00:00
Ralf Wildenhues d6416cdc23 Fixup readline and sim including of override.m4
readline/examples/rlfe/:
	* configure.in: m4_include toplevel config/override.m4.
	* configure: Regenerate.

readline/ChangeLog.gdb:
	* configure.in: m4_include toplevel config/override.m4.
	* configure: Regenerate.

sim/:
	* configure.ac: m4_include toplevel config/override.m4.
	* configure: Regenerate.
	* avr/configure: Regenerate.
	* cris/configure: Regenerate.

sim/common/:
	* aclocal.m4: m4_include toplevel config/override.m4.
	* configure: Regenerate.

sim/iq2000/:
	* configure: Regenerate.

sim/d10v/:
	* configure: Regenerate.

sim/igen/:
	* configure: Regenerate.

sim/m32r/:
	* configure: Regenerate.

sim/frv/:
	* configure: Regenerate.

sim/h8300/:
	* configure: Regenerate.

sim/mn10300/:
	* configure: Regenerate.

sim/ppc/:
	* configure: Regenerate.

sim/erc32/:
	* configure: Regenerate.

sim/arm/:
	* configure: Regenerate.

sim/m68hc11/:
	* configure: Regenerate.

sim/lm32/:
	* configure: Regenerate.

sim/sh64/:
	* configure: Regenerate.

sim/v850/:
	* configure: Regenerate.

sim/cr16/:
	* configure: Regenerate.

sim/moxie/:
	* configure: Regenerate.

sim/m32c/:
	* configure: Regenerate.

sim/mips/:
	* configure: Regenerate.

sim/mcore/:
	* configure: Regenerate.

sim/sh/:
	* configure: Regenerate.
2009-08-22 11:36:40 +00:00
DJ Delorie 340cf1cfb6 * configure.in: Check for sys/select.h, termios.h, sys/socket.h,
netinet/in.h, and netinet/tcp.h.
* configure: Regenerate.
* config.in: Add those headers.
* main.c: Check for them.
(setup_tcp_console): Disable if no networking.
(main): Note missing networking or termios.
* mem.c: Check for those headers.
(stdin_ready): Disable if no termios.
(m32c_sim_restore_console): Disable if no termios.
(mem_get_byte): Disable console input if no termios.
2009-08-14 04:24:30 +00:00
Anthony Green 7a321525ff Increase simulated memory size. Support new system call ABI. Support exception processing for Linux system calls. 2009-07-31 11:40:16 +00:00
Ralf Wildenhues 96e946ca9a sim/
* Makefile.in (datarootdir): New variable.

sim/common/
	* Makefile.in (datarootdir): New variable.

sim/igen/
	* Makefile.in (datarootdir): New variable.

sim/ppc/
	* Makefile.in (datarootdir): New variable.

readline/
	* Makefile.in (datarootdir): New variable.
	* doc/Makefile.in (datarootdir): New variable.
	* shlib/Makefile.in (datarootdir): New variable.

gdb/gdbserver/
	* Makefile.in (datarootdir): New variable.
2009-07-30 22:53:18 +00:00
Doug Evans 6a8b86150e * common/Make-common.in (CPU_DIR): Define.
* iq2000/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu): Ditto.
* m32r/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.
2009-07-12 16:59:34 +00:00
Doug Evans b97514f2dc * Makefile.in (traps.o): Add dependency on targ-vals.h to fix
parallel makes.
2009-07-08 06:16:46 +00:00
Doug Evans 8065377a81 * Makefile.in (stamp-arch): Pass archfile to cgen-arch.
(stamp-cpu): Pass archfile to cgen-cpu-decode.
2009-07-08 05:38:01 +00:00
Doug Evans 2c2a86d776 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
identifiers for file types rather than encoding internal
	implementation details of cgen.sh.
	(CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
	* cgen.sh: Add support for parallel makes.
	Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2009-07-07 08:09:19 +00:00
Doug Evans a86de8e0d8 * mloop.in: Add missing # comment marker.
* mloop2.in: Ditto.
	* mloopx.in: Ditto.
2009-06-20 21:19:20 +00:00
Anthony Green 8656620041 Add PC-relative branch support to moxie sim. 2009-06-11 11:36:14 +00:00
Jon Beniston 487df32df7 Add ChangeLog 2009-05-18 13:27:12 +00:00
Jon Beniston c28c63d86b gdb/
2009-05-18  Jon Beniston <jon@beniston.com>

        * MAINTAINERS: Add lm32 target.
        * Makefile.in: Add lm32 dependencies.
        * NEWS: Indicate lm32 is a new target.
        * configure.tgt: Add lm32 targets.
        * lm32-tdep.c: New file.

gdb/testsuite
2009-05-18  Jon Beniston <jon@beniston.com>

        * gdb.asm/asm-source.exp: Add lm32 target.

include/gdb/
2009-05-18  Jon Beniston <jon@beniston.com>

        * sim-lm32.h: New file.

sim/
2009-05-18  Jon Beniston <jon@beniston.com>

        * MAINTAINERS: Add Jon Beniston as maintainer of lm32 sim.
        * configure.ac: Add lm32 target.
        * lm32: New directory.

sim/common
2009-05-18  Jon Beniston <jon@beniston.com>

        * gennltvals.sh: Add lm32 target.
        * nltvals.def: Add lm32 syscall definitions.

sim/lm32/
2009-05-18  Jon Beniston <jon@beniston.com>

        * Makefile.in: New file.
        * arch.c: New file.
        * arch.h: New file.
        * config.in: New file.
        * configure: New file.
        * configure.ac: New file.
        * cpu.c: New file.
        * cpu.h: New file.
        * cpuall.h: New file.
        * decode.c: New file.
        * decode.h: New file.
        * dv-lm32cpu.c: New file.
        * dv-lm32timer.c: New file.
        * dv-lm32uart.c: New file.
        * lm32.c: New file.
        * lm32-sim.h: New file.
        * mloop.in: New file.
        * model.c: New file.
        * sem.c: New file.
        * sem-switch.c: New file.
        * sim-if.c: New file.
        * sim-main.c: New file.
        * tconfig.in: New file.
        * traps.c: New file.
        * user.c: New file.
2009-05-18 13:25:35 +00:00
Andrew Cagney 90e2fa9c54 2009-05-11 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Orphan ppc.
2009-05-11 21:21:47 +00:00
Anthony Green 77176dfc67 Add missing break statemenets. 2009-05-10 13:25:57 +00:00
Kevin Buettner bba258adba * m32c/gdb-if.c (m32c_signal_to_host): Rename to
m32c_signal_to_target.  Change signal return values from SIGILL,
	SIGTRAP, SIGSEGV, etc. to TARGET_SIGNAL_ILL, TARGET_SIGNAL_TRAP,
	TARGET_SIGNAL_SEGV, etc.  Fix all callers.
2009-05-08 22:54:34 +00:00
Anthony Green fdd6fa6167 Add moxie simulator 2009-05-01 03:03:41 +00:00
Tristan Gingold df1756f414 2009-04-27 Tristan Gingold <gingold@adacore.com>
* avr: New directory.
	* avr/interp.c, avr/Makefile.in, avr/configure.ac: New files.
	* avr/config.in: New file, generated by autoheader.
	* avr/configure: New file generated by autoconf.
	* configure.ac: Add avr.
	* configure: Regenerated.
2009-04-27 10:50:53 +00:00
Joseph Myers 89a34d1b2c gdb:
2009-04-17  Carlos O'Donell  <carlos@codesourcery.com>

	* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
	* configure: Regenerate.
	* Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
	configure substitutions.
	(FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.

gdb/doc:
2009-04-17  Carlos O'Donell  <carlos@codesourcery.com>

	* Makefile.in: Set pdfdir and htmldir from configure
	substitutions.
	* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
	* configure: Regenerate.

readline:
2009-04-17  Carlos O'Donell  <carlos@codesourcery.com>

	* Makefile.in: Add html target.  Add dummy install-html and
	install-pdf targets.

sim:
2009-04-17  Carlos O'Donell  <carlos@codesourcery.com>

	* Makefile.in: Add dummy install-pdf, html, and
	install-html targets.
2009-04-17 17:44:05 +00:00
Joel Brobecker 982807ce66 From: J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
Speed up simulator startup:
        * sim-utils.c (zalloc): Use xcalloc.
2009-03-19 14:32:38 +00:00
Hans-Peter Nilsson fa0cbd5ae8 * sim/cris/asm/opterr5.ms, sim/cris/asm/opterr4.ms,
sim/cris/asm/opterr3.ms, sim/cris/asm/bare3.ms: New tests.
	* lib/sim-defs.exp (run_sim_test): New option progopts.
2009-01-18 22:17:47 +00:00
Hans-Peter Nilsson c10b360549 * cris/sim-if.c: Include errno.h.
(cris_start_address, cris_program_offset): New variables.
	(OPTION_CRIS_PROGRAM_OFFSET, OPTION_CRIS_STARTADDR): New option
	enums.
	(cris_options): New options --cris-program-offset and
	--cris-start-address.
	(cris_option_handler): Handle new options.
	(cris_program_offset_write, cris_set_section_offset_iterator)
	(cris_offset_sections, cris_offset_sections): New functions.
	(sim_load): Use cris_program_offset_write as function argument to
	cris_load_elf_file, not sim_write.
	(struct offsetinfo): New struct.
	(cris_handle_interpreter): Fix typo in comment.
	(sim_open): Call cris_offset_sections as soon as the bfd of the
	infile is available.  Gate bfd validity checks on abfd non-NULL.
	(sim_create_inferior): Let cris_start_address when != -1 override
	other start-address choices.
2009-01-18 22:17:03 +00:00
Joel Brobecker e4d013fc0f Update the copyright notice of some of the files I missed
in the previous copyright update.
2009-01-14 10:53:10 +00:00
Nathan Froyd 7631938e96 * ppc-instructions (sync): Add L field. 2009-01-12 20:04:36 +00:00
Hans-Peter Nilsson c6f38234a7 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
(MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
	(SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
	variant; UQI, UHI, USI, UDI, and cast the result to the signed
	type, QI, HI, SI, DI.
2009-01-07 01:13:36 +00:00
Hans-Peter Nilsson 2225d5bdd8 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
(MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
	(SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
	variant; UQI, UHI, USI, UDI, and cast the result to the signed
	type, QI, HI, SI, DI.
2009-01-07 01:12:51 +00:00
Hans-Peter Nilsson 7b1a28404b * sem.c: Regenerate. 2009-01-07 01:10:24 +00:00
Hans-Peter Nilsson 2a8922a97b * callback.c (os_error): Mark as being a noreturn function.
* sim-io.h (sim_io_error): Similar for sim_io_error.
2009-01-06 23:39:28 +00:00
Hans-Peter Nilsson 83c4f5797a * sim/cris/c/mmap5.c, sim/cris/c/mmap6.c, sim/cris/c/mmap7.c,
sim/cris/c/mmap8.c, sim/cris/c/hellodyn3.c: New tests.
2009-01-06 20:50:10 +00:00
Hans-Peter Nilsson fc887f09c5 * cris/traps.c (abort): Define to call sim_io_error.
(create_map): Make -1 imply a non-fixed address, not 0.  All
	callers changed.  Only prefer the next higher unmapped address if
	the last mapped address is no less than 0x40000000.  Check that
	the address to be mapped is not already mapped.  Update head
	comment.
	(unmap_pages): Don't call abort when recursive call fails, just
	note and return an error if a page in the range couldn't be unmapped.
	(cris_bmod_handler, h_supr_set_handler, h_supr_get_handler)
	(schedule, make_first_thread, cris_pipe_empty): New local variable sd.
	(cris_break_13_handler) <case TARGET_SYS_mmap2>: Handle
	non-MAP_FIXED argument overlapping existing map.  For MAP_FIXED,
	don't abort on page not being mapped.  Handle non-anon filemap
	with length padded to pagesize.
2009-01-06 20:49:00 +00:00
Joel Sherrill ed25d7320a 2009-01-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* r8c.opc, m32c.opc: Add parentheses to remove warnings.
2009-01-06 19:01:36 +00:00
Hans-Peter Nilsson a3d4b83b60 * cris/sim-if.c (TARGET_AT_NULL, TARGET_AT_PHDR, TARGET_AT_PHENT)
(TARGET_AT_PHNUM, TARGET_AT_PAGESZ, TARGET_AT_BASE)
	(TARGET_AT_FLAGS, TARGET_AT_ENTRY, TARGET_AT_UID, TARGET_AT_EUID)
	(TARGET_AT_GID, TARGET_AT_EGID, TARGET_AT_HWCAP)
	(TARGET_AT_CLKTCK): Remove redundant macros.
	(AUX_ENT): Adjust to use standard ELF AT_* macros.
	(AUX_ENTF): Ditto.  Remove always-0 middle argument.  Update all
	callers.
	(sim_open): Also pass AT_SECURE.
2009-01-03 21:25:42 +00:00
Hans-Peter Nilsson 51d95096e0 * sim/cris/c/settls1.c: New test. 2009-01-03 21:01:20 +00:00
Hans-Peter Nilsson ddf2c97233 * cris/sim-main.h (struct _sim_cpu): New member
set_target_thread_data.
	* cris/crisv32f.c (CRIS_TLS_REGISTER): Define.
	* cris/crisv10f.c: Ditto.
	* cris/cris-tmpl.c (MY (set_target_thread_data)): New function.
	(MY (f_specific_init)): Set new _sim_cpu member to new function.
	* cris/traps.c (TARGET_SYS_set_thread_area): Define.
	(cris_break_13_handler) <case TARGET_SYS_set_thread_area>: New
	case.
2009-01-03 21:00:48 +00:00
Hans-Peter Nilsson 2e1566c6da * sim/cris/c/exitg1.c, sim/cris/c/exitg2.c: New tests. 2009-01-03 20:26:19 +00:00
Hans-Peter Nilsson e56b67eda7 * cris/traps.c (TARGET_SYS_exit_group): Define.
(cris_break_13_handler): Handle it like the exit for the last
	thread.
2009-01-03 20:25:48 +00:00
Hans-Peter Nilsson 7a9d7282f3 * sim/cris/c/uname1.c: New test. 2009-01-03 19:58:47 +00:00
Hans-Peter Nilsson ffc67e7a94 * cris/traps.c (TARGET_UTSNAME): Update to 2009-01-01.
(TARGET_EPOCH): Update to match TARGET_UTSNAME.  Correct comment.
	(cris_break_13_handler) <case TARGET_SYS_uname>: Update to
	2.6.27.  Set machine field to the BFD printable name of the
	machine.
2009-01-03 19:58:11 +00:00
Hans-Peter Nilsson 91aabc8dd2 * sim/cris/c/mmap1.c (MMAP_FLAGS): Default-define to
MAP_PRIVATE and use this macro in the mmap call.
	* sim/cris/c/mmap4.c: New test.
2009-01-03 19:22:16 +00:00
Hans-Peter Nilsson a349c9b6a2 * cris/traps.c (TARGET_MAP_DENYWRITE): Define.
<case TARGET_SYS_mmap2>: Handle TARGET_MAP_DENYWRITE.
2009-01-03 19:21:42 +00:00
Hans-Peter Nilsson 195c7c55e0 * sim/cris/c/access1.c: New test. 2009-01-03 18:38:27 +00:00
Hans-Peter Nilsson e7fcaaa45e * cris/traps.c (TARGET_SYS_access, TARGET_R_OK, TARGET_W_OK)
(TARGET_X_OK, TARGET_F_OK): Define.
	(cris_break_13_handler) <case TARGET_SYS_access>: New case.
2009-01-03 18:37:31 +00:00
Hans-Peter Nilsson b4f8c801a1 * sim/cris/asm/pid1.ms: New test. 2009-01-03 17:52:19 +00:00
Hans-Peter Nilsson 08af5ba82d * cris/semcrisv32f-switch.c: Regenerate. 2009-01-03 17:51:47 +00:00
Hans-Peter Nilsson 3eb7f35c1a * sim/cris/asm/badarch1.ms: Tweak error message match. 2008-12-30 18:53:42 +00:00
Hans-Peter Nilsson a095635839 * cris/sim-if.c (sim_open): If sim_analyze_program fails, emit
just a short CRIS-specific notice.  Tweak the wording for a
	failing architecture test.
2008-12-30 18:52:44 +00:00
Hans-Peter Nilsson fe524faa87 * sim/cris/asm/badarch1.ms, sim/cris/c/badldso1.c,
sim/cris/c/badldso2.c, sim/cris/c/badldso3.c,
	sim/cris/c/helloaout.c, sim/cris/c/hellodyn.c,
	sim/cris/c/hellodyn2.c, sim/cris/c/writev1.c,
	sim/cris/c/writev2.c: New tests.
	* sim/cris/c/c.exp: If compiler links libc.so when attempting to
	link dynamically, create symlink named "lib" to the directory
	where it is found.  Handle new test-case option "dynamic".
2008-12-30 13:57:11 +00:00
Hans-Peter Nilsson c06ccdf1b6 * cris/traps.c (TARGET_SYS_writev): New macro.
(is_mapped_only, cris_dump_map): New functions.
	(cris_break_13_handler) <case TARGET_SYS_mmap2>: Handle more flags
	and prot combinations and a non-zero page-offset.  If
	TARGET_MAP_FIXED, unmap pages before mapping them.
	<case TARGET_SYS_mprotect>: When checking, allow any length
	argument.  Don't actually do anything.
	<case TARGET_SYS_writev>: New case.
2008-12-30 13:36:17 +00:00
Hans-Peter Nilsson 80e5c09e9d * cris/Makefile.in (SIM_OBJS): Remove sim-hload.o.
* cris/sim-if.c: Include elf-bfd.h.
	(struct progbounds): New members end_loadmem, start_nonloadmem.
	(xprintf, eprintf): New functions, copied from common/sim-load.c.
	(cris_load_elf_file, sim_load, cris_get_progbounds): New functions.
	(get_progbounds_iterator): Renamed from get_progbounds.  Make
	static.  Update head comment.  Set new struct progbounds members.
	(exec_load_addr, interp_load_addr, interp_start_addr): New static
	variables.
	(aux_ent_phdr, aux_ent_phent, aux_ent_phnum, aux_ent_base)
	(aux_ent_entry, cris_write_interp, cris_handle_interpreter): New
	functions.
	(sim_open): New constant array auxv_entries.  Rewrite AUX_ENT
	handling to use auxv_entries.  Improve error message and checking
	for invalid programs.  Use new variable abfd for the program
	instead of for each access reaching into sd to get it.
	(sim_create_inferior): If non-zero, use interp_start_addr instead
	of the program start address.
	(cris_disassemble_insn): Remove incorrect and unclear, supposedly
	stale comment.  Always specify little-endian.
2008-12-30 13:10:35 +00:00
Hans-Peter Nilsson b3580707c7 * sim/cris/asm/opterr1.ms, sim/cris/asm/opterr2.ms: Adjust for
differences in getopt_long error message quoting.
2008-12-30 10:51:11 +00:00
Hans-Peter Nilsson bce3bbcb76 * arch.c, arch.h, cpu.c, cpu.h, cpuall.h, decode.c, decode.h,
model.c, sem.c: Regenerate.
2008-12-23 01:40:25 +00:00
Joel Sherrill e3b96e32ca 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* ppc-instructions, ppc-spr-table: Add ability
	to read tbrl and tbru special registers.
2008-12-15 19:48:06 +00:00
Joel Sherrill c4212d37ab 2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* compile.c: Add const to remove warning.
2008-12-01 16:10:45 +00:00
Joel Sherrill a85c0b494e 2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* arminit.c, iwmmxt.c: Include <string.h> to
    eliminate warning.
2008-11-26 14:24:12 +00:00
Joel Sherrill 00a0b122cf 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure: Regenerated.
	* configure.ac: Add test for System V shared memory and semaphore.
	* debug.c, debug.h: Add trace support for new devices.
	* hw_sem.c, hw_shm.c: New files.
	* Makefile.in: Add hw_sem.c and hw_shm.c.
2008-11-18 21:30:37 +00:00
Joel Sherrill 6878aceba2 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal.m4:  Fix underquoting of function names.
2008-11-12 22:05:18 +00:00
Joel Sherrill d68c23cd04 2008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* erc32.c, exec.c: Fix warnings.
2008-11-11 22:20:54 +00:00
Daniel Jacobowitz be091327d3 * Make-common.in (run$(EXEEXT)): Add LDFLAGS. 2008-10-21 19:50:48 +00:00
DJ Delorie bec7fb47e4 * int.c (trigger_peripheral_interrupt): Clear interrupt pending
bit when peripheral interrupts are serviced.
2008-10-01 20:44:21 +00:00
Nick Clifton 086c6838fa * common/genmloop.sh: Add new parameter: -shell to specify the
command interpreter to use to run the input file.  This is
        necessary because otherwise SHELL is taken from the user's
        environment, and not from the makefile that invoked this script
        and the user might not be running an sh-like shell.
        * cris/Makefile.in: Pass -shell parameter to genmloop.sh.
        * fr30/Makefile.in: Likewise.
        * frv/Makefile.in: Likewise.
        * i960/Makefile.in: Likewise.
        * iq2000/Makefile.in: Likewise.
        * m32r/Makefile.in: Likewise.

        * frv/mloop.in: Add missing start of line comment marker.
2008-07-29 13:53:02 +00:00
Hans-Peter Nilsson ecdfd00481 * common.m4: Add test for libz and zlib.h. 2008-07-11 02:42:35 +00:00
Hans-Peter Nilsson b5bd96244f * configure: Regenerate to track ../common/common.m4 changes.
* config.in: Ditto.
2008-07-11 02:41:22 +00:00
Hans-Peter Nilsson 35689115d0 * configure.ac: Add test for libz and zlib.h.
* Makefile.in (LIBS): Set from @LIBS@.
	* configure: Regenerate.
	* config.in: Ditto.
2008-07-11 02:39:11 +00:00
Hans-Peter Nilsson 8929c18caa * cris/configure: Regenerate to track ../common/common.m4 changes.
* cris/config.in: Ditto.
2008-07-11 02:32:33 +00:00
Hans-Peter Nilsson 79e1e45978 * common.m4: Add test for libz and zlib.h.
* configure: Regenerate to track ../common/common.m4 changes.
	* config.in: Ditto.
2008-07-11 02:31:04 +00:00
Hans-Peter Nilsson 35e497c8ac * interp.c (hash): Remove incorrect prototype. 2008-07-11 01:32:00 +00:00
DJ Delorie e7ddc19715 * m32c.opc (BRK, GDBBRK): Remove debug logic.
* main.c (main): Add option to set raw console.
* mem.h (m32c_use_raw_console): Declare.
* mem.c (m32c_sim_restore_console): Only restore console if it's
been previously set.
(m32c_use_raw_console): Define.
(mem_get_byte): Set raw console if m32c_use_raw_console is set.
2008-06-17 00:34:37 +00:00
Michael Snyder 14e1f9573b 2008-06-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* sis.c: Correct spelling error.
2008-06-09 22:55:27 +00:00
Joseph Myers 6efef468be sim:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* cris/configure: Regenerate.

sim/common:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* aclocal.m4: Include ../../config/acx.m4.
	* common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
	* configure, config.in: Regenerate.
	* Make-common.in (LIB_OBJS): Add version.o.
	(version.c, version.o): New rules.
	* run.c: Include version.h.
	(usage): Add help parameter. Print output either to stdout or
	stderr depending on that parameter.
	(print_version): New.
	(main): Check for --help and --version.
	* run-sim.h (sim_target_display_usage): Add help parameter.
	* version.h: New.

sim/arm:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.
	* wrapper.c (sim_target_display_usage): Add help parameter.

sim/cr16:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/d10v:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/erc32:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/frv:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/h8300:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/iq2000:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/m32c:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/m32r:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/m68hc11:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/mcore:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/mips:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/mn10300:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/ppc:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
	* configure, config.in: Regenerated.
	* Makefile.in (LIB_OBJ): Add version.o.
	(version.c, version.o): New rules.
	* psim.c (psim_usage): Add help parameter.  Print the bug URL.
	Exit with code 0 for help.
	(psim_options): Update calls to psim_usage.  Handle --help and
	--version.
	* psim.h (psim_usage): Update prototype.
	* main.c (main): Update psim_usage call.

sim/sh:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/sh64:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/v850:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.
2008-06-07 01:31:27 +00:00
DJ Delorie 7cc70e5388 Oops, missed some warnings.
* mem.h (m32c_sim_restore_console): New.
2008-06-06 19:26:10 +00:00
DJ Delorie 3877a1459b * Makefile.in: Add Timer A support.
* cpu.h (m32c_opcode_pc): New.
(in_gdb): New.
* gdb-if.c (sim_open): Add Timer A support.  Support unbuffered
console.
* int.c (trigger_interrupt): Manage the U flag properly.
(trigger_based_interrupt): Likewise.
(trigger_fixed_interrupt): New.
(trigger_peripheral_interrupt): New.
* int.h (trigger_peripheral_interrupt): New.
* m32c.opc: Use m32c_opcode_pc throughout, as needed.
(decode_m32c): Detect jump-to-zero with traceback.
(BRK): Try to do the right thing, keeping track of whether we're
in gdb or not, and if the user has provided a handler or not.
(GBRK): Alternate break opcode for gdb, in case the user's app
needs to use BRK for itself.
(BRK2): Implement.
* main.c: Add Timer A support.  Support TCP-based console.
(setup_tcp_console): New.
(main): Add Timer A support.  Support TCP-based console.
* mem.c: Add Timer A support.  Support TCP-based console.
(mem_ptr): Enhance NULL pointer detection.
(stdin_ready): New.
(m32c_sim_restore_console): New.
(mem_get_byte): Check for console input ready.
(update_timer_a): New.
* r8c.opc (SSTR): Use r0l, not r0h.
(REIT): Fix return frame logic.
* reg.c (print_flags): New.
(trace_register_changes): Use it.
(m32c_dump_all_registers): New.
* timer_a.h: New.

* load.c: Fix indentation.
* trace.c: Fix indentation.
* trace.h: Fix indentation.
2008-06-06 19:18:15 +00:00
Joel Brobecker 7010a0c901 * ppc/altivec.igen (vperm): Latch inputs into temporaries. 2008-05-09 15:03:09 +00:00
M R Swami Reddy e8db345894 Added 3 miscellaneous testcases like read32.ms uread16.ms hw-trap.ms. 2008-05-05 10:25:20 +00:00
M R Swami Reddy 9c301be69b These files removed. 2008-05-05 10:00:16 +00:00
M R Swami Reddy 20f55b937b Add the change for testcases comment update and new testcases addition. 2008-05-05 09:55:36 +00:00
M R Swami Reddy fae9ec8dca Update testcase comment.
addb.cgs addd.cgs addi.cgs andb.cgs andd.cgs andw.cgs
   ashub.cgs ashub_i.cgs ashud.cgs ashud_i.cgs ashuw.cgs
   ashuw_i.cgs cmpi.cgs cmpw.cgs jlt.cgs jump.cgs loadd.cgs
   loadw.cgs lshb.cgs lshb_i.cgs lshd.cgs lshd_i.cgs lshw.cgs
   lshw_i.cgs movb.cgs movd.cgs movw.cgs movxb.cgs movxw.cgs
   movzb.cgs movzw.cgs mulb.cgs muluw.cgs mulw.cgs orb.cgs
   ord.cgs orw.cgs pop1.cgs pop2.cgs pop3.cgs popret1.cgs
   popret2.cgs popret3.cgs push1.cgs push2.cgs push3.cgs

Added BIT operation testcases:
  cbitb.cgs cbitw.cgs sbitb.cgs sbitw.cgs tbitb.cgs tbit.cgs and tbitw.cgs
2008-05-05 09:52:46 +00:00
M R Swami Reddy ccd2d1c879 Comment change 2008-05-05 09:41:33 +00:00
M R Swami Reddy bff92e6613 Updated the sim engine's ecode logic and commit the code changes 2008-05-05 09:35:16 +00:00
M R Swami Reddy 948b4edeea Update for code standards 2008-05-05 09:33:37 +00:00
M R Swami Reddy 537e4bb9d6 Cleaned up unwanted code and fixed BIT operations simulation. 2008-05-05 09:29:10 +00:00
M R Swami Reddy 8e26b0f4b5 Update simops struct members and PSR bits. 2008-05-05 09:24:26 +00:00
M R Swami Reddy 5da6971689 Fix typo. 2008-05-05 09:21:46 +00:00
M R Swami Reddy 052d9a542f Update the machine code decode algorithm using hash table. 2008-05-05 09:19:42 +00:00
Daniel Jacobowitz a4e64307fa 2008-04-14 Hans Kester <kester.hans@gmail.com>
* sim-signal.c: Define missing signals for _WIN32.
2008-04-14 15:15:18 +00:00
M R Swami Reddy 47fbb84b2e allinsn.exp: Removed target_alias and global_ld_options. 2008-04-08 12:45:37 +00:00
M R Swami Reddy 7c6071482e Modified Files:
ChangeLog:
      Add simulator for National cr16 processor.
        * cr16: New directory with cr16 simulator files.
        * configure.ac: Add an entry for National cr16 target.
        * configure: Regenerate.
2008-04-08 09:26:38 +00:00
M R Swami Reddy fee8ec0052 Added Files:
ChangeLog config.in configure configure.ac cr16_sim.h endian.c
  gencode.c interp.c Makefile.in simops.c: Add these file for CR16 target simulator.
2008-04-08 09:20:06 +00:00
M R Swami Reddy 86b90b55f4 * configure.ac: Add an entry for National CR16 target.
* configure: Regenerate.
2008-04-08 09:15:56 +00:00
M R Swami Reddy 2878ece136 ChangeLog: sim/cr16/: New directory. Added tests for CR16 simulator. 2008-04-08 09:12:27 +00:00
M R Swami Reddy 4ca0c2f6ff ChangeLog: New file 2008-04-08 09:08:29 +00:00
M R Swami Reddy 49b964e718 New files: Testcases for cr16 instruction set. 2008-04-08 09:07:02 +00:00
M R Swami Reddy 51405f8781 testutils.inc: New file: Test macros for cr16 target. 2008-04-08 09:05:01 +00:00
M R Swami Reddy ad6037c642 allinsn.exp misc.exp: New files: Test run scripts 2008-04-08 09:03:17 +00:00
M R Swami Reddy 2a3591b0e0 gennltvals.sh: Add cr16 target sys macros.
nltvals.def: Rebuild.
2008-04-08 08:44:51 +00:00
M R Swami Reddy 84234f6dc5 Updated the MAINTAINERS file: Add myself as maintainer of cr16 port. 2008-04-08 07:20:21 +00:00
M R Swami Reddy efc111662f Add myself as maintainer of cr16 port. 2008-04-08 07:15:39 +00:00
Nick Hudson 29035cbe96 * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
* configure: Regenerate.
2008-03-14 20:26:49 +00:00
DJ Delorie 98e460c30d * simops.c (OP_1C007E0): Compensate for 64 bit hosts.
(OP_18007E0): Likewise.
(OP_2C007E0): Likewise.
(OP_28007E0): Likewise.
* v850.igen (divh): Likewise.
2008-02-06 04:41:26 +00:00
DJ Delorie c5fbc25baf Index: ChangeLog
* configure.ac (v850): V850 now has a testsuite.
	* configure (v850): Likewise.

Index: testsuite/ChangeLog

	* sim/v850/: New directory.
	* sim/v850/allinsns.exp: New.
	* sim/v850/bsh.cgs: New.
	* sim/v850/div.cgs: New.
	* sim/v850/divh.cgs: New.
	* sim/v850/divh_3.cgs: New.
	* sim/v850/divhu.cgs: New.
	* sim/v850/divu.cgs: New.
	* sim/v850/sar.cgs: New.
	* sim/v850/satadd.cgs: New.
	* sim/v850/satsub.cgs: New.
	* sim/v850/satsubi.cgs: New.
	* sim/v850/satsubr.cgs: New.
	* sim/v850/shl.cgs: New.
	* sim/v850/shr.cgs: New.
	* sim/v850/testutils.cgs: New.
	* sim/v850/testutils.inc: New.

Index: v850/ChangeLog

	* simops.c (OP_C0): Correct saturation logic.
	(OP_220): Likewise.
	(OP_A0): Likewise.
	(OP_660): Likewise.
	(OP_80): Likewise.

	* simops.c (OP_2A0): If the shift count is zero, clear the
	carry.
	(OP_A007E0): Likewise.
	(OP_2C0): Likewise.
	(OP_C007E0): Likewise.
	(OP_280): Likewise.
	(OP_8007E0): Likewise.

	* simops.c (OP_2C207E0): Correct PSW flags for special divu
	conditions.
	(OP_2C007E0): Likewise, for div.
	(OP_28207E0): Likewise, for divhu.
	(OP_28007E0): Likewise, for divh.  Also, sign-extend the correct
	operand.
	* v850.igen (divh): Likewise, for 2-op divh.

	* v850.igen (bsh): Fix carry logic.
2008-02-06 00:40:05 +00:00
Andrew Stubbs f3876f6909 2008-02-04 Antony King <antony.king@st.com>
* interp.c (macl): Fix non-portable implementation.
2008-02-04 17:26:07 +00:00
Daniel Jacobowitz 9b254dd1ce Updated copyright notices for most files. 2008-01-01 22:53:26 +00:00
DJ Delorie beb7a8835e * frv/frv.c (frvbf_cut): Only look at the six LSBs of
cut_point.
2007-12-19 20:55:03 +00:00
Hans-Peter Nilsson bf31154ff3 * sim/cris/asm/x0-v10.ms, sim/cris/asm/x0-v32.ms: Tweak
stack-pointer match pattern for 4K host environment.
2007-11-08 22:12:27 +00:00
Richard Sandiford 60dc88db8b sim/mips/
* mips.igen (check_fmt_p): Provide a separate mips32r2 definition
	that unconditionally allows fmt_ps.
	(ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL, CVT.S.PU)
	(FLOOR.L.fmt, LWXC1, MADD.fmt, MSUB.fmt, NMADD.fmt, NMSUB.fmt)
	(PLL.PS, PLU.PS, PUL.PS, PUU.PS, ROUND.L.fmt, TRUNC.L.fmt): Change
	filter from 64,f to 32,f.
	(PREFX): Change filter from 64 to 32.
	(LDXC1, LUXC1): Provide separate mips32r2 implementations
	that use do_load_double instead of do_load.  Make both LUXC1
	versions unpredictable if SizeFGR () != 64.
	(SDXC1, SUXC1): Extend to mips32r2, using do_store_double
	instead of do_store.  Remove unused variable.  Make both SUXC1
	versions unpredictable if SizeFGR () != 64.
2007-10-22 20:02:25 +00:00
Hans-Peter Nilsson 9538c15c36 * sim/cris/asm/testutils.inc (test_move_cc): Add missing call to
test_cc.
	* sim/cris/asm/asr.ms: Correct expected condition code flags.
	* sim/cris/asm/boundr.ms: Ditto.
	* sim/cris/asm/dstep.ms: Ditto.
	* sim/cris/asm/lsr.ms: Ditto.
	* sim/cris/asm/movecr.ms: Ditto.
	* sim/cris/asm/mover.ms: Ditto.
	* sim/cris/asm/neg.ms: Ditto.  Use test_cc, not test_move_cc.
	* sim/cris/asm/op3.ms: Check the condition code flags after the insn
	under test.
	* sim/cris/asm/movecrt10.ms: Update expected number of simulated
	cycles.
	* sim/cris/asm/movecrt32.ms: Ditto.
	* sim/cris/asm/jsr.ms: Don't use local label 8.
	* sim/cris/asm/nonvcv32.ms: New test.
2007-10-22 16:49:25 +00:00
Hans-Peter Nilsson c9b3544ace * cris/arch.c, cris/arch.h, cris/cpuall.h, cris/cpuv10.c,
cris/cpuv10.h, cris/cpuv32.c, cris/cpuv32.h, cris/cris-desc.c,
	cris/cris-desc.h, cris/cris-opc.h, cris/decodev10.c,
	cris/decodev10.h, cris/decodev32.c, cris/decodev32.h,
	cris/modelv10.c, cris/modelv32.c, cris/semcrisv10f-switch.c,
	cris/semcrisv32f-switch.c: Regenerate.
2007-10-22 16:06:38 +00:00
Daniel Jacobowitz 7cc46491b1 * NEWS: Document target described register support for PowerPC.
* ppc-tdep.h: Remove ppc_spr constants.
	(struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
	ppc_builtin_type_vec128 members.
	(PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
	(PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
	(PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
	(PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
	(PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
	* rs6000-tdep.c: Include preparsed descriptions.
	(init_sim_regno_table): Do not iterate over pseudo registers.
	Look up segment registers by name.  Use sim_spr_register_name
	for SPRs.
	(rs6000_register_sim_regno): Call init_sim_regno_table here.
	(rs6000_builtin_type_vec128): Delete.
	(rs6000_register_name): Only handle SPE pseudo registers and upper
	halves.  Call tdesc_register_name for everything else.
	(rs6000_register_type): Delete.  Replace with...
	(rs6000_pseudo_register_type): ...this new function.  Only handle
	SPE pseudo registers.
	(rs6000_register_reggroup_p): Delete.  Replace with...
	(rs6000_pseudo_register_reggroup_p): ...this new function.  Only
	handle SPE pseudo registers.
	(rs6000_convert_register_p): Use ppc_fp0_regnum instead of
	"struct reg".
	(rs6000_register_to_value, rs6000_value_to_register): Remove check
	of reg->fpr.
	(e500_register_reggroup_p): Delete.
	(STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
	(COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
	(PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
	(PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
	(registers_powerpc, registers_403, registers_403GC, registers_505)
	(registers_860, registers_601, registers_602, registers_603)
	(registers_604, registers_750, registers_7400, registers_e500): Delete
	variables.
	(struct variant): Delete nregs, npregs, num_tot_regs, and regs.  Add
	tdesc.
	(tot_num_registers, num_registers, num_pseudo_registers): Delete.
	(variants): Delete outdated comment.  Use standard target descriptions
	instead of "struct reg" arrays.
	(init_variants): Delete.
	(rs6000_gdbarch_init): Do not guess word size from the BFD
	architecture if we have a target description.  Select a variant
	before creating a new architecture.  Use the variant's target
	description if the target did not define a register layout.
	Validate target-supplied registers.  Reject mismatches.  Use
	fixed register numbers and new constants instead of magic
	numbers.  Call set_gdbarch_ps_regnum.  Call tdesc_use_registers.
	(_initialize_rs6000_tdep): Initialize the preparsed target
	descriptions.
	* target-descriptions.c (tdesc_predefined_types): Add int128 and
	uint128.
	(tdesc_find_register_early): New function.
	(tdesc_numbered_register): Use it.
	(tdesc_register_size): New function.
	(tdesc_use_registers): Take a target_desc argument.  Do not use
	gdbarch_target_desc.
	* target-descriptions.h (tdesc_use_registers): Update prototype
	and comment.
	(tdesc_register_size): New prototype.
	* Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
	(powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
	(powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
	(powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
	(rs6000-tdep.o): Update.
	* arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
	* m68k-tdep.c (m68k_gdbarch_init): Likewise.
	* mips-tdep.c (mips_gdbarch_init): Likewise.

	* gdb.texinfo (Predefined Target Types): Add int128
	and uint128.
	(Standard Target Features): Add PowerPC features.

	* gdb.xml/tdesc-regs.exp: Add PowerPC support.

	* sim-ppc.h (sim_spr_register_name): New prototype.

	* gdb-sim.c (regnum2spr): Rename to...
	(sim_spr_register_name): ... this.  Make global.
2007-10-15 19:45:31 +00:00
Daniel Jacobowitz eb639c5004 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
	* syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.

2007-10-11  Jesper Nilsson  <jesper.nilsson@axis.com>

	* callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes.

2007-10-11  Jesper Nilsson  <jesper.nilsson@axis.com>

	* sim/cris/c/freopen2.c: Added testcase.
2007-10-11 18:44:07 +00:00
Daniel Jacobowitz b981d70963 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* callback.c (cb_is_stdin): Add.
	* syscall.c (cb_syscall): Test for stdin, not just fd 0.

2007-10-11  Jesper Nilsson  <jesper.nilsson@axis.com>

	* callback.h (cb_is_stdin): Add prototype.
2007-10-11 18:40:29 +00:00
Denis Pilat 4d43927194 2007-09-24 Andrew Stubbs <andrew.stubbs@st.com>
* gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the
	definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
2007-10-08 11:51:31 +00:00
Richard Sandiford 599ca73e2c sim/mips/
* mips.igen (ll): Fix mask for WITH_TARGET_WORD_BITSIZE == 32.
	(sc, swxc1): Likewise.  Also fix big-endian and reverse-endian
	shifts for that case.
2007-10-07 09:04:43 +00:00
Nick Clifton 2525df0347 * interp.c (options enum): Add OPTION_INFO_MEMORY.
(display_mem_info): New static variable.
  (mips_option_handler): Handle OPTION_INFO_MEMORY.
  (mips_options): Add info-memory and memory-info.
  (sim_open): After processing the command line and board specification, check display_mem_info.
  If it is set then call the real handler for the --memory-info command line switch.
2007-09-04 14:33:18 +00:00
Jerome Guitton 0ad36c846a * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
name property before parsing it.
2007-09-04 09:45:06 +00:00
Joel Brobecker d5ce5596bf * compare_igen_models: Change license to GPL version 3. 2007-08-28 16:08:00 +00:00
Joel Brobecker 35ee6e1e05 * configure.ac: Change license of multi-run.c to GPL version 3.
* configure: Regenerate.
2007-08-28 00:10:54 +00:00
Joel Brobecker dfee3164ef * lf.c (lf_print__gnu_copyleft): Change license to GPL version 3. 2007-08-28 00:09:36 +00:00
Joel Brobecker db95e31282 * testutils.inc: Change license to GPL version 3.
* utils-dsp.inc: Change license to GPL version 3.
        * utils-fpu.inc: Change license to GPL version 3.
        * utils-mdmx.inc: Change license to GPL version 3.
2007-08-28 00:01:52 +00:00
Joel Brobecker 4744ac1bb0 Switch the license of all files explicitly copyright the FSF
to GPLv3.
2007-08-24 14:30:15 +00:00
Nick Clifton f40f1a01c5 * sim-memopt.c (memory_options): Mention that the memory-size switch accepts suffixes.
(parse_size): Handle a suffix on the size value.
* sim-options.c (standard_options): Mention that the mem-size switch accepts suffixes.
  (standard_option_handler): Handle a suffix on the size value.
2007-08-10 14:26:33 +00:00
Daniel Jacobowitz 917c78f962 2007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp>
* compile.c (sim_resume): Fix the last byte of ARGV for
	SYS_CMDLINE.
2007-07-03 17:19:38 +00:00
Richard Sandiford d5fb0879a5 sim/mips/
* configure.ac, configure: Revert last patch.
2007-06-28 06:00:52 +00:00
Richard Sandiford 2a2ce21ba2 sim/mips/
* configure.ac (sim_mipsisa3264_configs): New variable.
	(mipsis32*-*-, mipsisa32r2*-*-*, mips64*-*-*, mips64r2*-*-*): Make
	every configuration support all four targets, using the triplet to
	determine the default.
	* configure: Regenerate.
2007-06-26 12:16:53 +00:00
Daniel Jacobowitz 0a7692b27d Changelog typo fix. 2007-06-25 12:24:52 +00:00
Richard Sandiford efdcccc981 sim/mips/
* Makefile.in (m16_run.o): New rule.
2007-06-25 11:21:53 +00:00
Thiemo Seufer f532a3561c * mips3264r2.igen (DSHD): Fix compile warning. 2007-05-15 12:20:32 +00:00
Thiemo Seufer bfe9c90b9a * mips.igen (ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL,
CVT.S.PU, FLOOR.L.fmt, LDXC1, LUXC1, LWXC1, MADD.fmt, MSUB.fmt,
	NMADD.fmt, NMSUB.fmt, PLL.PS, PLU.PS, PREFX, PUL.PS, PUU.PS,
	RECIP.fmt, ROUND.L.fmt, RSQRT.fmt, SWXC1, TRUNC.L.fmt): Add support
	for mips32r2.
2007-05-14 16:24:25 +00:00
Daniel Jacobowitz 9453113a8d Add "make pdf" and "make install-pdf", from Brooks Moses
<brooks.moses@codesourcery.com>.
2007-03-27 18:09:36 +00:00
Daniel Jacobowitz 6a1754a359 2007-03-02 Andrew Stubbs <andrew.stubbs@st.com>
* gencode.c (tab): Correct pre-decrement instructions when m == n.
2007-03-02 12:15:01 +00:00
Thiemo Seufer 53f4826b00 * mips.igen (MFHI, MFLO, MTHI, MTLO): Restore support for mips32
and mips64.
2007-03-01 14:29:26 +00:00
Mark Mitchell e1c9b6f16a * armos.c (SWIflen): Do not treate file descriptor zero as
special.
2007-02-27 18:51:57 +00:00
Thiemo Seufer 8bf3ddc83e * dsp.igen: Update copyright notice.
* dsp2.igen: Fix copyright notice.
2007-02-20 13:53:48 +00:00
Thiemo Seufer 8b082fb134 [ gas/ChangeLog ]
* config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
	ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
	(macro_build): Add case '2'.
	(macro): Expand M_BALIGN to nop, packrl.ph or balign.
	(validate_mips_insn): Add support for balign instruction.
	(mips_ip): Handle DSP R2 instructions. Support balign instruction.
	(OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
	md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
	command line options.
	(s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
	(md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
	* doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
	.set dspr2, .set nodspr2.

	[ gas/testsuite/ChangeLog ]
	* gas/mips/mips32-dspr2.s, gas/mips/mips32-dspr2.d: New test for
	DSP R2.
	* gas/mips/mips.exp: Run new test.

	[ include/opcode/Changelog ]
	* mips.h (OP_SH_BP, OP_MASK_BP): Add support for balign instruction.
	(INSN_DSPR2): Add flag for DSP R2 instructions.
	(M_BALIGN): New macro.

	[ opcodes/ChangeLog ]
	* mips-dis.c (mips_arch_choices): Add DSP R2 support.
	(print_insn_args): Add support for balign instruction.
	* mips-opc.c (D33): New shortcut for DSP R2 instructions.
	(mips_builtin_opcodes): Add DSP R2 instructions.

	[ sim/mips/ChangeLog ]
	* Makefile.in (IGEN_INCLUDE): Add dsp2.igen.
	* configure.ac (mips*-sde-elf*, mipsisa32r2*-*-*, mipsisa64r2*-*-*):
	Add dsp2 to sim_igen_machine.
	* configure: Regenerate.
	* dsp.igen (do_ph_op): Add MUL support when op = 2.
	(do_ph_mulq): New function to support mulq_rs.ph and mulq_s.ph.
	(mulq_rs.ph): Use do_ph_mulq.
	(MFHI, MFLO, MTHI, MTLO): Move these instructions to mips.igen.
	* mips.igen: Add dsp2 model and include dsp2.igen.
	(MFHI, MFLO, MTHI, MTLO): Extend these instructions for
	for *mips32r2, *mips64r2, *dsp.
	(MADD, MADDU, MSUB, MSUBU, MULT, MULTU): Extend these instructions
	for *mips32r2, *mips64r2, *dsp2.
	* dsp2.igen: New file for MIPS DSP REV 2 ASE.

	[ sim/testsuite/sim/mips/ChangeLog ]
	* basic.exp: Run the dsp2 test.
	* utils-dsp.inc (dspckacc_astio, dspck_tsimm): New macro.
	* mips32-dsp2.s: New test.
2007-02-20 13:28:56 +00:00
Daniel Jacobowitz cb5c8c3989 gdb/
* MAINTAINERS: Disable -Werror for cris simulator.  Build
	sparc64-solaris2.10 instead of the broken sparc-elf.
	* solib-frv.c: Include "solib.h".
	* Makefile.in (solib-frv.o): Update.
	* mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
	* xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
	(xtensa_frame_this_id, xtensa_frame_prev_register)
	(xtensa_push_dummy_call): Use %p.
sim/v850/
	* Makefile.in (interp.o): Uncomment and update.
2007-02-20 12:45:06 +00:00
Hans-Peter Nilsson 6a4669ea53 * cris/traps.c (dump_statistics): Change format for cycle numbers
to %llu and cast parameters to unsigned long long.
2007-02-20 00:14:11 +00:00
Thiemo Seufer b100487538 * mips.igen (jalr.hb, jr.hb): Add decoder for mip32r2/mips64r2
jumps with hazard barrier.
2007-02-19 17:53:29 +00:00
Thiemo Seufer f8df4c7704 * interp.c (sim_monitor): Flush stdout and stderr file descriptors
after each call to sim_io_write.
2007-02-19 17:46:53 +00:00
Thiemo Seufer 07802d9880 (ColdReset): Set CP0 Config0 to reflect the address size supported
by this simulator.
	(decode_coproc): Recognise additional CP0 Config registers
	correctly.
2007-02-19 17:34:18 +00:00
Thiemo Seufer 14fb6c5a50 * cp1.c (value_fpr): Don't inherit existing FPR_STATE for
uninterpreted formats. If fmt is one of the uninterpreted types
	don't update the FPR_STATE. Handle fmt_uninterpreted_32 like
	fmt_word, and fmt_uninterpreted_64 like fmt_long.
	(store_fpr): When writing an invalid odd register, set the
	matching even register to fmt_unknown, not the following register.
	* interp.c (sim_open): If STATE_MEM_SIZE isn't set then set it to
	the the memory window at offset 0 set by --memory-size command
	line option.
	(sim_store_register): Handle storing 4 bytes to an 8 byte floating
	point register.
	(sim_fetch_register): Likewise for reading 4 bytes from an 8 byte
	register.
	(sim_monitor): When returning the memory size to the MIPS
	application, use the value in STATE_MEM_SIZE, not an arbitrary
	hardcoded value.
	(cop_lw): Don' mess around with FPR_STATE, just pass
	fmt_uninterpreted_32 to StoreFPR.
	(cop_sw): Similarly.
	(cop_ld): Pass fmt_uninterpreted_64 not fmt_uninterpreted.
	(cop_sd): Similarly.
	* mips.igen (not_word_value): Single version for mips32, mips64
	and mips16.
2007-02-19 17:31:08 +00:00
Thiemo Seufer c88471452a * interp.c (MEM_SIZE): Increase default memory size from 2 to 8
MBytes.
2007-02-19 12:27:02 +00:00
Thiemo Seufer 4b5d35eef6 * configure.ac (mips*-sde-elf*): Move in front of generic machine
configuration.
	* configure: Regenerate.
2007-02-17 16:36:32 +00:00
Thiemo Seufer 3669427c8e 2007-02-17 Thiemo Seufer <ths@mips.com>
[ sim/mips/ChangeLog ]
	* configure.ac (mips*-sde-elf*, mipsisa32r2*-*-*, mipsisa64r2*-*-*):
	Add mdmx to sim_igen_machine.
	(mipsisa64*-*-*): Likewise. Remove dsp.
	(mipsisa32*-*-*): Remove dsp.
	* configure: Regenerate.

	[ sim/testsuite/sim/mips/ChangeLog ]
	* basic.exp: Add case for mips*-sde-elf*.
	(mdmxmodels): Run mdmx tests only on mdmx capable configurations.
2007-02-17 01:26:48 +00:00
Thiemo Seufer 792fe9c928 * Makefile.in (FLAGS_TO_PASS, TARGET_FLAGS_TO_PASS): Add RUNTEST. 2007-02-16 18:13:53 +00:00
Nick Clifton 1306df90a9 * armemu.c (handle_v6_insn): Fix typo in sign extension test of the sext and sxtah instructions. 2007-02-15 10:32:06 +00:00
Thiemo Seufer 109ad08573 * configure.ac: Add mips*-sde-elf* target.
* configure: Regenerate.
2007-02-13 20:20:54 +00:00
Thiemo Seufer 495f536a34 * mips32-dsp.s: Run DSP testcase only for release 2 architecture. 2007-02-13 19:12:28 +00:00
Thiemo Seufer f0a0d3b5e7 * mdmx-ob.s: Delete extraneous include. 2007-02-13 19:07:36 +00:00
Daniel Jacobowitz 8944021f76 Reported by timeless@gmail.com:
* gdb/target.c (target_flash_erase): Do not return void value.
	(target_flash_done): Likewise.
	* gdb/cli/cli-cmds.c (source_command): Likewise.

	Reported by timeless@gmail.com:
	* wrapper.c (sim_target_parse_arg_array): Do not return void value.
2007-02-08 16:31:57 +00:00
Mike Frysinger cecb04b70c 2007-01-28 Manuel Lauss <slauss@resi.at>
* configure.ac (sh64-*-*): Change to sh64*-*-*.
	(sh-*-*): Change to sh*-*-*.
	* configure: Regenerated.
2007-01-29 16:41:14 +00:00
Daniel Jacobowitz 20ac050494 Add changelog entries for copyright updates. 2007-01-10 04:33:06 +00:00
Daniel Jacobowitz 6aba47ca06 Copyright updates for 2007. 2007-01-09 17:59:20 +00:00
Hans-Peter Nilsson 570ee7f0b6 * Makefile.in (autoconf-common autoheader-common): Only run
autoheader on subdirs with a file config.in.
2006-12-21 04:46:52 +00:00
Hans-Peter Nilsson edc5d9ec58 * acconfig.h: Remove.
* config.in: Regenerate.
2006-12-21 04:43:53 +00:00
Hans-Peter Nilsson 81963b26f2 * config.in, configure: Regenerate. 2006-12-21 04:43:16 +00:00
Hans-Peter Nilsson 921d7ad333 * acconfig.h: Remove.
* config.in, configure: Regenerate.
2006-12-21 04:41:09 +00:00
Hans-Peter Nilsson b1bfc0531c * config.in: Regenerate. 2006-12-21 04:40:12 +00:00
Hans-Peter Nilsson c4d800aeba * configure.ac (common): Make the default "yes" for all targets
with sim subdirs.
	* configure: Regenerate.
2006-12-21 02:37:17 +00:00
Hans-Peter Nilsson 70a9be6357 * configure.ac: Add test for readline, substitute READLINE.
* Makefile.in (READLINE_LIB): New substituted-contents variable.
	(SIM_EXTRA_LIBDEPS): Don't set.
	(SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
	../../readline/libreadline.a.
	* configure: Regenerate.
2006-12-20 22:35:51 +00:00
Hans-Peter Nilsson e80204fc86 * Makefile.in (autoconf-common autoheader-common): In documented
usage, say SHELL=/bin/sh.
	(.PHONY): Add autoheader-common.
2006-12-20 12:35:07 +00:00
Hans-Peter Nilsson 49cbcfe9c9 * MAINTAINERS: Add self as authorized committer for *. 2006-12-20 12:34:46 +00:00
Andrew Cagney 6a58c676a9 2006-11-22 Tom Marn <tom.marn@telargo.com>
Committed by Andrew Cagney.
	* ppc-instructions: Implement optional PowerPC stfiwx instruction.
2006-11-29 15:20:55 +00:00
Thiemo Seufer a5e3001a40 * basic.exp: Fix spelling in comment. Use canonical form of target
patterns. Run DSP test only for DSP-capable ISAs. Check also mips32r2
	and mips64r2 if supported by the target.
2006-11-08 12:00:11 +00:00
Thiemo Seufer 09d969392e * gentmap.c: Fix compile time warning. 2006-11-07 19:29:59 +00:00
Thiemo Seufer 7e12978101 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
for bfd text addresses.
2006-11-07 19:07:41 +00:00
Thiemo Seufer 02f97da761 * dsp.igen (do_w_op): Fix compiler warning. 2006-11-07 14:59:49 +00:00
Dave Brolley c7e628df2e 2006-10-18 Dave Brolley <brolley@redhat.com>
* Contribute the following changes:

        2006-06-14  Dave Brolley  <brolley@redhat.com>

        * sh64-sim.h (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
        (sh64_fpref): New functions.
        * sh64.c (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
        (sh64_fpref): New functions.
        (sh_models): Add sh2e, sh2a, sh2a_nofpu, sh4_nofpu, sh4a,
        sh4a_nofpu and sh4al.
        (sh2e_mach): New MACH.
        (sh2a_fpu_mach): New MACH.
        (sh2a_nofpu_mach): New MACH.
        (sh4_nofpu): New MACH.
        (sh4a_mach): New MACH.
        (sh4a_nofpu_mach): New MACH.
        (sh4al_mach): New MACH.
        * Makefile.in (stamp-*): Depend on $(CGEN_CPU_DIR)/sh-sim.cpu. Pass
        archfile to CGEN script.
        * arch.c: Regenerated.
        * arch.h: Regenerated.
        * cpu.c: Regenerated.
        * cpu.h: Regenerated.
        * cpuall.h: Regenerated.
        * decode-compact.c: Regenerated.
        * decode-compact.h: Regenerated.
        * decode-media.c: Regenerated.
        * decode-media.h: Regenerated.
        * defs-compact.h: Regenerated.
        * defs-media.h: Regenerated.
        * sem-compact-switch.c: Regenerated.
        * sem-compact.c: Regenerated.
        * sem-media-switch.c: Regenerated.
        * sem-media.c: Regenerated.
        * sh-desc.c: Regenerated.
        * sh-desc.h: Regenerated.
        * sh-opc.h: Regenerated.
2006-10-18 18:13:22 +00:00
Hans-Peter Nilsson 466b1d3308 * cris/cris-sim.h (enum cris_unknown_syscall_action_type)
(cris_unknown_syscall_action): Declare.
	* cris/sim-if.c (cris_unknown_syscall_action): Define.
	(cris_options): Add cris-unknown-syscall option.
	(cris_option_handler): Correct comment about and error message for
	invalid --cris-cycles argument.  Handle --cris-unknown-syscall.
	* cris/traps.c: Include stdarg.h
	(cris_unknown_syscall): New function.
	(cris_break_13_handler): Instead of sim_io_eprintf and
	sim_engine_halt, call cris_unknown_syscall to handle more or less
	unknown syscalls.  Adjust code as necessary to handle return
	value.
2006-10-02 03:21:28 +00:00
Hans-Peter Nilsson 1654a6f728 * sim/cris/c/clone5.c, sim/cris/c/mprotect1.c,
sim/cris/c/rtsigprocmask1.c, sim/cris/c/rtsigsuspend1.c,
	sim/cris/c/sig7.c, sim/cris/c/sigreturn1.c,
	sim/cris/c/sigreturn2.c, sim/cris/c/syscall1.c,
	sim/cris/c/syscall2.c, sim/cris/c/sysctl2.c, sim/cris/c/fcntl1.c,
	sim/cris/c/readlink2.c: Add code to print ENOSYS if syscall being
	tested returns ENOSYS.  Add early exit where needed.  Change any
	existing code to print "xyzzy", not "pass".
	* sim/cris/asm/option3.ms, sim/cris/asm/option4.ms,
	sim/cris/c/clone6.c, sim/cris/c/fcntl2.c,
	sim/cris/c/mprotect2.c, sim/cris/c/readlink11.c,
	sim/cris/c/rtsigprocmask2.c, sim/cris/c/rtsigsuspend2.c,
	sim/cris/c/sig13.c, sim/cris/c/sigreturn3.c,
	sim/cris/c/sigreturn4.c, sim/cris/c/syscall3.c,
	sim/cris/c/syscall4.c, sim/cris/c/syscall5.c,
	sim/cris/c/syscall6.c, sim/cris/c/syscall7.c,
	sim/cris/c/syscall8.c, sim/cris/c/sysctl3.c: New tests.
2006-10-02 03:18:51 +00:00
Daniel Jacobowitz bac25e5b7a * MAINTAINERS: Add Dave Brolley for sh64. 2006-10-01 04:00:30 +00:00
Hans-Peter Nilsson eccd787e25 * cris/traps.c (TARGET_PIPE_BUF): New macro.
(cris_pipe_empty): Correct initialization of "remaining".  Only
	adjust the "write" return value if more than TARGET_PIPE_BUF bytes
	are written.
2006-09-30 02:38:06 +00:00
Hans-Peter Nilsson 539a52558f * sim/cris/c/pipe2.c: Adjust expected output.
(process): Don't write as much to the pipe as to trig the
	inordinate-amount test in the sim pipe machinery.  Correct test of
	write return-value; check only that pipemax bytes were
	successfully written.  For error-case, emit strerror as well.
	(main): Add a second read.
2006-09-30 02:34:43 +00:00
Hans-Peter Nilsson 3ca4d560ef * cris/configure.ac: Check for limits.h and sys/param.h.
* cris/configure, cris/config.in: Rebuild.
	* cris/traps.c (SIM_PATHMAX): New macro.
	(cris_break_13_handler): Use SIM_PATHMAX, not MAXPATHLEN.
2006-09-29 02:45:48 +00:00
Thiemo Seufer 3ae2e9a36f * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
SIM_QUIET_NAN_NEGATED.
2006-08-29 13:18:27 +00:00
Thiemo Seufer 41ec9f205e * sim-profile.c (profile_pc_init): Initialise default profiling
frequency to a prime number.
	(profile_print_pc): Convert gmon.out sample data into target
	byte order.
2006-08-29 13:16:19 +00:00
Thiemo Seufer 2d2733fc96 * configure.ac (mipsisa32r2*-*-*, mipsisa32*-*-*): Add smartmips to
sim_igen_machine.
	* configure: Regenerate.
	* mips.igen (model): Add smartmips.
	(MADDU): Increment ACX if carry.
	(do_mult): Clear ACX.
	(ROR,RORV): Add smartmips.
	(include): Include smartmips.igen.
	* sim-main.h (ACX): Set to REGISTERS[89].
	* smartmips.igen: New file.
2006-08-29 12:45:26 +00:00
Thiemo Seufer d85c3a10ae * Makefile.in (IGEN_INCLUDE): Add missing includes for m16e.igen and
mips3264r2.igen. Add missing dependency rules.
	* m16e.igen: Support for mips16e save/restore instructions.
2006-08-29 12:38:45 +00:00
Thiemo Seufer 6b637da758 * testutils.inc (setup): __start is also a valid start symbol. 2006-08-29 12:18:43 +00:00
Thiemo Seufer afddf9e98c Add myself as mips maintainer. 2006-08-25 18:06:21 +00:00
Daniel Jacobowitz ce928021ab gdb/
* config/sparc/embed.mt: New file.
	* configure.tgt (sparc-*-rtems*): Use embed.mt.
sim/
	* configure.ac (sparc-*-rtems*|sparc-*-elf*): Enable erc32 simulator.
	* Makefile.in (FLAGS_TO_PASS): Include libdir.
	* configure: Regenerated.
sim/erc32/
	* Makefile.in (func.o, help.o): Correct dependencies.
	* Makefile.in (install-sis): Honor DESTDIR.
2006-08-08 18:57:25 +00:00
Yoshinori Sato b86015eaa5 compile.c (OBITOP): Bit address mask low three bit.
compile.c (decode): Fix warning.
2006-07-19 06:27:04 +00:00
Fred Fish 08f7d065a6 Patch reviewed and approved by Daniel Jacobowitz <drow@false.org>.
2006-07-12  Fred Fish  <fnf@specifix.com>
	* sim-endian.h (asm/byteorder.h): Don't include private kernel
	header.
2006-07-12 21:37:21 +00:00
DJ Delorie f4f21c206a * r8c.opc (decode_r8c): Don't bother reading the destination
before moving a constant into it.  Fix borrow comparison for SUB.
2006-06-26 20:31:43 +00:00
Richard Earnshaw e85e320515 * common/aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
* common/common.m4: Likewise.
	* */configure: Regenerate.
2006-06-13 08:06:50 +00:00
Daniel Jacobowitz 2f0122dcdf common/
* aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
most subdirs/
	* configure: Regenerated.
2006-06-05 14:21:13 +00:00
Daniel Jacobowitz 20e95c23ab Configury changes: update src repository (binutils, gdb, and rda) to use
config/gettext-sister.m4 instead of the old gettext.m4.  Regenerate all
affected autotools files.  Include intl in gdb releases again.
2006-05-31 15:14:46 +00:00
Chao-ying Fu dc6641a558 * mips32-dsp.s: Add some tests for shra_r.ph, shrav_r.ph, shra_r.w,
shrav_r.w.
2006-05-15 20:34:56 +00:00
Chao-ying Fu 69088b1706 * dsp.igen (do_ph_shift, do_w_shra): Fix bugs for rounding instructions. 2006-05-15 20:34:18 +00:00
Andreas Schwab 4b164edfca sim/:
* configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
	* configure: Regenerate.

	* Makefile.in (CFLAGS_FOR_BUILD): Define.
	(CC_FOR_BUILD): Don't override.
	(FLAGS_TO_PASS): Pass CFLAGS_FOR_BUILD.

sim/ppc/:
	* configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
	* configure: Regenerate.

	* Makefile.in (CFLAGS_FOR_BUILD): Define.
	(BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
	(gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
2006-05-05 17:11:19 +00:00
Daniel Jacobowitz 8b2f7496cc * MAINTAINERS: Add an "Authorized committers" section, and list
DJ Delorie for v850.
2006-05-04 15:39:19 +00:00
Andreas Schwab d8006e0592 * Makefile.in (tmp-ld-decode): Fix dependencies.
(tmp-ld-cache): Likewise.
	(tmp-ld-insn): Likewise.
2006-04-23 14:54:42 +00:00
Nick Clifton 0275de4ee1 * dv-tx3904tmr.c (deliver_tx3904tmr_tick): Add missing break statement. 2006-04-18 09:19:28 +00:00
Nick Clifton 9517c9780f ooops - omitted from previous delta 2006-04-18 09:16:01 +00:00
Nick Clifton 95bd752a6c * interp.c (sim_stop_reason): Fix typo. 2006-04-18 09:15:29 +00:00
Hans-Peter Nilsson 5cf3f6e292 * cris/crisv32f.c (MY (deliver_interrupt)): Set CCS to new_ccs. 2006-04-08 17:37:56 +00:00
Hans-Peter Nilsson c466736ab1 * sim/cris/hw/rv-n-cris/irq6.ms: New test. 2006-04-08 17:37:23 +00:00
Hans-Peter Nilsson 26d01138dd * sim/cris/hw: New directory for subdirectories with tests.
* sim/cris/hw/rv-n-cris: New directory with tests.
2006-04-03 03:05:00 +00:00
Hans-Peter Nilsson aad3b3cbc1 * cris/dv-cris.c, cris/dv-rv.c, cris/rvdummy.c: New files.
* cris/Makefile.in (CONFIG_DEVICES): Remove redundant setting.
	(dv-cris.o, dv-rv.o rvdummy$(EXEEXT), rvdummy.o): New rules.
	(all): Depend on rvdummy$(EXEEXT).
	* cris/configure.ac: Call SIM_AC_OPTION_WARNINGS.  Check for
	sys/socket.h and sys/select.h.  Call SIM_AC_OPTION_HARDWARE,
	default off.
	* cris/configure: Regenerate.
	* cris/cris-sim.h (cris_have_900000xxif): Declare here.
	(enum cris_interrupt_type, crisv10deliver_interrupt)
	(crisv32deliver_interrupt: New declarations.
	* cris/cris-tmpl.c [WITH_HW] (MY (f_model_insn_after)): Call
	sim_events_tickn and set state-events member work_pending when it's
	time for the next event.
	[WITH_HW] (MY (f_specific_init)): Set CPU-model-specific
	interrupt-delivery function.
	* cris/crisv10f.c (MY (deliver_interrupt)): New function.
	* cris/crisv32f.c (MY (deliver_interrupt)): New function.
	* cris/devices.c: Include hw-device.h.
	(device_io_read_buffer) [WITH_HW]: Call hw_io_read_buffer.
	(device_io_write_buffer): Only perform 0x900000xx-functions if
	cris_have_900000xxif is nonzero.  Else if WITH_HW defined,
	call hw_io_write_buffer.  Add return 0 last in function.
	* cris/sim-if.c (cris_have_900000xxif): Now global.
	(sim_open) [WITH_HW]: Clear deliver_interrupt cpu member.
	Force "-model" option, effectively.
	* cris/sim-main.h (cris_interrupt_delivery_fn): New type.
	(struct _sim_cpu) [WITH_HW]: New member deliver_interrupt.
2006-04-03 03:01:45 +00:00
Hans-Peter Nilsson 530d581366 * cris/Makefile.in (CRISV10F_OBJS): Remove semcrisv10f-switch.o.
(CRISV32F_OBJS): Remove semcrisv32f-switch.o.
	(semcrisv10f-switch.o, semcrisv32f-switch.o: Remove dependency rules.
2006-04-02 12:46:42 +00:00
Hans-Peter Nilsson ef6affe12f * sim/cris/asm/testutils.inc (test_h_mem): Use register prefix.
(testr_h_dr, test_h_dr, ldmem_h_gr, mvr_h_mem): Ditto.  Correct
	syntax.
2006-04-02 11:43:44 +00:00
Hans-Peter Nilsson 4369b6eb6e * sim/cris/asm/x0-v10.ms, sim/cris/asm/x0-v32.ms: Widen regexp for
stack pointer values.
2006-04-02 11:31:41 +00:00
Hans-Peter Nilsson b3a3ffefce * configure: Regenerate. 2006-03-29 03:42:03 +00:00
Hans-Peter Nilsson ea696909f3 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
option-contents test.
2006-03-29 03:40:25 +00:00
DJ Delorie 727b6b4b41 * mem.c (mem_put_byte): Hook simulated UART to stdout.
(mem_put_hi): Hook in simulated trace port.
(mem_get_byte): Hook in simulated uart control port.
* opc2c: Be more picky about matching special comments.
* r8c.opc (shift_op): Limit shift counts to -16..16.
(BMcnd): Map conditional codes.
* reg.c (condition_true): Mask condition code to 4 bits.
* syscalls.c: Include local syscall.h.
* syscall.h: New, copied from libgloss.
2006-03-14 03:34:28 +00:00
DJ Delorie 1f810f7808 * MAINTAINERS: Add self as m32c sim maintainer. 2006-03-14 02:37:35 +00:00
Paul Brook 4b1d9c5854 2006-03-07 Paul Brook <paul@codesourcery.com>
* elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
2006-03-07 19:55:55 +00:00
Hans-Peter Nilsson d022998de5 * cris/traps.c (syscall_map): Remove CB_SYS_time / TARGET_SYS_time
mapping.
	(cris_break_13_handler) <case TARGET_SYS_time>: New case.
2006-02-23 02:01:51 +00:00
Hans-Peter Nilsson 77dfaed337 * sim/cris/c/time2.c: New test. 2006-02-23 02:01:09 +00:00
Mark Mitchell 59f6d9d6f8 * emul_netbsd.c (emul_netbsd_create): Quote file-name property.
* emul_unix.c (emul_unix_create): Likewise.
	* tree.c (libiberty.h): Include it.
	(tree_quote_property): New function.
	* tree.h (tree_quote_property): Declare.
2006-02-02 06:45:49 +00:00
Daniel Jacobowitz eeea466063 * armos.c (ARMul_OSHandleSWI): Handle the RedBoot system
call meminfo. Return ENOSYS for unhandled RedBoot syscalls.
2006-02-02 01:48:16 +00:00
Mark Mitchell e8a15d32f6 * words.h (natural32): Define as "int". 2006-01-25 17:29:44 +00:00
Mark Mitchell 0b06d9f4d3 * words.h (signed32): Define as "int".
(unsigned32): Define as "unsigned int".
2006-01-24 23:48:01 +00:00
Jim Blandy d45a4bef83 sim/ChangeLog:
2005-10-06  Jim Blandy  <jimb@redhat.com>

	Add simulator for Renesas M32C and M16C.

	* m32c: New directory.
	* configure.ac: Add entry for Renesas M32C.
	* configure: Regenerate.

sim/m32c/ChangeLog:
2005-10-06  Jim Blandy  <jimb@redhat.com>

	Simulator for Renesas M32C and M16C, by DJ Delorie <dj@redhat.com>,
	with further work from Jim Blandy <jimb@redhat.com> and
	Kevin Buettner <kevinb@redhat.com>.

	* ChangeLog: New.
	* Makefile.in: New.
	* blinky.S: New.
	* config.in: New.
	* configure: New.
	* configure.in: New.
	* cpu.h: New.
	* gdb-if.c: New.
	* gloss.S: New.
	* int.c: New.
	* int.h: New.
	* load.c: New.
	* load.h: New.
	* m32c.opc: New.
	* main.c: New.
	* mem.c: New.
	* mem.h: New.
	* misc.c: New.
	* misc.h: New.
	* opc2c.c: New.
	* r8c.opc: New.
	* reg.c: New.
	* safe-fgets.c: New.
	* safe-fgets.h: New.
	* sample.S: New.
	* sample.ld: New.
	* sample2.c: New.
	* srcdest.c: New.
	* syscalls.c: New.
	* syscalls.h: New.
	* trace.c: New.
	* trace.h: New.
2006-01-23 22:10:41 +00:00
Hans-Peter Nilsson ca47226b72 Now saved ChangeLog for previous entry. 2006-01-10 07:17:17 +00:00
Hans-Peter Nilsson 9e49fc3d98 * sim/cris/asm/x1-v10.ms, sim/cris/asm/x3-v10.ms,
sim/cris/asm/x7-v10.ms: Update expected cycle output.
2006-01-10 07:11:21 +00:00
Hans-Peter Nilsson 8d516ebcaa Update Copyright years 2006-01-10 07:06:25 +00:00
Hans-Peter Nilsson 4fc9958a54 * cris/cris-tmpl.c (MY (f_model_insn_before)): Only display basic
cycle count for the current insn.
2006-01-10 07:05:44 +00:00
Chao-ying Fu fcc392a34e * basic.exp: Run the dsp test.
* utils-dsp.inc: New file.
* mips32-dsp.s: New test.
2005-12-14 23:09:26 +00:00
Chao-ying Fu 40a5538e94 * Makefile.in (SIM_OBJS): Add dsp.o.
(dsp.o): New dependency.
(IGEN_INCLUDE): Add dsp.igen.
* configure.ac (mipsisa32r2*-*-*, mipsisa32*-*-*, mipsisa64r2*-*-*,
mipsisa64*-*-*): Add dsp to sim_igen_machine.
* configure: Regenerate.
* mips.igen: Add dsp model and include dsp.igen.
(MFHI, MFLO, MTHI, MTLO): Remove mips32, mips32r2, mips64, mips64r2,
because these instructions are extended in DSP ASE.
* sim-main.h (LAST_EMBED_REGNUM): Change from 89 to 96 because of
adding 6 DSP accumulator registers and 1 DSP control register.
(AC0LOIDX, AC0HIIDX, AC1LOIDX, AC1HIIDX, AC2LOIDX, AC2HIIDX, AC3LOIDX,
AC3HIIDX, DSPLO, DSPHI, DSPCRIDX, DSPCR, DSPCR_POS_SHIFT,
DSPCR_POS_MASK, DSPCR_POS_SMASK, DSPCR_SCOUNT_SHIFT, DSPCR_SCOUNT_MASK,
DSPCR_SCOUNT_SMASK, DSPCR_CARRY_SHIFT, DSPCR_CARRY_MASK,
DSPCR_CARRY_SMASK, DSPCR_CARRY, DSPCR_EFI_SHIFT, DSPCR_EFI_MASK,
DSPCR_EFI_SMASK, DSPCR_EFI, DSPCR_OUFLAG_SHIFT, DSPCR_OUFLAG_MASK,
DSPCR_OUFLAG_SMASK, DSPCR_OUFLAG4, DSPCR_OUFLAG5, DSPCR_OUFLAG6,
DSPCR_OUFLAG7, DSPCR_CCOND_SHIFT, DSPCR_CCOND_MASK,
DSPCR_CCOND_SMASK): New define.
(DSPLO_REGNUM, DSPHI_REGNUM): New array for DSP accumulators.
* dsp.c, dsp.igen: New files for MIPS DSP ASE.
2005-12-14 23:07:56 +00:00
Hans-Peter Nilsson be37be02a4 Add missing ChangeLog entry 2005-12-07 01:36:14 +00:00
Hans-Peter Nilsson 392753ae2f * cris/cpuv10.h, cris/cpuv32.h, cris/cris-desc.c, cris/cris-opc.h,
cris/decodev10.c, cris/decodev10.h, cris/decodev32.c,
	cris/decodev32.h, cris/modelv10.c, cris/modelv32.c,
	cris/semcrisv10f-switch.c, cris/semcrisv32f-switch.c: Regenerate.
2005-12-06 22:42:43 +00:00
Hans-Peter Nilsson 632c75db43 * sim/cris/asm/movmp8.ms, sim/cris/asm/pcplus.ms: New tests.
* sim/cris/asm/movmp.ms: Do not write to P0, P4 or P8.
	* sim/cris/asm/raw13.ms: Write to MOF instead of WZ (P4).
2005-12-06 22:42:07 +00:00
Hans-Peter Nilsson cf2bf87e21 * cris/arch.c, cris/arch.h, cris/cpuall.h, cris/cpuv10.c,
cris/cpuv10.h, cris/cpuv32.c, cris/cpuv32.h, cris/cris-desc.c,
	cris/cris-desc.h, cris/cris-opc.h, cris/decodev10.c,
	cris/decodev10.h, cris/decodev32.c, cris/decodev32.h,
	cris/modelv10.c, cris/modelv32.c, cris/semcrisv10f-switch.c,
	cris/semcrisv32f-switch.c: Regenerate.
2005-12-05 03:11:47 +00:00
Hans-Peter Nilsson 59e834e427 Fix typo last entry 2005-12-05 03:11:08 +00:00
Mark Mitchell 255208590a * sim-signal.c (sim_signal_to_target): Fix typos. 2005-11-29 02:43:06 +00:00
Mark Mitchell 058ad2697e * configure.ac (USE_WIN32API): Define it.
* configure.in: Regenerate.
	* config.in: Likewise.
	* emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
	* emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
2005-11-28 23:19:39 +00:00
Mark Mitchell 3a611ef503 * psim.c: Include gdb/signals.h. 2005-11-28 21:30:07 +00:00
Mark Mitchell aba6488e0b * remote-sim.c (gdbsim_wait): Pass target signal numbers to
sim_resume.  Expect target signal numbers from sim_stop_reason.

	* wrapper.c (gdb/signals.h): Include it.
	(SIGTRAP): Don't define.
	(SIGBUS): Likewise.
	(sim_stop_reason): Use TARGET_SIGNAL_* instead of SIG*.

	* sim-reason.c (sim_stop_reason): Use
	sim_signal_to_target, not sim_signal_to_host.
	* sim-signal.c (sim_signal_to_host): Fix typo.
	(sim_signal_to_target): New function.

	* interp.c (gdb/signals.h): Include it.
	(sim_stop_reason): Use TARGET_SIGNAL_*.

	* interf.c: (gdb/signals.h): Include it.
	(sim_stop_reason): Use TARGET_SIGNAL_*.

	* sim_calls.c (gdb/signals.h): Include it.
	(sim_stop_reason): Use TARGET_SIGNAL_*.
	* psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
2005-11-28 18:33:03 +00:00
Hans-Peter Nilsson 5e1f64305e * sim/cris: New directory with C and assembly tests for the CRIS
simulator.
2005-11-21 04:48:19 +00:00
Hans-Peter Nilsson 8b9b39f44a cris/traps.c (TARGET_O_RDONLY, TARGET_O_WRONLY): Define.
(open_map): Use TARGET_O_ACCMODE, TARGET_O_RDONLY and
	TARGET_O_WRONLY.
	(cris_break_13_handler) <case TARGET_SYS_fcntl>: Add support for
	F_GETFL on fd 0, 1 and 2.
2005-11-20 14:52:36 +00:00
Hans-Peter Nilsson ed1f044ac6 * cris/sim-main.h (struct _sim_cpu): New members last_syscall,
last_open_fd, last_open_flags.
	* cris/traps.c: Don't include targ-vals.h.
	(TARGET_O_ACCMODE): Define.
	(cris_break_13_handler): Set new _sim_cpu members.
	<case TARGET_SYS_fcntl>: Support special case of F_GETFL.
	Rearrange code as switch.  Emit "unimplemented" abort for
	unimplemented fcntl calls.
2005-11-17 16:14:53 +00:00
Hans-Peter Nilsson 5457266c93 * cris/traps.c (TARGET_SYS_stat): Define.
(syscall_stat32_map): Add entry for TARGET_SYS_stat.
	(cris_break_13_handler) <case TARGET_SYS_stat>: New case.
2005-11-17 15:51:24 +00:00
Daniel Jacobowitz 2be701a30f 2005-11-16 Shaun Jackman <sjackman@gmail.com>
* sim/arm/armos.c: Include limits.h
	(unlink): Remove this macro. It is unused in this file and
	conflicts with sim_callback->unlink.
	(PATH_MAX): Define as 1024 if not already defined.
	(ReadFileName): New function.
	(SWIopen): Fix a potential buffer overflow.
	(SWIremove): New function.
	(SWIrename): Ditto.
	(ARMul_OSHandleSWI): Handle the RDP calls SWI_IsTTY,
	SWI_Remove, and SWI_Rename, as well as the RDI calls
	AngelSWI_Reason_IsTTY, AngelSWI_Reason_Remove, and
	AngelSWI_Reason_Rename.
2005-11-17 04:23:03 +00:00
Hans-Peter Nilsson ae81c23549 * cris/cris-tmpl.c (MY (f_model_insn_before)): Make sure only the
low 32 bits are used after an unsigned long cast.
2005-11-16 04:50:57 +00:00
Andrew Stubbs 72a37d8dad 2005-11-10 Andrew Stubbs <andrew.stubbs@st.com>
* interp.c (sim_memory_size): Use same amount of memory on Windows as
	elsewhere.
2005-11-10 11:05:31 +00:00
Dave Brolley 79e59fe67b 2005-10-28 Dave Brolley <brolley@redhat.com>
* cpu.c,cpu.h,decode.c,decode.h,model.c,sem.c: Regenerate.

        Contribute the following changes:
        2003-09-29  Dave Brolley  <brolley@redhat.com>

        * frv-sim.h: Use CGEN_ATTR_VALUE_ENUM_TYPE in place of
        CGEN_ATTR_VALUE_TYPE.
        * mloop.in: Ditto.
        * pipeline.c: Ditto.
        * traps.c: Ditto.
2005-10-28 19:58:11 +00:00
Paul Brook c4793bacbf 2005-09-19 Paul Brook <paul@codesourcery.com>
* armdefs.h: Define ARMsword and ARMsdword. Use stdint.h when
	available.
	* armemu.c: Use them.
	* armvirt.c (ARMul_MemoryInit): Use correct type for size.
	* configure.ac: Check for stdint.h.
	* config.in: Regenerate.
	* configure: Regenerate.
2005-09-19 14:21:09 +00:00
Joern Rennecke 6a8492b562 * interp.c (<sys/mman.h>): Include.
(mcalloc): New function / macro.
	(mfree): New macro.
	(sim_size): Use mcalloc and mfree.
2005-09-19 11:29:30 +00:00
Joern Rennecke 63bee80353 * interp.c (strswaplen): Add one for '\0' delimiter. 2005-08-02 16:17:59 +00:00
Ben Elliston fb6ae37f9e * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's. 2005-07-15 03:52:31 +00:00
Ben Elliston 50427dbf8f * hw_init.c: Comment out tokens after #endif directive.
* hw_register.c: Likewise.
	* hw_trace.c: Likewise.
	* hw_vm.c: Likewise.
2005-07-15 03:42:32 +00:00
Hans-Peter Nilsson f010abaa2b * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
change.
2005-07-10 15:23:42 +00:00
Ian Lance Taylor efd3631498 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit. 2005-07-08 18:46:23 +00:00
Ian Lance Taylor 21d1489665 * tconfig.in (SIM_QUIET_NAN_NEGATED): Define. 2005-07-08 18:42:15 +00:00
Ian Lance Taylor 09b96ea041 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
different fraction for a quiet NaN.
	(unpack_fpu): Likewise.
2005-07-08 18:41:54 +00:00
Ben Elliston 3b02a06bd6 * callback.c: Remove ANSI_PROTOTYPES conditional code.
* sim-load.c: Likewise.
	* syscall.c: Likewise.
2005-07-08 08:05:35 +00:00
Ben Elliston 4eeb4f8dbf * func.c: Remove ANSI_PROTOTYPES conditional code. 2005-07-08 08:04:54 +00:00
Daniel Jacobowitz 195b8a572e * gencode.c (tab): Avoid lvalue casts. Suggested by
Ralf Corsepius <ralf.corsepius@rtems.org>.
2005-06-17 03:13:07 +00:00
David Ung b16d63dac6 * mips.igen: New mips16e model and include m16e.igen.
(check_u64): Add mips16e tag.
* m16e.igen: New file for MIPS16e instructions.
* configure.ac (mipsisa32*-*-*, mipsisa32r2*-*-*, mipsisa64*-*-*,
mipsisa64r2*-*-*): Change sim_gen to M16, add mips16 and mips16e
models.
* configure: Regenerate.
2005-06-16 15:15:49 +00:00
Hans-Peter Nilsson c318251408 * cris/Makefile.in (stamp-v32fmloop): Depend on stamp-v10fmloop. 2005-05-28 08:47:30 +00:00
Chris Demetriou d81ffbc49a 2005-05-26 Chris Demetriou <cgd@netbsd.org>
* MAINTAINERS: Update my mail address, move myself to the
        "Past maintainers" section.
2005-05-26 21:37:09 +00:00
Chris Demetriou e70cb6cd9a 2005-05-26 David Ung <davidu@mips.com>
* mips.igen (mips32r2, mips64r2): New ISA models.  Add new model
        tags to all instructions which are applicable to the new ISAs.
        (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Add, moved from
        vr.igen.
        * mips3264r2.igen: New file for MIPS 32/64 revision 2 specific
        instructions.
        * vr.igen (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Move
        to mips.igen.
        * configure.ac (mipsisa32r2*-*-*, mipsisa64r2*-*-*): Add new targets.
        * configure: Regenerate.
2005-05-26 21:31:57 +00:00
Nick Clifton 546aee7a22 (handle_v6_thumb_insn): New function.
(ARMul_ThumbDecode): Call handle_v6_thumb_insn() when an undefined instruction
  binary is encountered.
2005-05-24 15:30:38 +00:00
Corinna Vinschen 18d59ab9dd * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
check.
2005-05-24 14:21:19 +00:00
Daniel Jacobowitz ef5a45edc7 Update copyright years for last commit. 2005-05-18 01:55:46 +00:00
Daniel Jacobowitz 149cfe5bb4 * Make-common.in (install-common, installdirs): Honor $DESTDIR. 2005-05-18 01:54:39 +00:00
Corinna Vinschen c3357c6410 * configure.ac: Add igen to v850 build.
* configure: Regenerate.
2005-05-17 14:11:24 +00:00
Ben Elliston 44cd25cf2d Typo fix. 2005-05-16 01:03:40 +00:00
Nick Clifton 380d9419c9 Update the address of the FSF organization 2005-05-12 07:36:59 +00:00
Corinna Vinschen 4839e910a0 * sh-desc.h: Move extern declaration of sh_cgen_ifld_table after
inclusion of cgen.h.
2005-05-02 15:23:09 +00:00
Paul Brook 33aa0cbb6b 2005-04-29 Paul Brook <paul@codesourcery.com>
* common/callback.c (PIPE_BUF): Provide default refinition.
	(os_lstat): Use stat if lstat is not available on the host.
	(os_ftruncate): Return EINVAL if not available on the host.
	(os_truncate): Ditto.
	* common/configure.ac: Check for lstat, truncate and ftruncate.
	* common/configure: Regenerate.
	* common/config.in: Regenerate.
2005-04-29 14:48:03 +00:00
Paul Brook 4ec242d7be 2005-04-27 Paul Brook <paul@codesourcery.com>
* common/Make-common.in: Add $(EXEEXT) to "run".
2005-04-27 20:38:08 +00:00
Nick Clifton 8207e0f24e * armemu.c (handle_v6_insn): New function - emulate a few of the v6 instructions - the ones now generated by GCC.
(ARMulEmulate32): Call handle_v6_insn when a possible v6 insn is found.
* armdefs.h (struct ARMul_State): Add new field: is_v6.#
  (ARM_v6_Prop): Define.
* arminit.c (ARMul_NewState): Initialise the v6 flag.
  (ARMul_SelectProcessor): Determine if the v6 flag should be set.
* wrapper.c (sim_create_inferior): For unknown architectures, default to allowing the v6 instructions.
2005-04-25 07:48:59 +00:00
Manoj Iyer c55c7ff100 added missing header file #include "libiberty.h" to psim.c
2005-04-20  Manoj Iyer  <manjo@austin.ibm.com>

	     * psim.c: Added libiberty.h header file.
2005-04-20 22:33:08 +00:00
Manoj Iyer f5e8ac0e51 added missing header file libiberty.h to psim.c 2005-04-20 22:30:30 +00:00
Manoj Iyer 15254e9d32 Insert a blank like after header 2005-04-20 22:28:52 +00:00
Manoj Iyer 5d74254dbf Inserting a blank line to changelog 2005-04-20 22:27:40 +00:00
Manoj Iyer 3f6da72206 unsigned32 and unsigned64 is multiply defined in sim-types.h.
2005-04-20  Manoj Iyer  <manjo@austin.ibm.com>
	* sim-types.h: Changed unsigned32 and unsigned64 to signed32
	and signed64 for __ALPHA__.
2005-04-20 15:21:37 +00:00
Manoj Iyer 30e6617391 Use HAVE_LONG_LONG to check if compiler supports long long instead of using __GNU__.
2005-04-18  Manoj Iyer  <manjo@austin.ibm.com>
	* configure.ac: Added check for long long.
	* config.in: Regenerated.
	* configure: Regenerated.
	* words.h: Modified logic to check for HAVE_LONG_LONG instead of
	__GNUC__, added config.h header file.
2005-04-20 14:43:55 +00:00
Nick Clifton 16d55f1479 (WMAC, WMADD): Move casts from the LHS of an assignment operator to the RHS.
(WSLL, WSRA, WSRL, WUNPCKEH, WUNPACKEL): Use ULL suffix to indicate an
unsigned long long constant.
2005-04-18 12:17:51 +00:00
Hans-Peter Nilsson 69308976e8 * cris/traps.c (cris_break_13_handler) <case TARGET_SYS_mmap2>:
For ((len & 8191) != 0 && fd == (USI) -1), don't say this isn't
	implemented.  In call to create_map, pad length argument to 8k.
2005-04-18 03:08:46 +00:00
Corinna Vinschen 21bc75678f * configure.ac: Add explicit sh64 case.
* configure: Regenerate.
	* sh64/configure.ac: New file.
	* sh64/configure.in: Remove.
	* sh64/configure: Regenerate.
	* sh64/defs-media.h (sem_fields): Add missing sfmt_ldhil member.
	* sh64/sim-if.c (sim_open): Use struct bfd instead of struct _bfd.
	(sim_create_inferior): Ditto.
2005-04-15 08:15:52 +00:00
Jonathan Larmour 53f541af8d * gencode.c (tab): Avoid inserting code before variables all declared. 2005-04-14 20:16:06 +00:00
Paul Brook 74ec5579b9 2005-03-30 Paul Brook <paul@codesourcery.com>
* arm/wrapper.c: Provide SIGTRAP and SIGBUS.
2005-03-30 16:21:33 +00:00
Anthony Green 170cd118a9 Fix memset thinkos. 2005-03-25 20:40:02 +00:00
Hans-Peter Nilsson cce0efb55e * cris/Makefile.in (stamp-v10fcpu, stamp-v32fcpu): Add kludge to
include cgen-ops.h in decodev10.c and decodev32.c.
	* cris/sim-main.h: Don't include cgen-ops.h here.
	* cris/arch.c, cris/arch.h, cris/cpuall.h, cris/cpuv10.c,
	cris/cpuv10.h, cris/cpuv32.c, cris/cpuv32.h, cris/cris-desc.c,
	cris/cris-desc.h, cris/cris-opc.h, cris/decodev10.c,
	cris/decodev10.h, cris/decodev32.c, cris/decodev32.h,
	cris/modelv10.c, cris/modelv32.c, cris/semcrisv10f-switch.c,
	cris/semcrisv32f-switch.c: Regenerate.
2005-03-24 06:12:42 +00:00
Hans-Peter Nilsson 2ecb839027 * cris/traps.c (cris_break_13_handler) <case
TARGET_SYS_rt_sigaction>: Rename sa_handler, sa_flags,
	sa_restorer, sa_mask_low, sa_mask_high to target_sa_handler etc.
2005-03-24 01:14:09 +00:00
Mark Kettenis 2b193c4ab6 From common/ChangeLog:
* aclocal.m4 Include ../../gettext.m4.
(CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
(AM_LC_MESSAGES): Remove.
* configure: Regenerate.

Regenerate all other configures.
2005-03-23 18:55:19 +00:00
Jim Blandy 51216631bc sim/common/ChangeLog:
2005-02-28  Jim Blandy  <jimb@redhat.com>

	* aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
	-Wuninitialized in the default list of build warnings if CFLAGS is
	set, and doesn't include -O.  (Using -Wuninitialized without
	optimization produces a warning, which interferes with compilation
	with -Werror.)

sim/ChangeLog:
2005-02-28  Jim Blandy  <jimb@redhat.com>

	* d10v/configure.ac, igen/configure.ac, m68hc11/configure.ac,
	mips/configure.ac, mn10300/configure.ac, v850/configure.ac:
	Regenerated, after change to common/aclocal.m4.
2005-03-15 23:25:59 +00:00
Corinna Vinschen edece23776 * iq2000: New target subdirectory.
* configure.ac: Add iq2000 target.
	* configure: Regenerate.
2005-03-08 08:55:34 +00:00
Jerome Guitton 187d3d28e2 2005-03-07 Jerome Guitton <guitton@gnat.com>
* sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
	strings.
	(clear_accex): Ditto.
	* sim/erc32/interf.c: Remove the redeclaration of fprintf.
	* sim/erc32/sis.c: Ditto.
	* sim/erc32/exec.c: Add missing semicolon.
	* sim/erc32/func.c: Remove definitions of generic_print_address,
	generic_symbol_at_address, buffer_read_memory and perror_memory, as
	they are already defined in opcodes/dis-buf.c.
2005-03-07 11:09:05 +00:00
Jim Blandy 0c4507fdbe * callback.c (os_fstat): Don't declare 't' unless it's used. 2005-02-21 21:59:54 +00:00
Jim Blandy 9ab46d5398 cgen/ChangeLog:
2005-02-09  Jim Blandy  <jimb@redhat.com>

	* cgen-sim.scm (load-files): Don't load fixup.scm.  (See
	corresponding change in the sim/common directory.)

sim/common/ChangeLog:
2005-02-09  Jim Blandy  <jimb@redhat.com>

	* Make-common.in (CGEN): Load guile.scm, and include a trailing
	'-s' argument.
	(CGEN_FLAGS_TO_PASS): Include single quotes around the reference
	to $(CGEN), to ensure that the command substitution happens where
	the variable is referenced in the submake, not when the submake's
	arguments are expanded.
	(cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
	(arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
	application Scheme script directly after ${cgen}; don't precede it
	with a -s.
2005-02-09 22:04:04 +00:00
Hans-Peter Nilsson 8bdcadb12f * Makefile.in (all, clean mostlyclean, distclean maintainer-clean)
(realclean, install): Fail if subdir make failed.
2005-01-29 00:53:13 +00:00
Hans-Peter Nilsson f6bcefefe8 * cris: New directory, simulator for Axis Communications CRIS
including CRIS v32, CGEN-based.
	* configure.ac: Add corresponding configury.
	* configure: Regenerate.
2005-01-28 04:29:00 +00:00
Hans-Peter Nilsson 97f669eda9 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
* callback.c [HAVE_LIMITS_H]: Include limits.h.
  	Include libiberty.h.
	(os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
	being either end of a pipe.
	(os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
	(os_shutdown): Clear pipe state.
	(default_callback): Initialize new members.
2005-01-28 03:40:54 +00:00
Hans-Peter Nilsson f4f8cce440 * callback.c (default_callback): Initialize target_endian.
(cb_store_target_endian): Renamed from store, new first parameter
	host_callback *cb, drop last parameter big_p.  Take endianness
	from cb.
	(cb_host_to_target_stat): Change to use cb_store_target_endian.
	Remove variable big_p.
	* nrun.c (main): Initialize default_callback.target_endian.
2005-01-28 03:28:40 +00:00
Andrew Cagney 4ac6917f4d 2005-01-17 Andrew Cagney <cagney@gnu.org>
* configure.ac: For mips*-*-* and mn10300*-*-* configure the
	common directory.  Remove sparc*-*-* from list.
2005-01-17 18:04:10 +00:00
Andrew Cagney 35695fd6e5 Index: arm/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: common/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
	Add explicit call to AC_CONFIG_HEADER.
	* common.m4: Delete call to AC_CONFIG_HEADER, update usage.
	* configure: Re-generate.

Index: d10v/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: erc32/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: frv/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: h8300/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: m32r/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: m68hc11/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: mcore/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: mips/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: mn10300/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: sh/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.

Index: v850/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Sinclude aclocal.m4 before common.m4.  Add
	explicit call to AC_CONFIG_HEADER.
	* configure: Regenerate.
2005-01-14 20:05:48 +00:00
Andrew Cagney f05692463c Index: sh/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: mn10300/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: d10v/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: erc32/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: frv/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: h8300/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: m32r/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: mcore/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: mips/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: v850/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.

Index: common/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* common.m4: New file, based on of aclocal.m4.

Index: arm/ChangeLog
2005-01-12  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Update to use ../common/common.m4.
	* configure: Re-generate.
2005-01-12 17:12:46 +00:00
Andrew Cagney 38f48d729d Index: m32r/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: m68hc11/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: mcore/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: mips/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: mn10300/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: ppc/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure.ac: Delete AC_CONFIG_AUX_DIR.
	* configure: Re-generate.

Index: sh/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: testsuite/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: v850/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: erc32/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: frv/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: h8300/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: igen/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure.ac: Delete AC_CONFIG_AUX_DIR.
	* configure: Re-generate.

Index: d10v/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: ChangeLog
2005-01-11  Andrew Cagney  <cagney@gnu.org>

	* Makefile.in (autoconf-common autoheader-common): Add --force to
	autoconf and autoheader.
	(autoconf-common autoheader-common)
	(autoconf-install autoheader-install): Check for configure.ac, not
	configure.in.
	* configure.ac: Delete AC_CONFIG_AUX_DIR.
	* configure: Re-generate.

Index: arm/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* configure: Regenerated to track ../common/aclocal.m4 changes.

Index: common/ChangeLog
2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>

	* aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
	* configure: Regenerated to track ../common/aclocal.m4 changes.
2005-01-12 16:23:24 +00:00
Andrew Cagney b702665739 Index: arm/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Replace configure.in.  Requires autoconf 2.59 and
	correctly calls AC_CONFIG_SUBDIRS.
	* configure: Re-generate.

Index: common/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
	* configure: Re-generate.

Index: d10v/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: erc32/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: frv/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: h8300/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: igen/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: m32r/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: m68hc11/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: mcore/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: mips/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: mn10300/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: ppc/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: sh/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: testsuite/d10v-elf/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: testsuite/frv-elf/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: testsuite/m32r-elf/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: testsuite/mips64el-elf/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: testsuite/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.

Index: v850/ChangeLog
2005-01-07  Andrew Cagney  <cagney@gnu.org>

	* configure.ac: Rename configure.in, require autoconf 2.59.
	* configure: Re-generate.
2005-01-10 16:14:50 +00:00
Andrew Cagney d0945c9b3b 2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.in: Pass literal subdirectories to AC_CONFIG_SUBDIRS.
	* configure: Re-generate.
2005-01-07 23:37:38 +00:00
Andrew Cagney 4db6a73d17 2005-01-07 Andrew Cagney <cagney@gnu.org>
* fr30-elf, d30v-elf: Delete directory.
2005-01-07 23:25:38 +00:00
Andreas Schwab 38edcf8ace * Makefile.in (hw_com.o, hw_eeprom.o): Depend on
$(DEVICE_TABLE_H).
2005-01-03 15:34:19 +00:00
Hans-Peter Nilsson 5d945fec64 * syscall.c (cb_syscall) <case CB_SYS_truncate>
<case CB_SYS_ftruncate>: New cases.
2004-12-15 01:26:40 +00:00
Hans-Peter Nilsson af596d0889 Correct last mispasted entry 2004-12-13 00:46:42 +00:00
Hans-Peter Nilsson 82571856a8 * syscall.c (cb_syscall) <case CB_SYS_rename>: New case. 2004-12-13 00:46:05 +00:00
Hans-Peter Nilsson 0d3cd463e3 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
* callback.c (os_lstat): New function.
2004-12-13 00:38:38 +00:00
Kazuhiro Inaoka 19e64aa99d 2004-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Committed by Kei Sakamoto.
        * traps-linux.c (m32r_trap): Add entries of the following dummy system
        calls: __NR_mmap2, __NR_lchown32, __NR_getuid32, __NR_getgid32,
        __NR_geteuid32, __NR_getegid32, __NR_getgroups32, __NR_fchown32,
        __NR_setfsuid32, __NR_setfsgid32, __NR_getresuid32,
        __NR_getresgid32 and __NR_chown32.
        * syscall.h: Add new definitions of system call number.
2004-12-09 00:47:45 +00:00
Hans-Peter Nilsson 027e2a04f1 * run.1: Document --sysroot=filepath.
* sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
	(standard_options): Support --sysroot=<path>.
	(standard_option_handler): Handle OPTION_SYSROOT.
	* syscall.c (simulator_sysroot): Define, initialized empty.
	(get_path): Prepend simulator_sysroot to absolute file path.
	[HAVE_STRING_H]: Include string.h.
	[!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
	* nrun.c [HAVE_UNISTD_H]: Include unistd.h.
	(main): If simulator_sysroot is not empty, chdir there.
	* sim-config.h (simulator_sysroot): Declare.
2004-12-08 00:40:30 +00:00
Hans-Peter Nilsson 379832de9a * configure: Regenerate for ../common/aclocal.m4 update. 2004-12-07 23:51:23 +00:00
Hans-Peter Nilsson 119860e511 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
cgen_rtx_error" in a CGEN-generated simulator.
	* gdbinit.in: Break on sim_core_signal too.  Have autoconf
	replacement for CGEN-related breakpoints.
2004-12-07 23:37:35 +00:00
Hans-Peter Nilsson 70ae66113d * Make-common.in (sim-basics_h): Add $(callback_h). 2004-12-07 22:28:53 +00:00
Hans-Peter Nilsson e1591da4fd Bah, forgot to commit the trivial fix I pointed out myself after applying patch for previous change 2004-12-03 23:34:55 +00:00
Hans-Peter Nilsson 697afb65fc * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
	st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
	* aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
	(SIM_CHECK_MEMBERS): New macros.
	* callback.c (cb_host_to_target_stat): Use temporary macro ST_x
	for struct stat member test and write.  Add ST_x calls for each
	struct stat member tested in configure.in.  Wrap each ST_x call in
	#ifdef of configure macro for that member.
	* configure, config.in: Regenerate.
2004-12-03 19:36:53 +00:00
Andrew Cagney 44b263ce53 Delete h8500 simulator, gdb droped h8500 in 6.1. 2004-12-01 15:41:27 +00:00
Andrew Cagney 33841fd962 Delete i960; deleted from GDB long long ago. 2004-12-01 15:27:21 +00:00
Hans-Peter Nilsson 6e56eb075a Oops, forgot to save ChangeLog before committing 2004-12-01 13:53:28 +00:00
Hans-Peter Nilsson 5e77bda967 Update copyright year 2004-12-01 02:32:08 +00:00
Hans-Peter Nilsson 76e417689c * Makefile.in (stamp-desc): Specify opcfile. 2004-12-01 02:30:49 +00:00
Hans-Peter Nilsson ad6e5d2e31 * cgen.sh: New thirteenth parameter opcfile, defaulting to
/dev/null.
	<case desc>: Pass -OPC opcfile.
	* Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
	parameter to cgen.sh.
2004-12-01 02:29:30 +00:00
Richard Earnshaw c87368acf2 * Make-common.in (sim-basics_h): Correct dependencies on
cconfig.h and tconfig.h
(sim-load.o): Correct typo in sim-basics_h dependency.
2004-11-30 13:44:13 +00:00
Richard Earnshaw 15f5e61fb4 In last change: macros not rules. 2004-11-18 10:56:28 +00:00
Richard Earnshaw 08cd376098 * Make-common.in (sim-*_h): Add rules for all sim headers. Also
add sub-dependencies for other sim files that they include.
(sim_main_headers): Use sim-*_h rules.
(sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2004-11-18 10:21:39 +00:00
Hans-Peter Nilsson 27509da04b Fix consistenco; it's triplets, not triples 2004-11-16 16:22:09 +00:00
Hans-Peter Nilsson 310ca70ce2 * lib/sim-defs.exp (run_sim_test): Support "xfail" and "kfail". 2004-11-16 16:20:32 +00:00
Andreas Schwab 99b5727687 * Makefile.in (defines.h): Depend on tmp-defines.
(hw.c hw.h): Depend on tmp-hw.
	(pk.h): Depend on tmp-pk.
2004-11-16 10:21:19 +00:00
Hans-Peter Nilsson 1d72487d99 * sim-config.c (sim_config): Recognize when a bfd has unspecified
endian information.
2004-11-16 07:16:57 +00:00
Hans-Peter Nilsson 5eba45c188 * lib/sim-defs.exp (run_sim_test): Make multiple "output"
specifications concatenate, not override.
2004-11-16 07:06:17 +00:00
Hans-Peter Nilsson 1afbf1866f * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
$(remote_sim_h) too.
	(sim_main_headers): Add sim-utils.h.
2004-11-16 07:02:26 +00:00
Andrew Cagney c46ec85da2 2004-11-12 Andrew Cagney <cagney@gnu.org>
* d30v, fr30, mn10200, z8k: Delete directory.
2004-11-12 16:45:32 +00:00
Andreas Schwab 2b3cc94f76 sim/erc32:
* interf.c: Include "libiberty.h" instead of declaring buildargv
	ourselves.

sim/ppc:
	* sim_calls.c: Include "libiberty.h".
2004-11-11 21:58:57 +00:00
Andrew Cagney 1ca6491a29 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Committed by Andrew Cagney.
	* traps-linux.c: Don't include linux/module.h.
	(m32r_trap): Remove dummy systemcall's entry of __NR_ustat and
	__NR_get_kernel_syms.
2004-10-27 17:19:02 +00:00
Nick Clifton fcf640ecb2 (sim_run): Add support for the "rawsid" protocol. 2004-10-26 08:07:59 +00:00
Frank Ch. Eigler a3bb10891c 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2004-10-08 15:33:09 +00:00
Andrew Cagney cd62154cc6 2004-09-24 Monika Chaddha <monika@acmet.com>
Committed by Andrew Cagney.
	* m16.igen (CMP, CMPI): Fix assembler.
2004-09-24 20:28:24 +00:00
Andrew Cagney 1f362c96c3 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
Committed by Andrew Cagney.
	* configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
	Check for struct statfs.
	* emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
	* configure, config.in: Regenerate.
2004-09-24 18:39:41 +00:00
DJ Delorie fdd2f0d804 * sim/sh/allinsn.exp: Set global_as_options and
global_ld_options appropriately for little endian builds.
* sim/sh/movua.s: Support little endian.
2004-09-13 21:02:33 +00:00
DJ Delorie a3ef5243fb * lib/sim-defs.exp (run_sim_test): Add global_as_options,
global_ld_options, and global_sim_options to all test cases, if
defined.
2004-09-13 20:54:03 +00:00
Corinna Vinschen b4f0ee661e * allinsn.exp: Add new tests.
* bandor.s: New file.
	* bandornot.s: New file.
	* bclr.s: New file.
	* bld.s: New file.
	* bldnot.s: New file.
	* bset.s: New file.
	* bst.s: New file.
	* bxor.s: New file.
	* clip.s: New file.
	* div.s: New file.
	* fail.s: New file, make sure fail works.
	* fsca.s: New file.
	* fsrra.s: New file.
	* mov.s: New file.
	* mulr.s: New file.
	* pass.s: New file, make sure pass works.
	* pushpop.s: New file.
	* resbank.s: New file.
	* testutils.inc (bf8k, bt8k, assertmem): New macros.
2004-09-08 09:20:29 +00:00
Corinna Vinschen ae0a84af70 * gencode.c (movua.l): Compensate for endianness.
* interp.c (RAISE_EXCEPTION_IF_IN_DELAY_SLOT): New macro.
	(in_delay_slot): New flag variable.
	(Delay_Slot): Set in_delay_slot.
	(sim_resume): Reset in_delay_slot after leaving code switch.
	* gencode.c (op tab): Call RAISE_EXCEPTION_IF_IN_DELAY_SLOT for all
	instructions not allowed in delay slots.

	Commited by Corinna Vinschen <vinschen@redhat.com>
	Introduce SH2a support.
	* interp.c: Change type of jump table to short.  Add various macros.
	(sim_load): Save the bfd machine code.
	(sim_create_inferior): Ditto.
	(union saved_state_type): Add tbr, ibnr and ibcr registers.
	Move bfd_mach to end of struct.  Add regstack pointer.
	(init_dsp): Don't swap contents of sh_dsp_table any more.  Instead
	use it directly in its own switch statement.  Allocate space for 512
	register banks.
	(do_long_move_insn): New function.
	(do_blog_insn): Ditto.
	(trap): Use trap #13 and trap #14 to set ibnr and ibcr.
	* gencode.c: Move movx/movy insns into separate switch statement.
	(op tab): Add sh2a insns.  Reject instructions that are disabled
	on that chip.
	(gensim_caselist): Generate default case here instead of in caller.
	(gensim): Generate two separate switch statements.  Call
	gensim_caselist once for each (for movsxy_tab and for tab).
	Add tokens for r15 and multiple regs.
	(conflict_warn, warn_conflicts): Add for debugging.
2004-09-08 09:11:50 +00:00
Richard Sandiford 45aa12b4ca * cpu.[ch], arch.[ch], decode.[ch]: Regenerated.
* cpuall.h, model.c, sem.c: Regenerated.
2004-08-27 09:48:35 +00:00
Chris Demetriou e5da76ecfd 2004-08-18 Chris Demetriou <cgd@broadcom.com>
* configure.in (mipsisa64sb1*-*-*): Add mips3d to sim_igen_machine.
        * configure: Regenerate.
2004-08-19 07:02:04 +00:00
Joern Rennecke a134f341e6 * gencode.c (tab): For shad snd shld, fix result for
(op1 < 0 && shift_amount == 0).
2004-08-18 11:47:15 +00:00
Nathanael Nerode 2a0c88109d * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc. 2004-08-05 21:14:06 +00:00
Andrew Cagney 91cd10427a 2004-08-04 Andrew Cagney <cagney@gnu.org>
Jim Blandy <jimb@redhat.com>

	* sim_callbacks.h (simulator): Declare.
	* Makefile.in (gdb-sim.o): New rule.
	(MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
	(DEFS_H): Delete.
	(GDB_SIM_PPC_H): Define.
	* gdb-sim.c: New file.
	* sim_calls.c: Do not include "defs.h".
	(simulator): Drop static.
	(sim_store_register, sim_fetch_register): Delete.
2004-08-05 00:17:52 +00:00
Andrew Cagney f37b123d33 2004-08-04 Andrew Cagney <cagney@gnu.org>
* Back out accidently committed change.
2004-08-04 18:09:34 +00:00
Jim Blandy 9f64376872 gdb/ChangeLog:
2004-07-20  Jim Blandy  <jimb@redhat.com>

	Use a fixed register numbering when communicating with the PowerPC
	simulator.
	* ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
	* rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
	(set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
	New functions.
	(rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
	init_sim_regno_table.
	* Makefile.in (gdb_sim_ppc_h): New variable.
	(rs6000-tdep.o): Update dependencies.

include/gdb/ChangeLog:
2004-07-20  Jim Blandy  <jimb@redhat.com>

	* sim-ppc.h: New file.

sim/ppc/ChangeLog:
2004-07-20  Jim Blandy  <jimb@redhat.com>

	Use a fixed register numbering when communicating with the PowerPC
	simulator.
	* sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
	include GDB's "defs.h".
	(gdb_register_name_table): New variable.
	(gdb_register_name_table_size): New enum constant.
	(gdb_register_name): New function.
	(sim_fetch_register, sim_store_register): Use gdb_register_name,
	instead of calling gdbarch_register_name.
	* Makefile.in (GDB_SIM_PPC_H): New variable.
	(DEFS_H): Delete variable.
	(sim_calls.o): Update dependencies.
2004-08-04 17:04:36 +00:00
Andrew Cagney 5a645dc5a1 Index: common/ChangeLog
2004-07-26  Andrew Cagney  <cagney@gnu.org>

	Problem from Olaf Hering <olh@suse.de>.
	* Makefile.in (install-man, installdirs): Add DESTDIR prefix.

Index: ppc/ChangeLog
2004-07-26  Andrew Cagney  <cagney@gnu.org>

	Problem from Olaf Hering <olh@suse.de>.
	* Makefile.in (install, installdirs): Add DESTDIR.
2004-07-26 21:37:46 +00:00
Ben Elliston ea5c7021ca * tree.c (parse_integer_property): Comment typo fix. 2004-07-11 23:42:07 +00:00
Ben Elliston 109d3db382 * hw-tree.c (parse_integer_property): Typo fix in comments.
* sim-options.c	(sim_args_command): Likewise.
2004-07-10 00:40:25 +00:00
Jim Blandy 6e9114ad3d * Makefile.in: Update all dependency information.
(BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
(EMUL_GENERIC_H): Values updated.
(ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
(ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
(COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
(COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
(DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
(EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
(FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
(GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
(GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
(ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
(IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
(LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
(OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
(SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
(SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
(TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
(callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
(dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
(events.o, filter.o, filter_filename.o, filter_host.o)
(gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
(gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
(hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
(idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
(ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
(options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
(semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
(support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
2004-07-06 17:14:09 +00:00
Andrew Cagney 0aaa4a81b0 Index: mn10200/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* interp.c: Rename ui_loop_hook to deprecated_ui_loop_hook.

Index: d10v/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* interp.c (sim_resume): Rename ui_loop_hook to
	deprecated_ui_loop_hook.

Index: arm/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* armemu.c: Rename ui_loop_hook to deprecated_ui_loop_hook.

Index: common/ChangeLog
2004-06-28  Andrew Cagney  <cagney@gnu.org>

	* run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2004-06-29 00:54:00 +00:00
Alexandre Oliva e073c4747a sim/h8300/ChangeLog:
2003-07-23  Richard Sandiford  <rsandifo@redhat.com>
* compile.c (sim_resume): Make sure that dst.reg refers to the
right register byte in mova/sz.l @(dd,RnL),ERn.
2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
* compile.c (sim_resume): Zero-extend immediate to muls, mulsu,
mulxs, divs and divxs.
sim/testsuite/sim/h8300/ChangeLog:
2003-07-22  Michael Snyder  <msnyder@redhat.com>
* mul.s: Don't try to use negative immediate (it's always
unsigned).
* div.s: Ditto.
2004-06-28 19:26:37 +00:00
Alexandre Oliva e4d3c499f5 * compile.c (sim_load): Update sd->memory_size. 2004-06-28 19:25:43 +00:00
Jim Blandy 71d39cfcfd * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
unsigned type before or-ing it with a 64-bit value.
2004-06-28 19:02:49 +00:00
Joern Rennecke 0242f9ea60 * callback.c (os_shutdown): Fix bug in last change: actually
mark file descriptors as available on startup.
2004-06-27 03:14:51 +00:00
Alexandre Oliva c76b4bab30 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
* am33-2.igen (fmadd, fmsub, fmnadd, fmnsub): Correct typo.
2000-05-29  Alexandre Oliva  <aoliva@cygnus.com>
* interp.c (fpu_disabled_exception, fpu_unimp_exception,
fpu_check_signal_exception): Take additional state arguments.
Print exception type and call program_interrupt.  Adjust callers.
(fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Take additional
arguments.
* mn10300_sim.h (fpu_disabled_exception, fpu_unimp_exception,
fpu_check_signal_exception): Adjust prototypes.
(fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Likewise.
* am33-2.igen: Adjust calls.
2000-05-19  Alexandre Oliva  <aoliva@cygnus.com>
* op_utils.c (cmp2fcc): Moved...
* interp.c: ... here.
2000-05-18  Alexandre Oliva  <aoliva@cygnus.com>
* am33-2.igen: Use `unsigned32', `signed32', `unsigned64' or
`signed64' where type width is relevant.
2000-05-15  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300_sim.h: Include sim-fpu.h.
(FD2FPU, FPU2FD): Enclose the FD argument in parentheses.
(fpu_check_signal_exception): Declare.
(struct fp_prec_t, fp_single_prec, fp_double_prec): Likewise.
(FP_SINGLE, FP_DOUBLE): Shorthands for fp_*_prec.
(fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Declare.
* interp.c (fpu_disabled_exception): Document.
(fpu_unimp_exception): Likewise.
(fpu_check_signal_exception): Define.
(reg2val_32, round_32, val2reg_32, fp_single_prec): Likewise.
(reg2val_64, round_64, val2reg_64, fp_double_prec): Likewise.
(REG2VAL, ROUND, VAL2REG): Define shorthands.
(fpu_status_ok): Define.
(fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div,
fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Define.
* am33-2.igen (frsqrt, fcmp, fadd, fsub, fmul, fdiv,
fmadd, fmsub, fnmadd, fnmsub): Use new functions.
2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
* interp.c (sim_create_inferior): Set PSW bit to enable FP insns
if architecture is AM33/2.0.
* am33.igen: Include am33-2.igen.
2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.igen (movm, call, ret, retf): Check for am33_2 too.
* am33.igen (movm): Likewise.
2000-04-19  Alexandre Oliva  <aoliva@cygnus.com>
* am33.igen: Added `*am33_2' to some instructions that were
missing it.
2000-04-07  Alexandre Oliva  <aoliva@cygnus.com>
* am33-2.igen: New file.  All insns implemented, but FP flags are
only set for fcmp, exceptional conditions are not handled yet.
* Makefile.in (IGEN_INSN): Added am33-2.igen.
(tmp-igen): Added -M am33_2.
* mn10300.igen, am33.igen: Added `*am33_2' to all insns.
* gencode.c: Support FMT_D3.
* mn10300_sim.h (dword): New type.
(struct _state): Added fpregs.
(REG_FPCR, FPCR): New define.  All assorted bitmaps.
(XS2FS, AS2FS, Xf2FD): New macros.
(FS2FPU, FD2FPU, FPU2FS, FPU2FD): Likewise.
(load_dword, store_dword): New functions or macros.
(u642dw, dw2u64): New functions.
(fpu_disabled_exception, fpu_unimp_exception): Declared.
* interp.c (fpu_disabled_exception): Defined; no actual
implementation.
(fpu_unimp_exception): Likewise.
* op_utils.c (cmp2fcc): New function.
2004-06-26 22:18:18 +00:00
Alexandre Oliva 489503ee33 * interp.c, mn10300_sim.h, op_utils.c: Convert function prototypes
and definitions to ISO C.
2004-06-26 21:53:47 +00:00
Alexandre Oliva 622c89b6e6 * gencode.c, simops.c: Delete.
* Makefile.in: Remove non-COMMON dependencies and commands.
2004-06-26 21:44:56 +00:00
Alexandre Oliva 599e0b9e0d * configure.in: Use common simulator always. Don't subst sim_gen
nor mn10300_common.
* configure: Rebuilt.
* Makefile.in (WITHOUT_COMMON_OBJS, WITHOUT_COMMON_INTERP_DEP,
WITHOUT_COMMON_RUN_OBJS): Remove.
(WITH_COMMON_OBJS): Rename to MN10300_OBJS.
(WITH_COMMON_INTERP_DEP): Rename to MN10300_INTERP_DEP.
(WITH_COMMON_RUN_OBJS): Rename to SIM_RUN_OBJS.
(SIM_EXTRA_CFLAGS): Don't use @sim_gen@.
* interp.c: Remove non-common bits.
* mn10300_sim.h: Likewise.
2004-06-26 18:45:53 +00:00
Chris Demetriou 139181c8d6 2004-06-25 Chris Demetriou <cgd@broadcom.com>
* configure.in (sim_m16_machine): Include mipsIII.
        * configure: Regenerate.
2004-06-25 18:35:18 +00:00
Joern Rennecke 594ee3a79f 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
include/gdb:
	* callback.h (host_callback_struct): Replace members fdopen and
        alwaysopen with fd_buddy.
sim/common:
	* callback.c: Changed all users.
2004-06-25 16:48:03 +00:00
Alexandre Oliva eaabf82046 2004-06-17 Alexandre Oliva <aoliva@redhat.com>
* band.s, biand.s: imm3_abs16 is not available on h8300h.
* bset.s: Likewise.  Ditto for rn_abs32.
2004-06-24 21:08:11 +00:00
Alan Modra dcb74f961a * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc.
	(htab_dma_binary(bfd): Likewise.
	* hw_init.c (update_for_binary_section(bfd): Likewise.
2004-06-15 01:08:57 +00:00
Alan Modra 84b11e2eb5 * interp.c (sim_prepare_for_program): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc.
2004-06-15 01:08:34 +00:00
Alan Modra 5f510f9ca0 * sim-load.c (sim_load_file): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc.
2004-06-15 01:08:00 +00:00
Andrew Cagney 3973a7d36d ChangeLog editorial fixes. 2004-06-14 22:52:52 +00:00
Michael Snyder d6fd015d6e 2004-06-10 Michael Snyder <msnyder@redhat.com>
Patch submitted by Nitin Yewale <NitinY@KPITCummins.com>.
        * compile.c (sim_resume): Corrected ANDC operation on EXR for H8S.
2004-06-10 20:22:17 +00:00
Daniel Jacobowitz 7659f80a23 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
passing it to printf.
2004-05-18 21:20:07 +00:00
Daniel Jacobowitz 4d06b60c7f * Makefile.in (stamp-xmloop, stamp-2mloop): Use -outfile-suffix. 2004-05-18 21:19:53 +00:00
Ben Elliston bc81a370c5 * lib/sim-defs.exp: Remove stray semicolons. 2004-05-12 03:34:26 +00:00
Chris Demetriou 1a27f959ea 2004-05-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* mips/interp.c (decode_coproc): Sign-extend the address retrieved
        from COP0_BADVADDR.
        * mips/sim-main.h (COP0_BADVADDR): Remove a cast.
2004-05-12 01:42:33 +00:00
Daniel Jacobowitz 3e5e53f9b0 * configure.in (sim_fpu_cflags): Add -I../common.
* configure: Regenerated.
2004-05-11 02:21:58 +00:00
Daniel Jacobowitz 41ee5402be * callback.c: Update copyright dates.
* run.c: Likewise.
	* sim-basics.h: Likewise.
	* sim-load.c: Likewise.
	* syscall.c: Likewise.
From Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
	* callback.c: Include cconfig.h instead of config.h.
	* run.c: Likewise.
	* sim-basics.h: Likewise.
	* sim-load.c: Likewise.
	* syscall.c: Likewise.
2004-05-10 16:18:03 +00:00
Chris Demetriou adad0f8a2b 2004-04-11 Chris Demetriou <cgd@broadcom.com>
* utils-fpu.inc (enable_fpu, ckm_fp_cc): New macros.
        (clrset_fp_cc): Fix mask used for upper 7 condition codes.
        * utils-mdmx.inc: Include utils-fpu.inc.
        (enable_mdmx): Use enable_fpu.
2004-04-11 07:12:13 +00:00
Chris Demetriou cdc89eb2c3 2004-04-10 Chris Demetriou <cgd@broadcom.com>
* utils-fpu.inc: New file.
        * utils-mdmx.inc: New file.
        * mdmx-ob.s: New file.
        * mdmx-ob-sb1.s: New file.
        * basic.exp: Run new mdmx-ob and mdmx-ob-sb1 tests.
2004-04-11 06:28:08 +00:00
Chris Demetriou 5dbb7b5a1d im/mips/ChangeLog ]
2004-04-10  Chris Demetriou  <cgd@broadcom.com>

        * sb1.igen (DIV.PS, RECIP.PS, RSQRT.PS, SQRT.PS): New.

[ sim/testsuite/sim/mips/ChangeLog ]
2004-04-10  Chris Demetriou  <cgd@broadcom.com>

        * fpu64-ps-sb1.s: New file.
        * basic.exp: Recognize mipsisa64sb1 targets, and run fpu64-ps-sb1.s
        if appropriate.
2004-04-10 07:11:29 +00:00