Jeff Law
4b6651c925
* am33.igen: Add some missing instructions.
...
Missed a few last week... Grrr.
1998-07-23 16:31:41 +00:00
Jeff Law
6ae1456eb5
* am33.igen: Autoincrement loads/store fixes.
1998-07-23 16:06:50 +00:00
Jeff Law
0a78550778
* am33.igen: Add most am33 DSP instructions.
1998-07-21 15:50:14 +00:00
Jeff Law
4b987239ea
Fix goof.
1998-07-14 03:59:11 +00:00
Jeff Law
080ee2ba75
* am33.igen: Fix Z bit for remaining addc/subc instructions.
...
Do not sign extend immediate for mov imm,XRn.
More random mul, mac & div fixes.
Remove some unused variables.
Sign extend 24bit displacement in memory addresses.
Whee, more fixes.
1998-07-09 19:41:47 +00:00
Jeff Law
4e86afb85f
* mn10300.igen: Fix Z bit for addc and subc instructions.
...
Minor fixes in multiply/divide patterns.
start-sanitize-am33
* am33.igen: Fix Z bit for addc Rm,Rn and subc Rm,Rn. Various
fixes to 2 register multiply, divide and mac instructions. Set
Z,N correctly for sat16. Sign extend 24 bit immediate for add,
and sub instructions.
* am33.igen: Add remaining non-DSP instructions.
end-sanitize-am33
1998-07-09 19:04:22 +00:00
Jeff Law
1f0ba346eb
* am33.igen: Add remaining non-DSP instructions.
...
Lots of work still remains. PSW handing is probably broken badly and the
mul/mac classes of instructions are probably not handled correctly.
1998-07-09 16:09:24 +00:00
Jeff Law
9c55817e66
* am33.igen (translate_rreg): New function. Use it as appropriate.
1998-07-09 00:24:57 +00:00
Jeff Law
377e53bb6b
* am33.igen: More am33 instructions. Fix "div".
1998-07-08 22:33:35 +00:00
Jeff Law
d2b02ab22d
* mn10300.igen: Add am33 support.
1998-07-06 22:02:02 +00:00
Jeff Law
135431cd7e
* Makefile.in: Use multi-sim to support both a mn10300 and am33
...
simulator.
1998-07-06 21:57:22 +00:00
Jeff Law
3e75ff7efd
* am33.igen: Add many more am33 instructions.
1998-07-06 21:41:06 +00:00
Jeff Law
ee61616c43
Tweak.
1998-07-01 23:15:55 +00:00
Jeff Law
0f7d73858c
* am33.igen: New file with some am33 support.
...
Checking in work-to-date.
1998-07-01 23:13:14 +00:00
Jeff Law
de2adf7070
* mn10300_sim.h (FETCH24): Define.
...
* mn10300_sim.h: Add defines for some registers found on the AM33.
1998-07-01 23:11:59 +00:00
Jeff Law
a6cbaa652a
* mn10300_sim.h: Include bfd.h
...
(struct state): Add more room for processor specific registers.
start-sanitize-am33
(REG_E0): Define.
end-sanitize-am33
1998-06-30 17:28:54 +00:00
Joyce Janczyn
5eb78d70cc
Thu Jun 25 10:12:03 1998 Joyce Janczyn <janczyn@cygnus.com>
...
* dv-mn103tim.c: Include sim-assert.h
* dv-mn103ser.c (do_polling_event): Check for incoming data on
serial line and schedule next polling event.
(read_status_reg): schedule events to check for incoming data on
serial line and issue interrupt if necessary.
1998-06-25 14:17:47 +00:00
Joyce Janczyn
0df90cd8e4
Fri Jun 19 11:59:26 1998 Joyce Janczyn <janczyn@cygnus.com>
...
* interp.c (board): Rename am32 to stdeval1 as this is the name
consistently used to refer to the mn1030002 board.
1998-06-19 16:02:51 +00:00
Joyce Janczyn
f0ce242fcd
Thu June 18 14:37:14 1998 Joyce Janczyn <janczyn@cygnus.com>
...
* interp.c (sim_open): Fix typo in address of EXTMD register
(0x34000280, not 0x3400280).
1998-06-18 18:43:11 +00:00
Jeff Law
7c8a2969e6
* simops.c (syscall): Handle change in opcode # for syscall.
...
* mn10300.igen (syscall): Likewise.
1998-06-18 00:03:00 +00:00
Joyce Janczyn
f14defcc75
Tue June 16 09:36:21 1998 Joyce Janczyn <janczyn@cygnus.com>
...
* dv-mn103int.c (mn103int_finish): Regular interrupts (not NMI or
reset) are not enabled on reset.
1998-06-16 13:43:34 +00:00
Joyce Janczyn
2a62f119fa
Updates to dv-mn103iop.c, dv-mn103ser.c and inter.c
1998-06-14 21:19:53 +00:00
Joyce Janczyn
55a7ce4ea8
Fri June 12 16:24:00 1998 Joyce Janczyn <janczyn@cygnus.com>
...
* dv-mn103iop.c: New file for handling am32 io ports.
* configure.in: Add mn103iop to hw_device list.
* configure: Re-generate.
* interp.c (sim_open): Create io port device.
1998-06-12 20:46:23 +00:00
Joyce Janczyn
199cb74149
Add dv-mn103iop.
1998-06-12 20:15:43 +00:00
Joyce Janczyn
64d4b21972
New file for handling mn1030002 io ports.
1998-06-12 20:07:33 +00:00
Joyce Janczyn
c7dd0ea6bc
Add dv-mn103iop.c to list of files to sanitize out.
1998-06-12 20:05:08 +00:00
Joyce Janczyn
8c2de2aa33
Wed June 10 14:34:00 1998 Joyce Janczyn <janczyn@cygnus.com>
...
* dv-mn103int.c (external_group): Use enumerated types to access
correct group addresses.
* dv-mn103tim.c (do_counter_event): Underflow of cascaded timer
triggers an interrupt on the higher-numbered timer's port.
1998-06-10 18:47:09 +00:00
Joyce Janczyn
3d64946ded
Support for timers for mn103002. Still needs more testing/debugging.
1998-06-08 21:57:42 +00:00
Joyce Janczyn
d38f2372a0
Add dv-mn103tim.c and dv-mn103ser.c
1998-06-08 18:09:40 +00:00
Joyce Janczyn
d3f76d42ac
Add timer and serial devices (mn103tim and mn103ser), support
...
--board=am32 for runtime control of device simulation, and adjust
interrupt settings to support am32 instead of am30.
1998-06-08 17:46:25 +00:00
Joyce Janczyn
7cb5d42660
Skeleton file for mn1030002 serial device implementation.
1998-06-08 17:34:04 +00:00
Joyce Janczyn
5f69de151a
Fix typo.
1998-06-08 17:28:08 +00:00
Joyce Janczyn
7146013910
Fix interrupt settings for mn103002, not mn10300 implementation.
1998-06-08 17:27:10 +00:00
Joyce Janczyn
6adf5185c1
* interp.c: (mn10300_option_handler): New function parses arguments
...
using sim-options.
start-sanitize-am30
* (board): Add --board option for specifying am32.
* (sim_open): Create new timer and serial devices and control
configuration of other am32 devices via board option.
end-sanitize-am30
1998-06-08 17:23:11 +00:00
Joyce Janczyn
7f1e9a13b2
Add new devices: mn103tim and mn103ser.
1998-06-08 17:18:02 +00:00
Andrew Cagney
39e953a722
Split out hw-event code. Clean up interface. Update all users.
1998-05-25 07:37:30 +00:00
Andrew Cagney
f872d0d643
Only enable H/W on some mips targets.
...
Move common hw-obj to Make-common
Pacify GCC
1998-05-22 05:23:04 +00:00
Andrew Cagney
56833aba59
Back out of hw-main _callback -> _descriptor changes
1998-05-22 01:12:06 +00:00
Andrew Cagney
26feb3a83d
Fix sign extension on 32 bit add/sub instructions.
1998-05-21 09:32:07 +00:00
Geoffrey Noer
9d45df1b8c
Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
...
* common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
AM_CYGWIN32 and AM_EXEEXT.
* common/Make-common.in: set EXEEXT, add missing EXEEXTs
to run and install-common rules.
* common/configure: regenerate
And update all subdirectory ChangeLogs and configure files.
1998-04-29 01:44:23 +00:00
Tom Tromey
5da9ce07eb
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* acconfig.h: New file.
* configure.in: Reverted change of Apr 24; use sinclude again.
1998-04-26 22:03:55 +00:00
Tom Tromey
b1df34b9ed
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* configure.in: Don't call sinclude.
1998-04-24 20:39:48 +00:00
Jason Molenda
5569ab1b26
Add sim-main.c to things to keep.
1998-04-21 17:45:28 +00:00
Andrew Cagney
aba672aac5
* mn10300_sim.h: Declare all functions in op_utils.c using INLINE_SIM_MAIN.
...
* op_utils.c: Ditto.
* sim-main.c: New file. Include op_utils.c.
1998-04-14 04:26:04 +00:00
Andrew Cagney
1e23866b9b
o Use new !<field>' and
=<field>' operators in spec of
...
MOV and CMP instructions.
o Enable basic inlining. Diable use of SIM_MAIN_INLINE.
1998-04-14 00:59:30 +00:00
Andrew Cagney
278bda4050
Cleanup INLINE support for simulators using common framework.
...
Make IGEN responsible for co-ordinating inlining of generated files.
By default, aclocal.m4 disabled all inlining.
1998-04-04 12:33:11 +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