Commit graph

893 commits

Author SHA1 Message Date
Doug Evans
e2d7426296 * cgen.h (cgen_asm_init_parse): Delete.
(cgen_save_fixups,cgen_restore_fixups,cgen_swap_fixups): Delete.
	(cgen_asm_record_register,cgen_asm_finish_insn): Delete.
1998-05-07 09:16:35 +00:00
Doug Evans
b6ea017091 (CGEN_INSN_INDEX): Delete. 1998-05-06 21:43:45 +00:00
Doug Evans
030f419b08 * cgen.h (CGEN_ATTR_TYPE): Delete `const', moved to uses.
(cgen_asm_finish_insn): Update prototype.
	(cgen_insn): New members num, data.
	(CGEN_INSN_TABLE): Members asm_hash, asm_hash_table_size,
	dis_hash, dis_hash_table_size moved to ...
	(CGEN_OPCODE_TABLE).  Here.  Renamed from CGEN_OPCODE_DATA.
	All uses updated.  New members asm_hash_p, dis_hash_p.
	(CGEN_MINSN_EXPANSION): New struct.
	(cgen_expand_macro_insn): Declare.
	(cgen_macro_insn_count): Declare.
	(get_insn_operands): Update prototype.
	(lookup_get_insn_operands): Declare.
1998-04-27 17:31:38 +00:00
Ian Lance Taylor
b149f82f15 Tue Apr 21 17:11:32 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386.h (i386_optab): Change iclrKludge and imulKludge to
	regKludge.  Add operands types for string instructions.
1998-04-21 21:12:49 +00:00
Tom Tromey
9d3a718ca9 * i386.h (Z_): Renamed from `_' to avoid clash with common alias
for `gettext'.
1998-04-19 19:59:21 +00:00
Doug Evans
df7e97be20 * dvp.h (dvp_expand_macro): Declare.
(vif_macros,vif_macro_count): Declare.
1998-04-07 00:36:15 +00:00
Ian Lance Taylor
ffabaa53e9 Fri Apr 3 12:04:48 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386.h: Remove NoModrm flag from all insns: it's never checked.
	Add IsString flag to string instructions.
	(IS_STRING): Don't define.
	(LOCK_PREFIX_OPCODE, CS_PREFIX_OPCODE, DS_PREFIX_OPCODE): Define.
	(ES_PREFIX_OPCODE, FS_PREFIX_OPCODE, GS_PREFIX_OPCODE): Define.
	(SS_PREFIX_OPCODE): Define.
1998-04-03 17:07:03 +00:00
Ian Lance Taylor
d411c9efe5 fix copyright 1998-03-31 02:41:10 +00:00
Ian Lance Taylor
ffd42166a5 * i386.h: Revert March 24 patch; no more LinearAddress. 1998-03-31 02:33:19 +00:00
Ian Lance Taylor
86bdd00edd comment fix 1998-03-30 16:02:18 +00:00
Ian Lance Taylor
eff2a090b6 Mon Mar 30 10:25:54 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386.h (i386_optab): Change second operand constraint of `mov
	sreg,reg|mem' instruction from Reg16|Mem to WordReg|WordMem to
	allow legal instructions such as `movl %gs,%esi'
1998-03-30 15:29:49 +00:00
Ian Lance Taylor
cc63a278f2 * h8300.h: Various changes to fully bracket initializers. 1998-03-27 23:32:07 +00:00
Doug Evans
ef5bbde6dc * dvp.h (DVP_OPERAND_UNPACK_ADDRESS): New macro.
(vif_unpack_len_value): Update prototype.
	(vif_get_var_data,vif_get_wl_cl): Add prototypes.
1998-03-25 21:26:38 +00:00
Ian Lance Taylor
44a8b274cf Tue Mar 24 18:32:47 1998 H.J. Lu <hjl@gnu.org>
* i386.h: Set LinearAddress for lidt and lgdt.
1998-03-24 23:34:58 +00:00
Doug Evans
cfa6f386e3 * dvp.h (vif_operand_datalen_special): Declare. 1998-03-23 18:03:15 +00:00
Ken Raeburn
220d9ad6b0 remove whitespace triggering Sanitize bug 1998-03-09 21:51:09 +00:00
Gavin Romig-Koch
49e122ae8d * mips.h (INSN_4320) : Added. 1998-03-03 16:48:34 +00:00
Doug Evans
84fe40560d * cgen.h (CGEN_BOOL_ATTR): New macro. 1998-03-02 18:44:06 +00:00
Michael Meissner
eba74b9a7c Add flag for delayed branches/jumps 1998-02-27 19:17:55 +00:00
Doug Evans
61b6eec08c * dvp.h (VIF_FLAG_U): New macro. 1998-02-27 18:03:11 +00:00
Doug Evans
3e4a83f036 * dvp.h (DVP_OPERAND_MIPS_ADDRESS): Renamed from DVP_OPERAND_ADDRESS.
(DVP_OPERAND_VU_ADDRESS): New macro.
        (DVP_OPERAND_*): Renumber.
1998-02-25 08:26:52 +00:00
Doug Evans
7744ce8bb4 (gif_reg): Add recent register name/number changes. 1998-02-25 00:55:32 +00:00
Doug Evans
3e9f7612e3 * dvp.h (dvp_cpu): Add DVP_UNKNOWN.
(vif_insn_len): Update prototype.
1998-02-24 18:46:29 +00:00
Doug Evans
a2f256c4e0 * cgen.h (CGEN_CAT3): Delete. Use CONCAT3 now.
(cgen_insn): Record syntax and format entries here, rather than
	separately.
1998-02-23 18:39:25 +00:00
Andrew Cagney
71d51207d1 Keep include/regs. 1998-02-23 00:06:33 +00:00
Doug Evans
6e57fa5070 * dvp.h (GIF_MAX_NLOOP,GIF_PRE): New macros.
(gif_type): New type.
	(gif_nloop,gif_nregs,gif_operand_nloop): Declare.
1998-02-21 02:03:08 +00:00
Fred Fish
b7ed1b4b88 Fix minor typos in comments 1998-02-20 05:41:08 +00:00
Doug Evans
a94cefa164 (DVP_OPCODE_IGNORE_DIS): New macro. 1998-02-20 00:32:30 +00:00
Doug Evans
aece8f205d * dvp.h (DVP_OPERAND_DMA_*): Rewrite.
(DVP_OPERAND_AUTOCOUNT): New modifier.
	(dma_operand_{count,addr}): Declare.
1998-02-19 22:37:34 +00:00
Doug Evans
c9320f0675 * dvp.h (DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}): Split
DVP_OPERAND_DMA_PTR_AUTOCOUNT into two.
	(dma_operand_{count,addr}): Declare.
1998-02-19 10:10:32 +00:00
Doug Evans
e4cf2977c7 (CGEN_{INSN,KEYWORD,OPERAND}_NBOOL_ATTRS): Renamed from ..._MAX_ATTRS. 1998-02-18 07:57:59 +00:00
Doug Evans
deaa05853b * cgen.h (CGEN_SYNTAX_MAKE_FIELD): New macro. 1998-02-18 05:46:37 +00:00
Doug Evans
652af042db * cgen.h (cgen_insert_fn): Change type of result to const char *.
(cgen_parse_{signed,unsigned}_integer): Delete min,max arguments.
1998-02-18 00:02:27 +00:00
Andrew Cagney
fbb8b6b9ab For sim_fetch_register / sim_store_register: Add LENGTH parameter,
return actual size of register, 0 if not applicable, -1 of legacy
implementation.
1998-02-17 04:06:38 +00:00
Doug Evans
ad87e8651b * cgen.h (lookup_insn): New argument alias_p.
* dvp.h (VU_FLAG_[IEMDT]): New macros.
1998-02-13 02:33:26 +00:00
Ian Lance Taylor
5d8acc9de1 * getopt.h: Update to latest FSF version. 1998-02-12 21:29:17 +00:00
Joern Rennecke
fc3c25b9e0 opcodes:
* d10v-opc.c (d10v_predefined_registers, d10v_operands, d10v_opcodes):
	Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
	Introduce OPERAND_GPR.
	* d10v-dis.c (print_operand): Likewise.
include/opcode:
	* d10v.h (OPERAND_ACC): Split into:
	(OPERAND_ACC0, OPERAND_ACC1) .
	(OPERAND_GPR): Define.
gas/config:
	* tc-d10v.c (parallel_ok, find_opcode):
	Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
	Introduce OPERAND_GPR.
1998-02-12 03:56:57 +00:00
Doug Evans
42d56c40a2 * cgen.h (CGEN_FIELDS): Define here.
(CGEN_HW_ENTRY): New member `type'.
	(hw_list): Delete decl.
	(enum cgen_mode): Declare.
	(CGEN_OPERAND): New member `hw'.
	(enum cgen_operand_instance_type): Declare.
	(CGEN_OPERAND_INSTANCE): New type.
	(CGEN_INSN): New member `operands'.
	(CGEN_OPCODE_DATA): Make hw_list const.
	(get_insn_operands,lookup_insn): Add prototypes for.
1998-02-12 01:42:43 +00:00
Doug Evans
2acf55ff6c * symcat.h: New file. 1998-02-12 00:58:27 +00:00
Doug Evans
a4f6f75ff9 * cgen.h (CGEN_INSN_MAX_ATTRS): Renamed from CGEN_MAX_INSN_ATTRS.
(CGEN_HW_ENTRY): Move `next' entry to end of struct.
	(CGEN_KEYWORD_MAX_ATTRS): Renamed from CGEN_MAX_KEYWORD_ATTRS.
	(CGEN_OPERAND_MAX_ATTRS): Renamed from CGEN_MAX_OPERAND_ATTRS.
1998-02-04 01:16:11 +00:00
Ian Lance Taylor
5de944588a Mon Feb 2 17:10:38 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
* tic30.h: New file.
1998-02-02 22:13:36 +00:00
Doug Evans
fa5dd27d09 txvu.h renamed to dvp.h 1998-01-28 17:54:38 +00:00
Doug Evans
4086bde1cd txvu.h deleted in favor of generating mips files 1998-01-28 17:45:50 +00:00
Doug Evans
7d3eb0dda2 * dis-asm.h (print_insn_dvp,dvp_insn_p): Add prototypes.
Delete old txvu stuff.
1998-01-28 09:58:10 +00:00
James Lemke
1f8b7bb9cf Partial implementation of DMA tags (instructions).
Checkin to facilitate a component name change.
1998-01-28 02:18:58 +00:00
Doug Evans
35389a9340 * txvu.h (txvu_{opcode,operand}): New typedefs.
(txvu_operand): Add opcode,operand,mods arguments consistently to
	each of the parse/insert/extract/print routines.
1998-01-27 22:08:19 +00:00
Doug Evans
3f7eb70f90 add pke field bit macros 1998-01-27 05:53:54 +00:00
Doug Evans
dff6e4a297 (enum gpuif_reg): Declare. 1998-01-27 02:57:22 +00:00
Doug Evans
6e84cd36f3 * txvu.h (txvu_opcode): insert/extract/print take pointer to
instruction rather than instruction itself.  Result of insert is
	`void'.  Add decls for dma, pke, gpuif support.
1998-01-27 00:21:03 +00:00
Doug Evans
b5d20cf65d checkpoint 1998-01-26 06:24:59 +00:00
Doug Evans
4b40868e0f add comment. 1998-01-23 10:04:16 +00:00
Fred Fish
962ac80464 * dis-asm.h: Add flag INSN_HAS_RELOC to tell disassembly
function there is a reloc on this line.
1998-01-23 02:34:56 +00:00
Nick Clifton
a0f40e47f9 Oopps - forgot to save cgen.h before commiting previous delta. 1998-01-23 01:58:25 +00:00
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