Commit Graph

840 Commits

Author SHA1 Message Date
Nick Clifton
810d9833fb Add prototypes for fixup swapping functions.
Change prototype of cgen_asm_finish_insn to return a char *
1998-01-23 01:57:11 +00:00
Doug Evans
3e22d82025 checkpoint 1998-01-21 00:50:24 +00:00
Doug Evans
d88f6e576f checkpoint 1998-01-20 23:05:37 +00:00
Doug Evans
97a6824dd3 checkpoint 1998-01-20 20:24:40 +00:00
Doug Evans
8ea2f96f9c checkpoint 1998-01-20 18:07:07 +00:00
Nick Clifton
b61df0261f Formatting changes to improve readability. 1998-01-15 01:24:03 +00:00
Doug Evans
3b542e9430 snapshot 1998-01-14 20:08:46 +00:00
Doug Evans
19d45995ed * cgen.h (*): Clean up pass over `struct foo' usage.
(CGEN_ATTR): Make unsigned char.
	(CGEN_ATTR_TYPE): Update.
	(CGEN_ATTR_{ENTRY,TABLE}): New types.
	(cgen_base): Move member `attrs' to cgen_insn.
	(CGEN_KEYWORD): New member `null_entry'.
	(CGEN_{SYNTAX,FORMAT}): New types.
	(cgen_insn): Format and syntax separated from each other.
1998-01-12 20:58:56 +00:00
Doug Evans
127312193d (TXVU_MASK_VFREG): Renamed from TXVU_MASK_REG. 1998-01-05 15:52:15 +00:00
Doug Evans
70e4ceaccb opcode header file for the txvu 1998-01-05 13:33:54 +00:00
Doug Evans
1eb4e37728 * dis-asm.h (print_insn_txvu): Declare. 1997-12-22 17:24:00 +00:00
Doug Evans
e535f07bc1 * common.h (EM_CYGNUS_TXVU): New macro. 1997-12-22 14:48:08 +00:00
Doug Evans
cc8b3b770f * txvu.h: New file. 1997-12-22 13:57:57 +00:00
Nick Clifton
3da7442d16 Added m32rx sanitization 1997-12-16 14:28:24 +00:00
Nick Clifton
a5fdb81613 Add support for m32rx processor. 1997-12-15 23:10:11 +00:00
Jeff Law
bfdbb113ec Move 'P' and PERFREG stuff outside of the vr5400 sanitization markers. 1997-12-15 19:38:45 +00:00
Nick Clifton
67a46fe94a Renamed v850eq -> v850ea 1997-12-12 18:53:24 +00:00
Nick Clifton
ea16981a29 Add new disassmebler function prototype: disasm_symaddr()
Add new compile time flag: COFFARM
1997-12-02 18:23:55 +00:00
Joern Rennecke
6fdb746d44 bfd:
* coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry.
        (get_symbol_value): Handle R_SH_SWITCH8.
        (sh_relax_delete_bytes): Likewise.

include:
        * coff/sh.h (R_SH_SWITCH8): New.

gas:
        * config/tc-sh.c (SWITCH_TABLE_CONS): Handle (fix)->fx_size == 1.
        (SWITCH_TABLE): Handle BFD_RELOC_8.
        (md_apply_fix): #ifndef BFD_ASSEMBLER code: Handle fixP->fx_size == 1.
        (coff_reloc_map): Add BFD_RELOC_8_PCREL entry.
        (sh_coff_reloc_mangle): SWITCH_TABLE case: Handle BFD_RELOC_8.
PR 14155
1997-12-01 20:45:03 +00:00
Doug Evans
1e92854b08 * callback.h (CB_SYSCALL): Comment out arg names in prototypes. 1997-12-01 19:30:53 +00:00
Michael Meissner
be88ccfcd4 Use names for all prototype arguments 1997-11-26 21:48:58 +00:00
Doug Evans
881a60116f * callback.h (CB_SYSCALL): Change byte count arguments to
{read,write}_mem to `int'.  New member `magic'.
	(CB_SYSCALL_MAGIC,CB_SYSCALL_INIT): New macros.
1997-11-26 19:49:13 +00:00
Doug Evans
7de19d317a * callback.h (struct stat): Move forward decl up.
(host_callback): Pass stat struct pointer to stat,fstat.
	(CB_SYS_nnn): Reorganize.
	(CB_SYSCALL): New members p1,p2.
	(cb_host_to_target_stat): Delete fourth arg.
1997-11-25 09:39:56 +00:00
Andrew Cagney
aaa11abe42 Clarify meaning of sim_signalled's SIGRC argument. Document that this
isn't possible in sim-reason.c and just return the target SIGRC
instead.

For simulators that rely on sim-reason.c, replace SIG* with SIM_SIG*.

Hack nrun.c so that when it is executed (ARGV[0]) as `step' instead
of `run' it single steps the simulator.  Allows testing of single step
without full GDB.
1997-11-22 12:52:44 +00:00
Ian Lance Taylor
3d901aff01 move include entries from ../ChangeLog 1997-11-20 15:52:38 +00:00
Joern Rennecke
fe00b2ed0f * include/opcode/d10v.h (OPERAND_FLAG): Split into:
(OPERAND_FFLAG, OPERAND_CFLAG) .
	* opcodes/d10v-opc.c (OPERAND_FLAG): Split into:
	(OPERAND_FFLAG, OPERAND_CFLAG) .
	(FSRC): Split into:
	(FFSRC, CFSRC).
	* gas/config/tc-d10v.c (parallel_ok, find_opcode):
	Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
Fix for PR 13985.
1997-11-18 19:41:44 +00:00
Doug Evans
8d5306e718 * callback.h (CB_TARGET_DEFS_MAP): Renamed from target_defs_map.
(host_callback): Add stat, fstat, syscall_map, errno_map, open_map,
	signal_map, stat_map.
	(errn_map,open_map): Renamed to cb_init_foo_map.
	(cb_host_to_target_errno,cb_target_to_host_open): Renamed from
	host_to_target_errno,target_to_host_open.
	(cb_read_target_syscall_maps): Add prototype.
	(cb_target_to_host_syscall): Likewise.
	(cb_host_to_target_stat): Likewise.
	(cb_syscall): Likewise.
	(CB_SYS_{exit,open,close,read,write,lseek,unlink,getpid,kill,fstat,
	argvlen,argv,chdir,stat,chmod,utime,time}): Define.
	(CB_SYSCALL): New type.
	(CB_RC): New enum.
1997-11-17 22:12:52 +00:00
Rob Savoye
5805612890 * include/libiberty.h: Add extern "C" { so it can be used with C++
progrms.
	* include/remote-sim.h:  Add extern "C" { so it can be used with C++
	programs.
1997-11-07 17:49:34 +00:00
Gavin Romig-Koch
c7227bdcf7 * include/opcode/mips.h (INSN_4900): Added. 1997-10-29 22:44:29 +00:00
Ken Raeburn
336ffb472f add a couple more notes to comment 1997-10-28 04:18:25 +00:00
Ken Raeburn
b410ea2b2b checkpoint vr5400 additions 1997-10-28 03:33:38 +00:00
Richard Henderson
82785278c1 * sparc.h (DT_SPARC_REGISTER): New macro.
(DT_SPARC_PLTFMT): In support of old sparc64-linux .plts; will
        go away soon.
1997-10-23 07:40:05 +00:00
Richard Henderson
206f6432ed * sparc.h: Add '_' and '/' for v9a asr's.
Patch from David Miller <davem@vger.rutgers.edu>
1997-10-23 00:26:08 +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
Nick Clifton
ecf4429f18 Added new field to disassemble_info structure to provide a function which
determines if a symbol can be found at a given address.
1997-10-14 23:05:34 +00:00
Jeff Law
78fa3a1408 * h8300.h: Bit ops with absolute addresses not in the 8 bit
area are not available in the base model (H8/300).
pr 13467.
1997-10-14 19:19:15 +00:00
Andrew Cagney
5ccb90201f remote-sim.h: Clarify sim_read, sim_write MEM argument. 1997-10-14 09:33:18 +00:00
Stu Grossman
94dbc1213b * remote-sim.h (SIM_RC): Add a bunch of new return codes for
breakpoint stuff.
	* Add functions to tell the simulator to set/clear/enable/disable
	intrinsic breakpoints.
1997-09-25 01:05:31 +00:00
Ian Lance Taylor
9d696aa346 fix copyright 1997-09-24 23:01:48 +00:00
Ian Lance Taylor
5aee65fcfa * m68k.h: Document q and v operand specifiers. 1997-09-24 23:00:42 +00:00
Nick Clifton
ae6ecba5b4 Fixed sanitization bugs. 1997-09-21 17:44:16 +00:00
Nick Clifton
6c84a1a2ab Removed v850eq sanitization. 1997-09-20 23:07:04 +00:00
Felix Lee
3e906c081a sanitization fixes. typoes, missing fences, "start" instead of "end", etc. 1997-09-18 06:03:52 +00:00
Felix Lee
e1625ed217 v850 files that weren't being removed if !keep-v850 1997-09-18 01:33:24 +00:00
Nick Clifton
03d5329244 Added new relocations to handle the call table. 1997-09-17 23:39:04 +00:00
Nick Clifton
9f6badd09d Add new reloc, R_V850_TDA_16_16_OFFSET. 1997-09-16 21:13:48 +00:00
Nick Clifton
922971957e Added new field to v850_opcode structure. 1997-09-16 01:27:48 +00:00
Ken Raeburn
00c6b5b387 merge from d30v-970225-branch 1997-09-15 16:38:29 +00:00
David Edelsohn
3e4cee6232 * cgen.h: Move assembler interface section
up so cgen_parse_operand_result is defined for cgen_parse_address.
	(cgen_parse_address): Update prototype.
1997-09-08 21:06:31 +00:00
Richard Henderson
db1c83baa1 * mips.h: Correct typo in comment. 1997-09-03 22:47:44 +00:00
Nick Clifton
84c0ccc99e Removed v850 sanitization 1997-09-03 21:55:23 +00:00
Nick Clifton
a8211eb8d7 Removed v850 sanitization. 1997-09-03 21:51:18 +00:00
Nick Clifton
3b52112dfd Removed R_V850_16_PCREL. 1997-09-03 18:23:36 +00:00
Nick Clifton
8ba8bbaec7 Replaced magic numbers with bits in e_flags field. 1997-09-03 00:40:05 +00:00
Nick Clifton
1f5595a6f0 Removed the V850_OPREAND_ADJUST_SHORT_MEMORY flag as it no longer used. 1997-09-02 22:31:04 +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
Ian Lance Taylor
2af7b4a3fc * i386.h (two_byte_segment_defaults): Correct base register 5 in
modes 1 and 2 to be ss rather than ds.  From Gabriel Paubert
	<paubert@iram.es>.
1997-08-26 17:12:31 +00:00
Ian Lance Taylor
19f080ab4e * i386.h: Set ud2 to 0x0f0b. From Gabriel Paubert
<paubert@iram.es>.
1997-08-26 16:40:41 +00:00
Ian Lance Taylor
9df6ca2f46 * i386.h: Comment fixes for ficom[p]?{s,l} from Gabriel Paubert
<paubert@iram.es>.
1997-08-26 16:36:07 +00:00
Ian Lance Taylor
051a96ff10 tipo 1997-08-26 16:25:06 +00:00
Ian Lance Taylor
c2367582a0 * i386.h (JUMP_ON_CX_ZERO): Uncomment (define again).
(JUMP_ON_EXC_ZERO): Remove commented out macro.
1997-08-26 16:22:36 +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
Nick Clifton
01aba63653 Added magic numbers for V850E and V850EQ. 1997-08-25 23:07:18 +00:00
Nick Clifton
b9792954bb Added new flag: V850_NOT_R0 to indicate that r0 is not a valid register for
this operand.
1997-08-22 17:36:15 +00:00
Ian Lance Taylor
d1a6b493b8 fix v850 sanitization 1997-08-15 15:50:13 +00:00
David Edelsohn
427a9cc709 * arc.h (enum reloc): Move here from elf32-arc.c. 1997-08-15 12:10:43 +00:00
David Edelsohn
bf008f9852 Undo last change, add comment saying why I think I was wrong. 1997-08-14 20:07:56 +00:00
David Edelsohn
a5120a7e53 * callback.h (cb_printf, cb_eprintf): Declare. 1997-08-14 19:55:37 +00:00
Nick Clifton
a0a6db4bfa Tidied up sanitization. 1997-08-14 19:45:14 +00:00
Nick Clifton
190b78bbe1 Added support for new v850e and v850eq instructions. 1997-08-14 01:49:02 +00:00
Ian Lance Taylor
abb742acba keep arc.h 1997-08-10 18:31:04 +00:00
David Edelsohn
414f5cf3b2 * arc.h: New file.
* common.h (EM_CYGNUS_ARC): Define.
Plus remove arc sanitization.
1997-08-09 00:07:14 +00:00
David Edelsohn
737ff150cf * arc.h: New file.
Plus remove arc sanitization.
1997-08-08 23:58:57 +00:00
David Edelsohn
81241e05b7 * dis-asm.h (arc_get_disassembler): Declare.
Plus remove arc sanitization.
1997-08-08 23:47:56 +00:00
Ian Lance Taylor
35743787d5 Tue Jul 22 18:18:58 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* go32exe.h: New file.
1997-07-22 22:19:32 +00:00
Ian Lance Taylor
1ca82cc0dc * libiberty.h (PEXECUTE_*): Define.
(pexecute, pwait): Declare.
1997-07-22 22:00:09 +00:00
Jeff Law
71545ee538 * mips.h (FP_S, FP_D): Define. Bitmasks indicating if an insn
uses single or double precision floating point resources.
        (INSN_NO_ISA, INSN_ISA1): Define.
        (cpu specific INSN macros): Tweak into bitmasks outside the range
        of INSN_ISA field.
toshiba_5900 stuff
1997-07-11 16:12:56 +00:00
Fred Fish
c8c854bd3f > * tic80.h (TIC80_TARGET_ID): Add define.
>       * internal.h (struct internal_filehdr): Add f_target_id field.
1997-07-08 23:43:17 +00:00
Ian Lance Taylor
d4dbc0c341 Mon Jun 16 14:10:00 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* i386.h: Fix pand opcode.
1997-06-16 18:11:38 +00:00
Andrew Cagney
aa02a0b0f2 sim_kill() isn't used. 1997-06-06 03:02:51 +00:00
Fred Fish
61a5c2fdcf * internal.h (C_UEXT, C_STATLAB, C_EXTLAB, C_SYSTEM):
New storage classes for TIc80.
PR 12236
1997-05-24 15:28:55 +00:00
Andrew Cagney
1fa0cc2dfc Restrict simulator commands to an enabled simulator. 1997-05-22 04:59:25 +00:00
Andrew Cagney
50a2a69182 Watchpoint interface. 1997-05-21 06:54:13 +00:00
Andrew Cagney
ff82f21409 Part II of adding callback argument to sim_open(). Update all the
other simulators; remove SIM_DESC from depreciated function
sim_set_callbacks().
1997-05-20 01:57:43 +00:00
Andrew Cagney
24aa2b57af Depreciate sim_set_callbacks() function. Set simulator callbacks
during sim_open().
1997-05-20 00:05:27 +00:00
Andrew Cagney
2e61a3ad9c Graft sim/common event and other code onto the mips simulator. 1997-05-19 13:30:30 +00:00
Mark Alexander
2ce0e027f4 * obstack.h (obstack_specify_allocation_with_arg, obstack_chunkfun,
obstack_freefun): Eliminate compile warnings in gdb.
1997-05-15 08:30:04 +00:00
Nick Clifton
46686c7839 Added support for storing ARM Procedure Calling Standard variant, and ARM
architecture variant in the BFD and COFF structures.  This goes towards
fixing PRs 11709 and 11326 and will integrate with future updates to LD and
GCC.
1997-05-14 17:00:43 +00:00
Ian Lance Taylor
3abaf93062 * i386.h: Add MMX instructions. 1997-05-05 21:16:46 +00:00
Ian Lance Taylor
654b084539 Mon May 5 12:45:19 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* i386.h: Remove W modifier from conditional move instructions.
1997-05-05 16:46:18 +00:00
Andrew Cagney
8517f62b16 Ref gdb/11763 - can't stop a running simulator:
o	Provide poll_quit callback to simulators
		so that they can poll for SIGINT on
		clueless OS's.

	o	Add sim_stop to simulators so that clients
		can request a halt (eg gdbtk's STOP button)
		Works for PPC!

	o	Re-arange remote-sim.c so that the
		hard work is moved from gdbsim_resume()
		to gdbsim_wait() (where it should be).
1997-04-18 12:24:52 +00:00
David Edelsohn
09e348731e Tweak comment. 1997-04-17 13:46:50 +00:00
David Edelsohn
a1cb1f4b9c * remote-sim.h (struct _bfd): Declare.
(sim_load): Return SIM_RC.  New arg `abfd'.
	(sim_create_inferior): Return SIM_RC.  Delete arg `start_address'.
1997-04-17 09:19:45 +00:00
Andrew Cagney
87e43259f1 Cleanups to compile under FreeBSD 1997-04-17 06:05:19 +00:00
David Edelsohn
9b64639572 * cgen.h (<cpu>_cgen_assemble_insn): New arg for errmsg.
(cgen_parse_operand_fn): Declare.
	(cgen_init_parse_operand): Declare.
	(cgen_parse_operand): Renamed from cgen_asm_parse_operand,
	new argument `want'.
	(enum cgen_parse_operand_result): Renamed from cgen_asm_result.
	(enum cgen_parse_operand_type): New enum.
1997-04-10 23:39:08 +00:00
David Edelsohn
fe2dd6424b * cgen.h (<cpu>_cgen_assemble_insn): New arg for errmsg.
(cgen_asm_parse_operand_fn): Declare.
1997-04-10 21:55:09 +00:00
Ian Lance Taylor
c0d7b5346d * i386.h: Revert last patch for the NON_BROKEN_OPCODES cases. 1997-04-05 18:15:32 +00:00
David Edelsohn
df8b2c02b3 cgen header file 1997-04-04 19:48:32 +00:00
Ian Lance Taylor
80aeca1402 update copyright 1997-04-04 19:06:12 +00:00
Ian Lance Taylor
c00435ed04 * i386.h: Correct opcode values for fsubp, fsubrp, fdivp, and
fdivrp.
1997-04-04 19:03:15 +00:00