aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1996-11-27Wed Nov 27 11:29:06 1996 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder7-115/+24
* blockframe.c: ...Remove old-style CALL_DUMMY code... * h8300-tdep.c: * config/h8300/tm-h8300.h: start-sanitize-m32r * m32r-tdep.c: * config/m32r/tm-m32r.h: end-sanitize-m32r * sh-tdep.c: * config/sh/tm-sh.h: start-sanitize-v850 * v850-tdep.c: * config/v850/tm-v850.h: end-sanitize-v850
1996-11-27Tue Nov 26 18:29:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-6/+23
* gdb.base/callfuncs.exp: Turn on function call tests for h8300. * gdb.base/default.exp: ditto. * gdb.base/nodebug.exp: ditto. * gdb.base/printcmds.exp: ditto. * gdb.base/ptype.exp: ditto. * gdb.base/setvar.exp: ditto. * gdb.base/structs.exp: ditto. * gdb.base/setshow.c: Guard against uninitialized values of argc.
1996-11-27Added target function calls for SH, M32R and H8300.Michael Snyder11-775/+1456
Added some generic target-independant code for managing call-dummy frames. Wed Nov 27 10:32:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com> * breakpoint.c: DELETE command will not delete CALL_DUMMY breakpoint. * blockframe.c: Add target-independant support for managing CALL_DUMMY frames on the host side. * frame.h: Declarations for generic CALL_DUMMY frame support. * h8300-tdep.c: Add target function calls using generic frame support. * config/h8300/tm-h8300.h: config for generic target function calls. start-sanitize-m32r * m32r-tdep.c: Add target function calls using generic frame support. * config/m32r/tm-m32r.h: config for generic target function calls. end-sanitize-m32r * sh-tdep.c: Add target function calls using generic frame support. * config/sh/tm-sh.h: config for generic target function calls. start-sanitize-v850 * v850-tdep.c: Add target function calls using generic frame support. * config/v850/tm-v850.h: config for generic target function calls. end-sanitize-v850 * valops.c: ADD PUSH_RETURN_ADDRESS so that it doesn't have to be done by PUSH_ARGUMENTS when there's no CALL_DUMMY.
1996-11-27 * simops.c: Don't lose the upper 24 bits of the returnJeff Law2-16/+154
pointer in "call" and "calls" instructions. Rough cut at emulated system calls.
1996-11-27 * config/tc-mips.c (md_section_align): Check for an alignment ofIan Lance Taylor1-0/+5
4, not an alignment of 16. Corrects August 7 patch.
1996-11-27 * simops.c: Implement the remaining 5, 6 and 7 byte instructions.Jeff Law2-50/+168
Everything except the extended instructions, the loop instructions, trap, rti, and rtm.
1996-11-27 * simops.c Implement remaining 4 byte instructions.Jeff Law2-39/+145
1996-11-27 * elf32-i386.c (elf_i386_relocate_section): Warn about aIan Lance Taylor1-0/+6
relocation against a symbol defined in a section with no output section. PR 11174.
1996-11-27 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORDIan Lance Taylor1-0/+3
16 bit instructions.
1996-11-27 * simops.c Implement remaining 3 byte instructions.Jeff Law2-32/+120
Moving right along...
1996-11-27 * simops.c: Implement remaining 2 byte instructions. CallJeff Law2-23/+120
abort for instructions we're not implementing now.
1996-11-27Actually check in the right change to interp.c.Ian Lance Taylor1-2/+1
1996-11-27 * scripttempl/{elfd10v.sc,elfmips.sc,elfppc.sc,v850.sc}: Likewise.Jason Merrill3-16/+49
1996-11-27 * scripttempl/elf.sc: Add the remaining DWARF sections.Jason Merrill1-0/+4
1996-11-27 * simops.c: Implement lots of random instructions.Jeff Law2-129/+642
Implments most instructions with first nibble 0x0 - 0xe and those with the first byte 0xf0 - 0xf2.
1996-11-27 * simops.c: Implement "movm" and "bCC" insns.Jeff Law2-7/+160
Function calls and conditional branches work!
1996-11-27 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.Mark Alexander1-0/+9
(mips_addr_bits_remove): Declare.
1996-11-27 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.Mark Alexander3-70/+130
(mips_addr_bits_remove): Declare. * mips-tdep.c (mips_push_dummy_frame): Fix heuristic-fence-post errors when hitting breakpoints during inferior function calls in 64-bit programs. (fix_sign_extension): Make public, rename to mips_addr_bits_remove. * utils.c (paddr_nz, preg_nz): New functions, similar to paddr and preg but don't print leading zeroes. * defs.h (paddr_nz, preg_nz): Declare. * remote-mips.c: Use paddr_nz instead of paddr throughout to reduce packet size. (pmon_end_download): Improve timeout error handling.
1996-11-27 * mn10300_sim.h (_state): Add another register (MDR).Jeff Law3-9/+199
(REG_MDR): Define. * simops.c: Implement "cmp", "calls", "rets", "jmp" and a few additional random insns. We can now function calls. We get out of crt0 into main now, then lose when calls are nested (because don't handle movm yet).
1996-11-26 * mn10300-dis.c (disasemble): Finish conversion to '$' asJeff Law2-5/+8
register prefix. Fixes improper disassembly of movm instructions.
1996-11-26 * mn10300_sim.h (PSW_*): Define for CC status tracking.Jeff Law3-20/+310
(REG_D0, REG_A0, REG_SP): Define. * simops.c: Implement "add", "addc" and a few other random instructions. Starting to simulate instructions for the mn10300. Executes some of the crt0 code now!
1996-11-26 * configure, */configure: Rebuild with autoconf 2.12.Ian Lance Taylor5-108/+407
1996-11-26 * configure: Rebuild with autoconf 2.12.Ian Lance Taylor2-220/+490
1996-11-26 * configure: Rebuild with autoconf 2.12.Ian Lance Taylor2-37/+156
1996-11-26 * configure, conf.in: Rebuild with autoconf 2.12.Ian Lance Taylor2-3/+5
1996-11-26 * configure: Rebuild with autoconf 2.12.Ian Lance Taylor2-0/+11
1996-11-26 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.Ian Lance Taylor2-192/+432
* configure, config.in: Rebuild with autoconf 2.12.
1996-11-26 * config/tc-ppc.c (ppc_elf_lcomm): Don't give an error if noIan Lance Taylor1-0/+3
alignment is specified. PR 11164.
1996-11-26 * gencode.c, interp.c: Snapshot current simulator code.Jeff Law3-3/+27
(crude) hashing works, along with dispatch to the OP_* functions.
1996-11-26 * mn10300-opc.c (mn10300_opcodes): Fix mask field forJeff Law2-1/+6
mov am,(imm32,sp). Found during initial simulator work.
1996-11-26 Add support for mips16 (16 bit MIPS implementation):Ian Lance Taylor3-1062/+1631
* gencode.c (inst_type): Add mips16 instruction encoding types. (GETDATASIZEINSN): Define. (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and mtlo. (MIPS16_DECODE): New table, for mips16 instructions. (bitmap_val): New static function. (struct mips16_op): Define. (mips16_op_table): New table, for mips16 operands. (build_mips16_operands): New static function. (process_instructions): If PC is odd, decode a mips16 instruction. Break out instruction handling into new build_instruction function. (build_instruction): New static function, broken out of process_instructions. Check modifiers rather than flags for SHIFT bit count and m[ft]{hi,lo} direction. (usage): Pass program name to fprintf. (main): Remove unused variable this_option_optind. Change ``*loptarg++'' to ``loptarg++''. (my_strtoul): Parenthesize && within ||. * interp.c (sim_trace): If tracefh is NULL, set it to stderr. (LoadMemory): Accept a halfword pAddr if vAddr is odd. (simulate): If PC is odd, fetch a 16 bit instruction, and increment PC by 2 rather than 4. * configure.in: Add case for mips16*-*-*. * configure: Rebuild.
1996-11-26Tue Nov 26 11:45:33 1996 Kim Knuttila <krk@cygnus.com>Ian Lance Taylor1-0/+10
* config.sub (basic_machine): added mips16 configuration
1996-11-26 Add support for mips16 (16 bit MIPS implementation):Ian Lance Taylor2-98/+1717
* config/tc-mips.c: Extensive additions for mips16 support, not listed here. (RELAX_OLD, RELAX_NEW): Use only 7 bits each. (insn_uses_reg): Change last parameter to an enum. * config/tc-mips.h (LOCAL_LABELS_DOLLAR): Define as 0. (md_relax_frag): Define as mips_relax_frag. (mips_relax_frag): Declare. (struct mips_cl_insn): Add use_extend and extend fields. (tc_fix_adjustable): Define. * config/obj-elf.h (S_GET_OTHER): Define. (S_SET_OTHER): Define.
1996-11-26 * elf-bfd.h (struct elf_link_hash_entry): Add other field.Ian Lance Taylor2-1/+25
* elf.c (_bfd_elf_link_hash_newfunc): Initialize other field. (swap_out_syms): Set st_other from existing st_other field. * elflink.h (elf_link_add_object_symbols): Store st_other in hash table other field. (elf_link_output_extsym): Set the other field from the global hash table entry. * elf32-mips.c (enum reloc_type): Add R_MIPS16_26. (elf_mips16_jump_howto): New static variable. (mips16_jump_reloc): New static function. (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP. (mips_info_to_howto_rel): Handle R_MIPS16_26. (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26 to a mips16 symbol. * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs. * bfd-in2.h, libbfd.h: Rebuild. * cpu-mips.c (arch_info_struct): Add mips:16 entry.
1996-11-26 Add support for mips16 (16 bit MIPS implementation):Ian Lance Taylor5-24/+628
* mips16-opc.c: New file. * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h". (mips16_reg_names): New static array. (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or after seeing a 16 bit symbol. (print_insn_little_mips): Likewise. (print_insn_mips16): New static function. (print_mips16_insn_arg): New static function. * mips-opc.c: Add jalx instruction. * Makefile.in (mips16-opc.o): New target. * configure.in: Use mips16-opc.o for bfd_mips_arch. * configure: Rebuild.
1996-11-26Regenerated since aclocal.m4 changed.David Edelsohn1-41/+378
1996-11-26 * config.in (WORDS_BIGENDIAN): Add.David Edelsohn2-88/+383
* configure: Regenerated. * d10v_sim.h: #include "config.h"
1996-11-26* m68k-opc.c (m68k_opcodes): Simplify table by using < and >J.T. Conklin1-2/+5
operand specifiers in *save, *restore and movem* instructions.
1996-11-26 * configure.host: Use long long for mips-sgi-irix6*.Ian Lance Taylor1-0/+7
1996-11-26* config/tc-m68k.c (m68k_ip): Implement cases for new <, >, m, n,J.T. Conklin1-0/+5
o and p operand specifiers.
1996-11-26* m68k.h: Document new <, >, m, n, o and p operand specifiers.J.T. Conklin1-0/+9
1996-11-26* m68k-opc.c (m68k-opcodes): Fix move and movem instructions forJ.T. Conklin2-14/+35
the coldfire.
1996-11-26* m68k-opc.c (m68k-opcodes): Fix many forms of the moveJ.T. Conklin2-21/+29
instruction for the coldfire.
1996-11-25* m68k-opc.c (m68k-opcodes): The coldfire (mcf5200) can only useJ.T. Conklin2-34/+71
register operands for immediate arithmetic, not, neg, negx, and set according to condition instructions.
1996-11-25 * objdump.c (disassemble_data): Don't crash if there is noIan Lance Taylor1-0/+9
symbol.
1996-11-25* m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storageJ.T. Conklin2-30/+41
specifier of the effective-address operand in immediate forms of arithmetic instructions. The specifier for the immediate operand notes how and where the constant will be stored.
1996-11-25 * write.c: Delete "ifndef md_relax_frag" around is_dnrange.David Edelsohn1-0/+15
(relax_segment, case rs_org): Move code inside braces. Move locals target,after inside too. (relax_segment, case rs_machine_dependent): Guts moved to ... (relax_frag): New function. Call md_prepare_relax_scan if defined. * config/tc-m68k.h (md_prepare_relax_scan): Renamed from M68K_AIM_KLUDGE.
1996-11-25 From: Paul Eggert <eggert@twinsun.com>Fred Fish2-1/+15
* remote-bug.c (wait_strings): Avoid creating a trigraph.
1996-11-25 * Makefile.in, config.in, configure, configure.in: New files.Jeff Law9-0/+1956
* gencode.c, interp.c, mn10300_sim.h, simops.c: New files. Skeleton mn10300 simulator
1996-11-25 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"Jeff Law1-1/+0
opcode.