Commit Graph

3022 Commits

Author SHA1 Message Date
Jan Kratochvil
bc56c8fa67 sim/moxie/
* interp.c (sim_create_inferior): Fix crashes on zero PROG_BFD or ARGV.
2010-02-27 01:24:37 +00:00
Andreas Schwab
aaea6334a0 * ppc-instructions: Fix missing assignment in last change. 2010-02-14 10:00:46 +00:00
Masaki Muranaka
2388a1526b * configure.in: Check if the host has getopt.h.
* configure: Regenerate.
        * config.in: Regenerate.
        * main.c: Include config.h.
        Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H.
        Include getopt.h in case HAVE_GETOPT_H is defined.
2010-02-14 07:37:11 +00:00
Masaki Muranaka
22e041e267 * interp.c: Don't include sysdep.h.
Include stdio.h and errno.h.
 	Include string.h strings.h stdlib.h sys/stat.h if present.
2010-02-14 07:15:57 +00:00
Doug Evans
c5351010e0 regenerate cgen-based files 2010-02-13 04:44:41 +00:00
Doug Evans
2310652a4f Regenerate cgen-derived files. 2010-02-12 02:44:26 +00:00
Andreas Schwab
2ad0ff16f7 * ppc-instructions: Fix aliasing bugs when calling
invalid_arithemetic_operation.
2010-02-05 15:47:02 +00:00
Mike Frysinger
fd87baa91e sim-model.c: Include sim-model.h 2010-02-04 22:52:42 +00:00
Mike Frysinger
294bcb78fe sime-base.h: fix typos in STATE_CPU() examples 2010-02-04 22:52:03 +00:00
Anthony Green
32d49b7b49 Fix nop insn for moxie 2010-02-03 10:28:19 +00:00
Doug Evans
d2c7a1a63b common/
* cgen-accfp.c (fextsfdf): New arg how.  All callers updated.
	(ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
	ufixsfsi): Ditto.
	* cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
	(struct cgen_fp_ops): Update signatures of floating point conversion
	operations.

	frv/
	* sem.c: Regenerate.

	sh64/
	* cpu.h: Regenerate.
2010-01-25 04:08:52 +00:00
Doug Evans
8053273798 * Make-common.in (CGEN_SIM_DEPS): Define.
(CGEN_INCLUDE_DEPS): Use it.
	(CGEN_MAIN_CPU_DEPS): Simplify.
2010-01-25 00:48:17 +00:00
Doug Evans
1377e154b3 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
(SUBWORDTFSI, JOINSIDI): Ditto.
2010-01-22 08:23:26 +00:00
DJ Delorie
2b1a61a6cf * m32c.opc (MATH_OP): When doing subtraction, also set carry if
the result is zero.
2010-01-20 05:52:19 +00:00
Joel Brobecker
35aafff4ac Cannot build mips simulator on darwin.
Masaki Muranaka  <monaka@monami-software.com>  (tiny change)
        * interp.c: Don't include sysdep.h
2010-01-18 03:30:28 +00:00
Anthony Green
11db68fd8d Add period to sentence in comment. 2010-01-13 14:08:36 +00:00
Anthony Green
b8dcd18250 Initialize SIM_DESC properly. 2010-01-13 08:28:26 +00:00
Ralf Wildenhues
3725885a65 Sync Libtool from GCC.
/:
	* libtool.m4: Sync from git Libtool.
	* ltmain.sh: Likewise.
	* ltoptions.m4: Likewise.
	* ltversion.m4: Likewise.
	* lt~obsolete.m4: Likewise.

sim/iq2000/:
	* configure: Regenerate.

sim/d10v/:
	* configure: Regenerate.

sim/m32r/:
	* configure: Regenerate.

sim/frv/:
	* configure: Regenerate.

sim/:
	* avr/configure: Regenerate.
	* cris/configure: Regenerate.
	* microblaze/configure: Regenerate.

sim/h8300/:
	* configure: Regenerate.

sim/mn10300/:
	* 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.

gprof/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.

opcodes/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.

gas/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* doc/Makefile.in: Regenerate.

ld/:
	* configure: Regenerate.

gdb/testsuite/:
	* gdb.cell/configure: Regenerate.

binutils/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* doc/Makefile.in: Regenerate.

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

bfd/doc/:
	* Makefile.in: Regenerate.
2010-01-09 21:11:44 +00:00
Doug Evans
68eeb703d6 * cpu.h: Regenerate.
* decode.c: Regenerate.
2010-01-06 05:10:53 +00:00
Doug Evans
ec11f05583 * cgen-types.h (SETDI): Delete, unused. 2010-01-06 05:03:46 +00:00
Doug Evans
0f51e9bf19 Regenerate cgen files, update copyright year. 2010-01-02 19:09:21 +00:00
Doug Evans
f9b98caf90 tweak wording of previous checkin 2010-01-01 21:45:18 +00:00
Doug Evans
d436cab743 cris/
* mloop.in: Fix copyright update snafu.
iq2000/
	* mloop.in: Fix copyright update snafu.
2010-01-01 21:40:50 +00:00
Joel Brobecker
dc3cf14f35 Update copyright notices to add year 2010. 2010-01-01 10:03:36 +00:00
DJ Delorie
feafbb2e30 * rx/rx.c (decode_opcode): btst bit address mask fix. 2009-12-23 03:51:47 +00:00
Yoshinori Sato
3a6c31f95c 2009-12-09 Yoshinori Sato <ysato@users.sourceforge.jp>
* compile.c(fetch_1): Fix pre-dec, pre-inc, post-dec and post-inc.
	Index registers not masked memory areas.
	Only simply increment or decrement.
	* compile.c(store_1): Ditto.
2009-12-09 05:32:16 +00:00
Doug Evans
a09a0bfd0c * cgen-engine.h: Remove duplicated comment. 2009-12-02 17:25:56 +00:00
DJ Delorie
117f2c0dc4 * rx/rx.c (decode_opcode): fix SWHILE logic. 2009-11-30 23:37:39 +00:00
Joel Brobecker
5912faddb2 * common/aclocal.m4: Add include of ../../config/zlib.m4.
* common/common.m4: Use AM_ZLIB to check for zlib support.
        * ppc/configure.ac: Likewise.
        * arm/configure, avr/configure, common/configure, cr16/configure,
        cris/configure, d10v/configure, erc32/configure, frv/configure,
        h8300/configure, iq2000/configure, lm32/configure, m32c/configure,
        m32r/configure, m68hc11/configure, mcore/configure,
        microblaze/configure, mips/configure, mn10300/configure,
        moxie/configure, ppc/configure, sh/configure, sh64/configure,
        v850/configure: Regenerate.
2009-11-24 22:58:08 +00:00
DJ Delorie
4f8d4a3861 [sim]
* rx: New directory.
	* configure.ac: Add entry for Renesas RX.
	* configure: Regenerate.

[include/gdb]
	* sim-rx.h: New.
2009-11-24 19:22:45 +00:00
Doug Evans
62836bf48e * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
(EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
plus regenerate cgen files
2009-11-23 09:37:09 +00:00
Doug Evans
197fa1aa2c * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
(EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
	(EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
	instead of CGEN_INSN_INT.
plus, cgen files: Regenerate.
2009-11-23 04:12:17 +00:00
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