James Lemke
1ff39ecb10
* sky-dma.c: Clarify text in warning msg.
...
* interp.c: Add global option "float-type".
* sky-vu.h: Add SIM_DESC sd; to VectorUnitState for accessing
global options.
1998-03-31 21:46:31 +00:00
Frank Ch. Eigler
6ed00b0607
* Continuing sky R5900 / COP2 work. Added extra sanitize tags to hide
...
128-bit MIPS part.
[ChangeLog]
Mon Mar 30 18:41:43 1998 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (decode_coproc): Continuing COP2 work.
(cop_[ls]q): Hide 128-bit COP2 more.
* sim-main.h (COP_[LS]Q): Hide 128-bit COP2 more.
[ChangeLog.sky]
Mon Mar 30 18:44:15 1998 Frank Ch. Eigler <fche@cygnus.com>
* sky-libvpe.c: Code too wide - ran indent on SCEI code.
* sky-vu.h (vu0_busy*, vu0_macro*): New entry points for COP2
interface.
* sky-vu.c (vu0_busy*, vu0_macro*): Stub functions for above.
1998-03-30 23:56:52 +00:00
Gavin Romig-Koch
34f51d8723
* configure.in (mipstx39*-*-*): Use gencode simulator rather
...
than igen one.
* configure : Rebuild.
1998-03-30 19:54:15 +00:00
Andrew Cagney
a1e4dc0db4
* run.c (main): Handle all alternatives of enum sim_stop.
...
(main): Delete unused `asection *s'.
1998-03-30 13:30:10 +00:00
Frank Ch. Eigler
7dd4a46650
* Oops, added #ifdef TARGET_SKY around R5900 COP2 implementation skeleton.
1998-03-29 22:53:31 +00:00
Frank Ch. Eigler
1d33e94615
* Updated test cases to confirm PKE behavior according to new SCEI specs.
1998-03-28 00:36:59 +00:00
Frank Ch. Eigler
b59e0b6815
* Modified sky PKE behavior according to new SCEI specs.
1998-03-28 00:35:43 +00:00
Frank Ch. Eigler
15232df4a3
* Inserted skeleton of R5900 COP2 simulation. Merged old vu[01].[ch] code
...
into single PKE-style vu.[ch].
[ChangeLog]
Fri Mar 27 16:19:29 1998 Frank Ch. Eigler <fche@cygnus.com>
start-sanitize-sky
* Makefile.in (SIM_SKY_OBJS): Replaced sky-vu[01].o with sky-vu.o.
* interp.c (sim_{load,store}_register): Use new vu[01]_device
static to access VU registers.
(decode_coproc): Added skeleton of sky COP2 (VU) instruction
decoding. Work in progress.
* mips.igen (LDCzz, SDCzz): Removed *5900 case for this
overlapping/redundant bit pattern.
(LQC2, SQC2): Added *5900 COP2 instruction skeleta. Work in
progress.
* sim-main.h (status_CU[012]): Added COP[n]-enabled flags for
status register.
end-sanitize-sky
* interp.c (cop_lq, cop_sq): New functions for future 128-bit
access to coprocessor registers.
* sim-main.h (COP_LQ, COP_SQ): New macro front-ends for above.
[ChangeLog.sky]
* sky-engine.c (engine_run): Adapted from vu[01] -> vu merge.
* sky-hardware.c (register_devices): Ditto
* sky-pke.c (pke_fifo_*): Made these functions private again, now
that the GPUIF code does not use them.
* sky-pke.h (pke_fifo_*): Removed newly private declarations.
* sky-vu.c (*): Major rework: merge of old sky-vu0.c and
sky-vu1.c. Management of two VU devices parallels two PKEs.
Work in progress.
* sky-vu.h (*): Other half of merge.
(vu_device): New struct, parallel to pke_device.
1998-03-27 22:00:56 +00:00
Patrick Macdonald
76969284c3
sky-gs.c: initial drop of GS control registers (outstanding questions)
...
sky-gs.h: initial drop of GS control registers
Makefile.in: added sky-gs.o to sanitized list
sky-gpuif.c (gif_io_write_buffer): correct memset length error, renamed
trace file for gif
1998-03-27 18:36:33 +00:00
Ron Unrau
d44859a2d8
* sky-vu.c: new file to read/write VU registers
...
* Makefile.in .Sanitize: add sky-vu.c
* sky-vu.h: define registers as enum, export read/write routines
* sky-vu[01].[ch]: use register read/write routines in sky-vu.c
* interp.c: use register read/write routines in sky-vu.c
1998-03-27 14:44:39 +00:00
Andrew Cagney
d8f5304972
Do top level sim-hw module for device tree.
...
Add to aclocal.m4, update all configure files.
1998-03-27 11:42:16 +00:00
Andrew Cagney
bd85beb90c
Clean up m32rx sanitization
1998-03-27 11:33:16 +00:00
Andrew Cagney
82ea14fd9d
Define CPU_INDEX. Initialize.
...
For mips_options, iterate over MAX_NR_PROCESSORS when setting options.
1998-03-27 04:25:45 +00:00
Andrew Cagney
6d133cc9df
Add sanitize-am30 markers. Keep details of AM30 implementation of
...
mn10300 out of the public eye.
Do something with top-level cgen directory.
1998-03-27 03:10:53 +00:00
Andrew Cagney
1b756ba6d5
* dv-mn103cpu.c (deliver_mn103cpu_interrupt): Stop loss of succeeding
...
interrupts, clear pending_handler when the handler isn't re-scheduled.
1998-03-26 14:00:18 +00:00
Stu Grossman
abf6ba256a
* Makefile.in (tmp-igen): Prefix all usage of move-if-change
...
script with $(SHELL) to make NT native builds happy.
* configure: Regenerate because of change to ../common/aclocal.m4.
1998-03-26 10:18:35 +00:00
Andrew Cagney
51ccd82f7f
* configure.in: Make --enable-sim-common the default.
...
* configure: Re-generate.
* sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction
address into Sate.regs[REG_PC] instead of common struct.
1998-03-26 01:13:38 +00:00
Andrew Cagney
98f1f62cb4
* dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was 0x2f
...
needs to be 0x3f.
1998-03-25 23:48:14 +00:00
Joyce Janczyn
d1607ed316
* mn10300.igen (cmp imm8,An): Do not sign extend imm8 value.
1998-03-25 22:43:19 +00:00
Andrew Cagney
04cdafa7a4
* hw-tree.c (hw_tree_find_property): Return NULL when device is not found.
...
(hw_tree_find_*_property): Clean up error message when property is not found.
* dv-pal.c (hw_pal_io_read_buffer): Check the smp property is present before
looking for it.
1998-03-25 22:37:33 +00:00
Ian Carmichael
8d0bd9889c
* Added HAVE_FPU_CONTROL_H and HAVE___SETFPUCW to fix non-linux builds.
1998-03-25 21:54:06 +00:00
Joyce Janczyn
52ef605e6d
* simops.c (OP_F0FD): Initialise variable 'sp' for rti instruction.
1998-03-25 17:10:01 +00:00
Andrew Cagney
c357e16ac8
* dv-mn103int.c (decode_group): A group register every 4 bytes not 8.
...
(write_icr): Rewrite equation updating request field.
(read_iagr): Fix check that interrupt is still pending.
1998-03-25 14:52:44 +00:00
Andrew Cagney
8077fed51e
* interp.c (sim_open): Tidy up device creation.
...
* dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero value.
(mn103int_io_read_buffer): Convert absolute address to register block offsets.
(read_icr, write_icr): Convert block offset into group offset.
1998-03-25 05:37:42 +00:00
Andrew Cagney
6100784a60
* interp.c (sim_open): Create second 1mb memory region at 0x40000000.
...
(sim_open): Create a device tree.
(sim-hw.h): Include.
(do_interrupt): Delete, needs to use dv-mn103cpu.c
* dv-mn103int.c, dv-mn103cpu.c: New files.
1998-03-25 04:15:38 +00:00
Andrew Cagney
8388c9a564
* mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM): Define.
...
(SP): Define.
1998-03-25 04:07:31 +00:00
Andrew Cagney
05d7918e53
* dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
...
hw_pal_timer, hw_pal_timer_value): Define.
(hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
(do_counter_event, do_counter_read, do_counter_value,
do_counter_write): new functions.
* hw-tree.c (hw_printf): Send tree dump to stderr, same as other
trace output.
* hw-base.c (hw_create): Stop searching for a device when one is
found.
1998-03-25 03:44:37 +00:00
Andrew Cagney
d89fa2d80a
Re-do --enable-sim-hardware so that each simulator can specify the devices
...
it wants built.
Generate hw-config.h.
1998-03-25 01:41:33 +00:00
Andrew Cagney
e855e57637
Pacify GCC.
1998-03-25 00:08:52 +00:00
Andrew Cagney
612a649eee
* interp.c (Max, Min): Comment out functions. Not yet used.
...
* vr4320.igen (DCLZ): Pacify GCC, 64 bit arg, int format.
1998-03-24 23:16:57 +00:00
Ian Carmichael
9fa5e700c0
* Several fixes and performance enhancements from my 2 weeks working in Japan.
1998-03-24 22:23:33 +00:00
Andrew Cagney
d797f46f3c
* gen-engine.c (print_run_body): Re-extract the CIA after
...
processing any events. Events may not restart the simulator.
1998-03-24 21:30:00 +00:00
Joyce Janczyn
8dcf23d28b
Add new files: mn10300.igen, mn10300.dc, sim-main.h, op_utils.c
1998-03-24 21:23:29 +00:00
Joyce Janczyn
55045e7b32
Port mn10300 simulator to build with the common simulator framework
...
under the configure option --enable-sim-common.
1998-03-24 20:30:03 +00:00
Joyce Janczyn
6274d39b87
Add code to support building mn10300 simulator with the common simulator
...
framework.
1998-03-24 20:26:06 +00:00
Joyce Janczyn
5abdc30591
Add support for building simulator based on common simulator framework.
...
Separate out files which get compiled depending on --enable-sim-common
configuration.
1998-03-24 20:19:55 +00:00
Joyce Janczyn
4f262a370d
Add ability to configure mn10300 built with common simulator code base.
...
Use --enable-sim-common to build this way; default configure has not
changed.
1998-03-24 20:16:25 +00:00
Joyce Janczyn
13e0e254dc
New {load/store}_{byte/half/word} macros for simulator built with
...
common framework.
1998-03-24 20:11:44 +00:00
Joyce Janczyn
0543ebbb26
Header file required by igen generated files.
1998-03-24 20:08:00 +00:00
Joyce Janczyn
7986ea1323
IGEN input files for mn10300 simulator.
1998-03-24 20:07:22 +00:00
Stu Grossman
753ad2d3c5
* Makefile.in: Get SHELL from configure.
...
* configure: Regenerate with autoconf 2.12.1 to fix shell issues for
NT native builds.
1998-03-24 17:50:09 +00:00
Stu Grossman
63330b2e2e
* Make-common.in: Get SHELL from configure.
...
* (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
move-if-change. Fixes NT native build problem.
* Makefile.in (nltvals.def): Use $(SHELL) when invoking
move-if-change. Fixes NT native build problem.
* configure: Regenerate with autoconf 2.12.1 to fix shell issues for
NT native builds.
1998-03-24 17:48:58 +00:00
Joyce Janczyn
9bd4b4618d
Build IGEN with the mn10300 simulator.
1998-03-24 16:18:58 +00:00
Andrew Cagney
7c130f2971
New function hw_strdup() - use memory tied to hw device.
...
Tidy up hw-properties error messages.
New device dv-glue.c (copied from ../ppc/hw_glue.)
Only attach a port after a devices initialization has finished.
1998-03-22 22:33:34 +00:00
Andrew Cagney
b2846e630d
Fix typos: Setting trace in wrong function, ME vs HW.
1998-03-22 05:51:57 +00:00
Andrew Cagney
775b309a4e
Copy function ../ppc/device_table.c:generic_device_init_address() to
...
hw-base.c:do_hw_attach_regs(). Use in dv-pal.
Add hw_tree_delete to hw-tree.c.
1998-03-22 05:49:30 +00:00
Andrew Cagney
937a4bdc12
Add function hw_trace() and macro HW_TRACE - provides trace support
...
for HW devices.
1998-03-22 05:33:41 +00:00
Andrew Cagney
e5f0d498af
Add hw_{malloc,zalloc,free} functions to hw_device. Any memory
...
allocated using these functions is reclaimed when the corresponding
device is deleted.
1998-03-22 05:06:27 +00:00
Andrew Cagney
b1e9223cee
Replace *attach_address() arguments SPACEMASK:ADDR with SPACE:ADDR.
...
Add notes to hw-device.h that discuss the interpretation of SPACE:ADDR
on a BUS.
1998-03-22 04:18:52 +00:00
James Lemke
fc609c6c69
Added DMAC unit test cases.
1998-03-20 22:51:39 +00:00