Jeff Law
3b159258ad
* gas/mn10200/{mov1.s,mov2.s,mov3.s,mov4.s,movx.s}: New tests.
...
* gas/mn10200/{movb.s, movbu.s}: Likewise.
* gas/mn10200/basic.exp: Run them.
We correctly assemble & insert operands for all mn10200 instructions.
1996-12-10 20:06:33 +00:00
Jim Wilson
6429b29698
For NEC 4100/4300 project
...
* gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
* interp.c (CHECKHILO): Define away.
(simSIGINT): New macro.
(membank_size): Increase from 1MB to 2MB.
(control_c): New function.
(sim_resume): Rename parameter signal to signal_number. Add local
variable prev. Call signal before and after simulate.
(sim_stop_reason): Add simSIGINT support.
(sim_warning, sim_error, dotrace, SignalException): Define as stdarg
functions always.
(sim_warning): Delete call to SignalException. Do call printf_filtered
if logfh is NULL.
(AddressTranslation): Add #ifdef DEBUG around debugging message and
a call to sim_warning.
1996-12-10 19:39:55 +00:00
Jeff Law
42aa243574
* config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
...
* config/tc-mn10300.c (md_assemble): Likewise.
Found by mn10200 gas testsuite.
1996-12-10 19:33:48 +00:00
Jeff Law
0888b4a38a
* mn10200-opc.c (mn10200_operands): Fix insertion position
...
for DI operand.
Found by gas testsuite.
1996-12-10 19:13:07 +00:00
Ian Lance Taylor
41a0ed225b
* config/tc-mips.c (mips16_extended_frag): Give an error for an
...
attempt to use a non absolute symbol in an extending frag.
1996-12-10 16:38:22 +00:00
Michael Meissner
3fbe064171
New revision from Andrew
1996-12-10 16:12:48 +00:00
Ian Lance Taylor
a7dd20e839
* app.c (do_scrub_chars): At the end of a C comment, pass space to
...
UNGET rather than PUT. Set old_state before setting state to -2.
PR 11229.
1996-12-10 03:47:41 +00:00
Geoffrey Noer
4da0f856e2
Mon Dec 9 17:34:05 1996 Geoffrey Noer <noer@cygnus.com>
...
* config/mn10300/tm-mn10300.h: more small register fixes
* mn10300-tdep.c: filled in from another target
1996-12-10 01:41:16 +00:00
David Edelsohn
15f13cd0ec
* monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.
1996-12-10 01:32:17 +00:00
Mark Alexander
509ffa78cf
* config/mips/tm-mips.h: Get rid of call-dummy code.
...
Minor changes to make pre-ANSI compilers happy.
1996-12-10 00:15:46 +00:00
Mark Alexander
9d78e1afcc
* config/mips/tm-mips.h: Get rid of call-dummy code.
...
Minor changes to make pre-ANSI compilers happy.
* mips-tdep.c: Minor changes to make pre-ANSI compilers happy.
(mips_push_arguments): Rewrite to partially support EABI.
(mips_pc_in_call_dummy): New function.
* infcmd.c: Include symfile.h to get prototype of entry_point_address,
which fixes 64-bit sign extension bug on MIPS.
1996-12-10 00:14:48 +00:00
Jeff Law
9d49699b24
* gas/mn10200/*.s: New tests for the mn10200 assembler.
...
* gas/mn10200/basic.exp: Run them.
Tests for all instructions except mov*.
1996-12-10 00:14:35 +00:00
Fred Fish
1fe1c717d9
* gdb.texinfo, refcard.tex: Restore author credit
1996-12-09 23:58:07 +00:00
Jeff Law
dc1f8a2115
* config/tc-mn10200.c: Flesh out assembler support for MN10200.
...
* config/tc-mn10200.h: Likewise.
Actually assembles some mn10200 stuff (everything but mov* instructions!)
1996-12-09 23:53:37 +00:00
Jeff Law
781766e7e1
* mn10200-opc.c: Create mn10200 opcode table.
...
* mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
but moving along nicely.
Checkpointing today's mn10200 work.
1996-12-09 23:48:15 +00:00
Ian Lance Taylor
559c664adb
* config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
...
when extending because the value is exactly maxtiny + 1.
1996-12-09 23:34:20 +00:00
Ian Lance Taylor
8728fa9263
* config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
...
arguments, and store them. Adjust other RELAX_MIPS16 macros.
(RELAX_MIPS16_USER_SMALL): Define.
(RELAX_MIPS16_USER_EXT): Define.
(mips16_small, mips16_ext): New static variables.
(append_insn): Pass mips16_small and mips16_ext to
RELAX_MIPS16_ENCODE.
(mips16_ip): Set mips16_small and mips16_ext.
(mips16_immed): Don't check mips16_autoextend.
(mips16_extended_frag): Check USER_SMALL and USER_EXT.
1996-12-09 23:26:15 +00:00
Ian Lance Taylor
102633cecf
* write.c (write_relocs): Print an error for an out of range
...
fixup, rather than calling abort.
* as.c (main): Unlink the output file if there are errors while
generating the fixups.
1996-12-09 22:11:24 +00:00
Geoffrey Noer
578d1f4493
additional register stuff
1996-12-09 09:11:45 +00:00
Geoffrey Noer
ddc2888e6b
Mon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>
...
* config/mn10300/tm-mn10300.h: fix register names
* mn10300-tdep.c: new skeleton tdep for mn10300
1996-12-09 08:33:27 +00:00
David Edelsohn
966f47b470
* callback.c: #include <stdlib.h>
...
(os_error): New function.
(default_callback): Add os_error.
1996-12-09 02:27:59 +00:00
David Edelsohn
163a75afdb
* remote-sim.h: Update some comments.
...
* remote-sim.c (gdb_os_error): New function.
(init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
(gdb_os_printf_filtered): Use gdb_stdout, not stdout.
1996-12-09 02:06:42 +00:00
David Edelsohn
e114415332
* callback.h (host_callback): New member `error'.
1996-12-09 01:12:03 +00:00
Peter Schauer
b65415a446
* Makefile.in (ALL_MACHINES): Add mips16-opc.o.
1996-12-08 12:35:28 +00:00
Peter Schauer
1d275068e9
* irix5-nat.c (supply_gregset, fill_gregset): Handle gregsets
...
from O32 and N32 ABI.
(xfer_link_map_member): Work around problem with alignments
in struct obj when compiling GDB under N32 ABI.
1996-12-08 08:38:34 +00:00
Jeff Law
2e8f4133d7
* simops.c (REG0_16): Fix typo.
1996-12-07 16:54:57 +00:00
J.T. Conklin
6827a1c758
* m68k-opc.c (m68k_opcodes): Revert change to use < and >
...
specifiers for fmovem* instructions.
1996-12-07 00:54:51 +00:00
Jeff Law
5084d8e513
Add missing semicolons in last change.
1996-12-07 00:36:50 +00:00
Ian Lance Taylor
f74ba7a3d9
* config/tc-mips.c (mips16_extended_frag): Don't call
...
S_GET_VALUE.
(md_convert_frag): Call resolve_symbol_value before calling
S_GET_VALUE, and don't add in the frag address.
1996-12-07 00:32:05 +00:00
Ian Lance Taylor
15e69f9816
* config/tc-mips.c (mips16_immed): Add file and line parameters,
...
and use them when reporting errors. Change all callers.
1996-12-06 23:51:01 +00:00
Jeff Law
31cffd2ee6
* elf32-mn10300.c (elf_symbol_leading_char): Define.
1996-12-06 22:51:44 +00:00
Jeff Law
ca82e4ebdb
* config/tc-mn10300.c: Fix various gcc -Wall warnings.
...
Remove '$' prefixing for registers.
1996-12-06 22:44:30 +00:00
Jeff Law
4db788a664
* mn10300-dis.c (disassemble): Remove '$' register prefixing.
1996-12-06 22:40:31 +00:00
Jeff Law
8fbb3e909a
* gas/mn10300/*.s: Remove '$' register prefixing.
1996-12-06 22:39:18 +00:00
Ian Lance Taylor
34212ec3f6
* mips16-opc.c: Change opcode for entry/exit to avoid conflicting
...
with dsrl.
1996-12-06 22:35:01 +00:00
Jeff Law
207e944c81
* elf32-mn10300.c: Add some comments.
...
Still cleaning up.
1996-12-06 22:23:37 +00:00
Ian Lance Taylor
e763bd6fad
* ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
...
warning about uninitialized variable.
(ieee_read_cxx_class): Likewise, for pf.
(ieee_enum_type): Likewise, for i.
1996-12-06 22:22:52 +00:00
Ian Lance Taylor
6dcf1ef5de
* ihex.c (ihex_scan): Always initialize buf before jumping to
...
error_return.
(ihex_read_section): Likewise.
1996-12-06 22:20:24 +00:00
Jeff Law
8329699005
* mn10300-opc.c: Add some comments explaining the various
...
operands and such.
* mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
1996-12-06 22:04:12 +00:00
Jeff Law
b2f7a7e5b3
* simops.c: Call abort for any instruction that's not currently
...
simulated.
1996-12-06 21:49:27 +00:00
Jeff Law
9f4a551e11
* simops.c: Define accessor macros to extract register
...
values from instructions. Use them consistently.
1996-12-06 21:47:21 +00:00
Jeff Law
7c52bf32f2
* interp.c: Delete unused global variable "OP".
...
(sim_resume): Remove unused variable "opcode".
* simops.c: Fix some uninitialized variable problems, add
parens to fix various -Wall warnings.
Fixing assorted -Wall problems.
1996-12-06 21:33:48 +00:00
Jeff Law
fc038f5656
Opps. Forgot something in last change.
1996-12-06 21:20:17 +00:00
Jeff Law
d252301029
* gencode.c (write_header): Add "insn" and "extension" arguments
...
to the OP_* declarations.
(write_template): Similarly for function templates.
* interp.c (insn, extension): Remove global variables. Instead
pass them as arguments to the OP_* functions.
* mn10300_sim.h: Remove decls for "insn" and "extension".
* simops.c (OP_*): Accept "insn" and "extension" as arguments
instead of using globals.
Starting to clean things up.
1996-12-06 21:19:37 +00:00
Mark Alexander
1bcfe5fa30
* add valops.c to list of files to be sanitized for d10v
1996-12-06 17:44:23 +00:00
Martin Hunt
f787a8d9b8
Fri Dec 6 00:55:48 1996 Martin <hunt@cygnus.com>
...
* config/tc-d10v.c (md_assemble): Check to see if prev_seg
is initialized before using it.
(d10v_cleanup): No longer uses its argument, so make it void.
* config/tc-d10v.h (d10v_cleanup): Change prototype.
1996-12-06 09:13:25 +00:00
Jeff Law
e5a7a53799
* simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"
...
Fixes remaining hangs while running c-torture execution tests.
Only 12 c-torture execution failures left:
* 920625-1.c fails all 6 execution tests.
* 960521-1.c fails all 6 execution tests.
1996-12-06 07:57:21 +00:00
Stan Shebs
48712b3060
* d10v-tdep.c: Add support for examination and interpretation
...
of instruction trace buffer.
(trace, untrace, info trace, tdisassemble): New commands.
1996-12-06 07:37:24 +00:00
Jeff Law
d28f058e54
* elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
...
inplace for most relocs.
1996-12-06 05:35:00 +00:00
Jeff Law
4d8ced6cb1
* simops.c: Fix thinkos in last change to "inc dn".
1996-12-06 05:30:24 +00:00