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