Michael Snyder
27ebfdf49b
2003-06-04 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_info): Fix typo in output.
* h8300/compile.c (set_h8300h): Replace 'flag' arguments
with a bfd_machine argument, and decode it inline.
Check for bfd_mach_h8300hn and bfd_mach_h8300sn.
2003-06-05 02:18:01 +00:00
Michael Snyder
e8c1a4e716
2003-06-04 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_info): Fix typo in output.
2003-06-04 18:28:21 +00:00
Michael Snyder
dc5c3759e0
2003-06-03 Michael Snyder <msnyder@redhat.com>
...
* h8300/compile.c: Add h8300sx insns and addressing modes.
* h8300/sim-main.h: Replaces h8300/inst.h.
* h8300/Makefile.in: Tweak to bring in some sim/common stuff.
2003-06-03 21:38:27 +00:00
Michael Snyder
b7f97e9cb4
2003-04-13 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_resume): Implement 'daa' and 'das' instructions.
2003-04-13 17:06:29 +00:00
D.Venkatasubramanian
d1360fb06a
Added Commandline Support.
...
2003-03-20 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (cmdline_location): Added function to
return the location of 8-bit (256 locations) where the
Command Line arguments would be stored.
(decode): Added a TRAP to 0xcc for Commandline
processing using pseudo opcode O_SYS_CMDLINE.
(sim_resume): Added handling of O_SYS_CMDLINE Trap.
(sim_create_inferior): Setting a pointer to
Commandline Args array.
* inst.h: Added a new variable ptr_command_line for
storing pointer to Commandline array.
2003-03-20 06:00:25 +00:00
D.Venkatasubramanian
bf17422685
File I/O Support added.
...
2003-03-14 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (decode): Added code for some more magic traps.
* compile.c (sim_resume): Added support for File I/O system
calls through callback to host_system.
System calls provided support for :
open, read, write, lseek, close, stat, fstat
Only basic support for stat and fstat.
2003-03-14 04:12:01 +00:00
Andrew Cagney
6b4a89357a
Index: arm/ChangeLog
...
2003-02-27 Andrew Cagney <cagney@redhat.com>
* wrapper.c (sim_create_inferior, sim_open): Rename _bfd to bfd.
Index: common/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
* sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
* nrun.c (main): Ditto.
Index: d10v/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: erc32/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: h8300/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: h8500/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: i960/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: m32r/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: m68hc11/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_prepare_for_program, sim_open)
(sim_create_inferior): Rename _bfd to bfd.
Index: mcore/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: mips/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open):
(sim_create_inferior):
Index: mn10200/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: mn10300/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior, sim_open)
(sim_create_inferior): Rename _bfd to bfd.
Index: ppc/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: sh/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd
to bfd.
Index: v850/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: z8k/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* iface.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
2003-02-27 23:26:34 +00:00
Kazu Hirata
ec38ce9947
* compile.c (init_pointers): Abort if wreg never gets initialized.
...
(sim_resume): Fix the handling of exts.w and extu.w.
2003-02-05 23:10:27 +00:00
Kazu Hirata
ad4cda162b
* compile.c (sim_resume): Fix the handling of bxor.
2003-02-01 03:00:14 +00:00
Michael Snyder
837fd61c26
Missed one...
2003-01-16 20:03:30 +00:00
Michael Snyder
a4f27e3e0a
2003-01-16 Michael Snyder <msnyder@redhat.com>
...
* compile.c: Change K&R function definitions to ISO.
(fetch): Make static, and eliminate unused parameter 'n'.
2003-01-16 19:54:35 +00:00
Kazu Hirata
d0fe2f7e74
* compile.c: Fix formatting.
...
* inst.h: Likewise.
2002-12-26 05:44:46 +00:00
Andrey Volkov
a64bfde32f
Add dependences to Makefile.in and include sim-h8300 in compile.c
2002-07-29 17:01:57 +00:00
Andrew Cagney
3c25f8c7b0
Move include/callback.h and include/remote-sim.h to include/gdb/.
...
Update accordingly.
2002-06-09 15:45:54 +00:00
Kazu Hirata
d13351445b
* compile.c: Fix formatting.
2002-05-19 12:52:54 +00:00
Kazu Hirata
c3f4437ee1
* compile.c: Fix formatting.
2002-05-18 11:40:19 +00:00
Andrey Volkov
6147b1f62b
* compile.c: Add absented opcodes: LDC, STC, EEPMOV, TAS.
2002-05-17 19:22:14 +00:00
Andrey Volkov
fc97460264
h8300: Add support of EXR register
2002-05-17 19:19:24 +00:00
Andrey Volkov
a8cdafbd4e
* h8300s now new target, not alias of h8300h
2002-05-17 19:09:13 +00:00
Andrey Volkov
f6225c9615
*compile.c: Add additional CCR flags (I,UI,H,U)
2002-05-17 18:55:13 +00:00
Andrey Volkov
3b02cf9281
* compile.c: Change literal regnumbers to REGNUMS.
2002-05-17 18:47:14 +00:00
Kazu Hirata
de9b1892f5
* compile.c: Fix formatting.
2001-12-20 17:36:23 +00:00
Kazu Hirata
2ea716f649
* compile.c: Fix comment typos.
2001-12-20 16:47:52 +00:00
Kazu Hirata
6d02850247
2000-08-10 Kazu Hirata <kazu@hxi.com>
...
* compile.c (decode): Clean up the code.
2000-08-11 02:03:02 +00:00
Andrew Cagney
0a17cd5944
* compile.c (decode): Distinguish inc/dec.[wl] and adds/subs
...
correctly.
2000-07-27 09:39:50 +00:00
Frank Ch. Eigler
97ee9e5aa9
* build fix
...
2000-06-20 Frank Ch. Eigler <fche@redhat.com>
* compile.c: Don't include "wait.h".
(sim_resume): Use local SIM_WIFEXITED and SIM_WIFSIGNALED macros
instead of WIF* from host.
2000-06-20 21:12:33 +00:00
Frank Ch. Eigler
98ecb0a78b
* "Dont" -> "Don't"
...
2000-06-13 Frank Ch. Eigler <fche@redhat.com>
* compile.c, writecode.c: Correct typo.
2000-06-13 20:32:01 +00:00
Jeff Law
0ef9643e5e
2000-06-13 Kazu Hirata <kazu@hxi.com>
...
* compile.c: Fix formatting.
2000-06-13 19:54:56 +00:00
Stan Shebs
7a292a7adf
import gdb-19990422 snapshot
1999-04-26 18:34:20 +00:00
Stan Shebs
c906108c21
Initial creation of sourceware repository
1999-04-16 01:35:26 +00:00
Stan Shebs
071ea11e85
Initial creation of sourceware repository
1999-04-16 01:34:07 +00:00
Andrew Cagney
9e03a68f13
Add LMA_P and DO_WRITE arguments to sim/common/sim-load.c:sim_load_file().
...
Update all simulators.
Clarify behavour of sim_load in remote-sim.h
1997-10-22 05:26:27 +00:00
Andrew Cagney
fafce69ab1
Add ABFD argument to sim_create_inferior. Document.
...
Add file sim-hload.c - generic load for hardware only simulators.
Review each simulators sim_open, sim_load, sim_create_inferior so that
they more closely match required behavour.
1997-08-27 04:44:41 +00:00
Andrew Cagney
7230ff0faa
Flush defunct sim_kill.
1997-08-26 02:05:18 +00:00
Andrew Cagney
247fccdeb5
Add ABFD argument to sim_open call. Pass through to sim_config so
...
that image properties such as endianness can be checked.
More strongly document the expected behavour of each of the sim_*
interfaces.
Add default endian argument to simulator config macro
SIM_AC_OPTION_ENDIAN. Use in sim_config.
1997-08-25 23:14:25 +00:00
David Edelsohn
463372706f
* Makefile.in (SIM_OBJS): Add sim-load.o.
...
* compile.c (sim_kind, myname): New static locals.
(sim_open): Set sim_kind, myname.
(sim_load): Return SIM_RC. New arg abfd. Update test for h8300h.
Call sim_load_file to load file into simulator. Set start address
from bfd.
(sim_create_inferior): Return SIM_RC. Delete arg start_address.
1997-04-17 10:14:28 +00:00
Jeff Law
9745c59321
* compile.c (sim_resume): Fix all rotate-by-2-bits insns.
1996-07-10 04:15:17 +00:00
Jeff Law
25b344a4a2
No longer need to sanitize away h8s stuff.
1996-07-05 18:59:31 +00:00
Jeff Law
7647e0dd79
* run.c (main): Don't "load" sections which don't have
...
SEC_LOAD set.
* compile.c (sim_resume, case "O_NOT"): Use ONOT instead
of OSHIFTS.
(ONOT): Define.
(sim_resume, shift/rotate cases): Add support for shift/rotate
by two bits.
(OSHIFTS): Corresponding changes.
Handling more H8/S ops.
1996-07-03 05:10:47 +00:00
Jeff Law
171f4664be
* compile.c (sim_resume): Handle "ldm.l" and "stm.l".
...
HMSE H8/S.
1996-07-02 07:37:50 +00:00
Jeff Law
7e1e013fd9
* compile.c (sim_resume): Correctly handle divu.
...
More bugfixing. HMSE
1996-05-23 04:25:43 +00:00
Jeff Law
132fdcb974
* compile.c (sim_load): Re-allocate memory for the simulator
...
here.
HMSE.
1996-04-12 22:42:03 +00:00
Jeff Law
9b1271617b
* compile.c (sim_resume): Fix and simplify overflow and carry
...
handling for 32bit ALU insns.
1996-04-12 15:38:08 +00:00
Jeff Law
50d45d1b2f
* compile.c (sim_resume): Fix overflow checks for ALU insns.
...
So that int-compare.c passes.
1996-04-09 05:57:15 +00:00
Jeff Law
e24146ec95
* compile.c (decode): Use "bit" to hold L_3 immediates instead
...
of holding them in "abs". Handle ABS8MEM memory references aka
8-bit area. Replace ABSMOV references with ABS8MEM.
So we've got a chance of simulating something like btst #0,@40:8 correctly.
hmse.
1996-04-06 00:21:35 +00:00
David Edelsohn
5d06fa80b2
(sim_resume, shift insns): Fix setting of overflow flag for shal.
1996-03-11 23:25:53 +00:00
David Edelsohn
4dfb4ffcd1
* compile.c: #include "wait.h".
...
(sim_resume, sleep insn): Check program exit status in r0.
1996-03-11 19:30:53 +00:00
David Edelsohn
e656ecf90c
* compile.c (sim_resume): Watch for calls to abort.
...
* run.c: #include <signal.h>.
(main): Abort if program got SIGILL.
1996-03-11 17:54:45 +00:00
Steve Chamberlain
7478904c77
* compile.c (get_now): Don't do if win32.
...
(sim_resume): Poll in win32 too.
1995-06-20 23:21:23 +00:00
David Edelsohn
0693d363df
* compile.c (decode): Fix typo (16 bit branches).
...
(*): Some white space clean up.
1994-05-14 01:36:52 +00:00