aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
2004-03-01Add fr450 support.Richard Sandiford36-109/+20169
2004-03-01cpu/Richard Sandiford5-65/+55
* frv.cpu (nsdiv, nudiv, nsdivi, nudivi): Remove fr400 profiling unit. (scutss): Change unit to I0. (calll, callil, ccalll): Add missing FR550-MAJOR and profile unit. (mqsaths): Fix FR400-MAJOR categorization. (media-quad-multiply-cross-acc, media-quad-cross-multiply-cross-acc) (media-quad-cross-multiply-acc): Change unit from MDUALACC to FMALL. * frv.opc (fr400_check_insn_major_constraints): Check for (M-2,M-1) combinations. opcodes/ * frv-desc.c, frv-opc.c: Regenerate. sim/frv/ * cache.c (frv_cache_init): Change fr400 cache statistics to match the fr405. (non_cache_access): Add missing breaks. * interrupts.c (set_exception_status_registers): Always set EAR15 for data_access_errors. * memory.c (fr400_check_write_address): Remove redundant alignment check. * model.c: Regenerate.
2004-03-01sim/frv/Richard Sandiford4-72/+132
* frv.c (frvbf_iacc_cut): Rework, taking rounding into account. testsuite/ * sim/frv/fr400/scutss.cgs: Fix tests to account for rounding. Add some new ones.
2004-03-01cpu/Richard Sandiford16-3172/+151
* frv.cpu (r-store, r-store-dual, r-store-quad): Delete. (rstb, rsth, rst, rstd, rstq): Delete. (rstbf, rsthf, rstf, rstdf, rstqf): Delete. gas/testsuite/ * gas/frv/allinsn.s (rstb, rsth, rst, rstd, rstq): Replace with nops. (rstbf, rsthf, rstf, rstdf, rstqf): Likewise. * gas/frv/allinsn.d: Update accordingly. opcodes/ * frv-desc.c, frv-opc.c, frv-opc.h: Regenerate. sim/frv/ * decode.c, decode.h, model.c, sem.c: Regenerate. sim/testsuite/ * sim/frv/{rstb,rsth,rst,rstd,rstq}.cgs: Delete. * sim/frv/{rstbf,rsthf,rstf,rstdf,rstqf}.cgs: Delete.
2004-02-132004-02-02 Michael Snyder <msnyder@redhat.com>Michael Snyder2-2/+6
* gencode.c (movua.l): Set thislock to 0, not n.
2004-02-122004-02-12 Michael Snyder <msnyder@redhat.com>Michael Snyder6-3/+201
* and.s, movi.s, sett.s: New files. * allinsn.exp: Add new tests. * testutils.inc (set_sr_bit): Fix macro labels.
2004-02-122004-02-12 Michael Snyder <msnyder@redhat.com>Michael Snyder3-5/+13
* gencode.c (table): Change from char to short. (dumptable): Change generated table from char to short. * interp.c (sh_jump_table, sh_dsp_table, ppi_table): char to short. (init_dsp): Compute size of sh_dsp_table. (sim_resume): Change jump_table from char to short.
2004-02-042004-02-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-22/+133
Committed by Andrew Cagney. * mloopx.in: Update copyright. (xextract-pbb): Fixed trap for system calls operation in parallel. * mloop2.in (xextract-pbb): Ditto.
2004-01-272004-01-27 Michael Snyder <msnyder@redhat.com>Michael Snyder2-8/+12
* gencode.c: (op tab): Some refs and defs fixes. "fsrra" -> "fsrra <FREG_N>". "sleep": replace array ref with array addr. "trapa": ditto.
2004-01-272004-01-27 Michael Snyder <msnyder@redhat.com>Michael Snyder2-19/+22
* gencode.c: Comment and whitespace clean-ups.
2004-01-272004-01-27 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+7
* ppc-instructions: Update copyright. (convert_to_integer): Add trailing ";" to label.
2004-01-26[ sim/ChangeLog ]Chris Demetriou8-5/+214
2004-01-26 Chris Demetriou <cgd@broadcom.com> * configure.in (mips*-*-*): Configure in testsuite. * configure: Regenerate. [ sim/testsuite/ChangeLog ] 2004-01-26 Chris Demetriou <cgd@broadcom.com> * sim/mips: New directory. Tests for the MIPS simulator. [ sim/testsuite/sim/mips/ChangeLog ] 2004-01-26 Chris Demetriou <cgd@broadcom.com> * basic.exp: New file. * testutils.inc: New file. * sanity.s: New file.
2004-01-23 * lib/sim-defs.exp (run_sim_test): Delete the .o and .x files if aBen Elliston2-0/+7
test passes.
2004-01-202004-01-19 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-11/+69
* mips.igen (check_mf_cycles, check_mt_hilo, check_mf_hilo) (check_mult_hilo): Improve comments. (check_div_hilo): Likewise. Also, fork off a new version to handle mips32/mips64 (since there are no hazards to check in MIPS32/MIPS64).
2004-01-18* simops.c: Include <sys/types.h>.Mark Kettenis2-0/+6
2004-01-15 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.Ben Elliston2-1/+4
2004-01-102004-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder3-122/+134
* gencode.c: Whitespace cleanup. * interp.c: Ditto.
2004-01-092004-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder16-1/+2462
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s, movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files. * allinsn.exp: Add new tests. * testutils.inc (set_sr_bit): Add argument. (set_greg): Add .align directives.
2004-01-092004-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder3-137/+588
* gencode.c: Replace 'Hitachi' with 'Renesas'. (op tab): Add new instructions for sh4a, DBR, SBR. (expand_opcode): Add handling for new movxy combinations. (gensym_caselist): Ditto. (expand_ppi_movxy): Remove movx/movy expansions, now handled in expand_opcode. (gensym): Add some helpful macros. (expand_ppi_code): Flatten loop for simplicity, tweak for 12-bit instead of 8-bit table (some insns are ambiguous to 8 bits). (ppi_gensim, main): Generate 12-bit instead of 8-bit ppi table. * interp.c: Replace 'Hitachi' with 'Renesas'. (union saved_state_type): Add dbr, sgr, ldst. (get_loop_bounds_ext): New function. (init_dsp): Add bfd_mach_sh4al_dsp. (sim_resume): Handle extended loop bounds.
2004-01-062003-12-18 Michael Snyder <msnyder@redhat.com>Michael Snyder2-90/+93
* gencode.c (expand_opcode): Simplify and reorganize. Eliminate "shift" parameter. Eliminate "4 bits at a time" assumption. Flatten switch statement to a single level. Add "eeee" token for even-numbered registers. (bton): Delete. (fsca): Use "eeee" token. (ppi_moves): Rename to "expand_ppi_movxy". Do the ddt [movx/movy] expansion here, as well as the ppi expansion. (gensim_caselist): Accept 'eeee' along with 'nnnn'.
2004-01-062004-01-05 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* compile.c (sim_load): Don't pass a type to bfd_openr.
2003-12-29 * armos.c (fcntl.h): Do not include it.Mark Mitchell3-26/+28
(O_RDONLY): Do not define. (O_WRONLY): Likewise. (O_RDWR): Likewise. (targ-vals.h): Include it. (translate_open_mode): Use TARGET_O_* instead of O_*. (SWIopen): Likewise. * Makefile.in (armos.o): Depend on targ-vals.h.
2003-12-19Add support for m32r-linux target, including a RELA ABI and PIC.Nick Clifton10-2/+1668
2003-12-162003-12-16 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+6
Patch submitted by Anil Paranjape <AnilP1@KPITCummins.com> * sim-main.h (H8300H_MSIZE): Increase from 18 bits to 24 bits.
2003-12-12oops - forgot to add this file!Nick Clifton1-0/+484
2003-12-11Add support for the m32r2 processorNick Clifton30-168/+16057
2003-12-11 Fix GDB crash problem when object file of different H8 cpu is loadedDhananjay Deshpande2-0/+6
2003-12-07More reversion of incomplete m32r changes. Should be back to normal.Andrew Cagney5-188/+27
2003-12-07Revert last commit, build problems.Andrew Cagney7-117/+18
2003-12-072003-12-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>Andrew Cagney7-13/+122
* Makefile.in : Add new machine m32r2. * m32r2.c : New file for m32r2. * mloop2.in : Ditto * model2.c : Ditto * sem2-switch.c : Ditto * m32r-sim.h : Add EVB register. * sim-if.h : Ditto * sim-main.h : Ditto * traps.c : Ditto
2003-11-24 * frv-sim.h (GR_REGNUM_MAX, FR_REGNUM_MAX, PC_REGNUM, SPR_REGNUM_MIN)Kevin Buettner3-21/+64
(SPR_REGNUM_MAX): Delete. * frv.c (gdb/sim-frv.h): Include. (frvbf_fetch_register, frvbf_store_register): Use register number constants from gdb/sim-frv.h. Check availability of general purpose and float registers.
2003-11-22 * sim-options.c (standard_options): Fix the names of H8Kazu Hirata2-3/+8
variants.
2003-11-15Move an entry that belong to sim/h8300/ChangeLog.Kazu Hirata2-13/+15
2003-11-032003-11-03 Dave Brolley <brolley@redhat.com>Dave Brolley2-3/+17
* cache.c (address_interference): Check for higher priority requests in the same pipeline.
2003-11-03 * interp.c (fsca_s, fsrra_s): New functions.Joern Rennecke3-6/+87
* gencode.c (tab): Add entries for fsca and fsrra. (expand_opcode): Allow variable length n / m fields.
2003-10-31 Fix more typosDave Brolley1-1/+1
2003-10-31Fix typos.Dave Brolley1-2/+2
2003-10-312003-10-31 Dave Brolley <brolley@redhat.com>Dave Brolley3-8/+38
* frv-sim.h (REGNUM_LR): Removed. (REGNUM_SPR_MIN,REGNUM_SPR_MAX): New macros. * frv.c (frvbf_fetch_register): Fetch SPR registers based on REGNUM_SPR_MIN and REGNUM_SPR_MAX. Check whether SPRs are implemented. Return 0 for an unimplemented register. Return the length of the data for an implemented register. (frvbf_store_register): Ditto.
2003-10-31Index: sim/frv/ChangeLogAndrew Cagney7-4/+19
2003-10-30 Andrew Cagney <cagney@redhat.com> * traps.c: Replace "struct symbol_cache_entry" with "struct bfd_symbol". Index: sim/d10v/ChangeLog 2003-10-30 Andrew Cagney <cagney@redhat.com> * simops.c: Replace "struct symbol_cache_entry" with "struct bfd_symbol". Index: sim/common/ChangeLog 2003-10-30 Andrew Cagney <cagney@redhat.com> * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry" with "struct bfd_symbol". Index: ld/ChangeLog 2003-10-30 Andrew Cagney <cagney@redhat.com> * emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry" with "struct bfd_symbol". Index: bfd/ChangeLog 2003-10-30 Andrew Cagney <cagney@redhat.com> * syms.c: Replace "struct symbol_cache_entry" with "struct bfd_symbol". * vms.h, targets.c, section.c, reloc.c, peicode.h: Ditto. * mipsbsd.c, elf.c, linker.c, elf-bfd.h, ecoff.c: Ditto. * cpu-z8k.c, cpu-ns32k.c, cpu-h8500.c, bfd.c, bfd-in.h: Ditto. * bfd-in2.h: Re-generate.
2003-10-212003-10-21 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+5
* callback.c (os_truncate): Call "truncate", and not "stat".
2003-10-202003-10-19 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+5
* targets.c: Replace "struct sec" with "struct bfd_section" * syms.c, sparclynx.c, section.c, opncls.c: Ditto. * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto. * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto. * aout-tic30.c, aout-target.h: * bfd-in2.h, libcoff.h, libbfd.h: Regenerate. Index: binutils/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * coffgrok.h (coff_section): Replace 'struct sec" with "struct bfd_section". Index: gdb/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * symtab.c: Replace "struct sec" with "struct bfd_section". * objfiles.c, linespec.c, blockframe.c, block.c: Ditto. Index: ld/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * pe-dll.c: Replace "struct sec" with "struct bfd_section". Index: sim/common/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * sim-base.h: Replace "struct sec" with "struct bfd_section".
2003-10-172003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>Shrinivas Atre2-45/+80
* h8300/compile.c : Addition of extern variable h8300_normal_mode (SP) : Handle normal mode (bitfrom) : Use normal mode flag to return suitable value (lvalue) : Use normal mode flag to return command line location (decode) : Decode instruction correctly for normal mode (init_pointers) : Initialise memory correctly for normal mode (sim_resume) : Handle cases for normal mode using h8300_normal_mode flag (sim_store_register) : Handle 2 byte PC for normal mode (sim_fetch_register) : Handle 2 byte PC for normal mode (set_h8300h) : Set normal mode flag as per architechture (sim_load) : Allocate 64K for normal mode instead of bigger memory
2003-10-172003-10-16 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* emul_netbsd.c: Only a comment may follow an #endif.
2003-10-152003-10-15 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
2003-10-15include/gdb:Joern Rennecke5-0/+50
* callback.h (struct host_callback_struct): New members ftruncate and truncate. gdb: sim/common: * callback.c (os_ftruncate, os_truncate): New functions. (default_callback): Initialize ftruncate and truncate members. sim/sh: * syscall.h (SYS_truncate, SYS_ftruncate): Define. * interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.
2003-10-11 * interp.c (sim_load): Don't refer directly to _cooked_size and vma;Alan Modra2-3/+10
Use bfd_section_size and bfd_get_section_vma.
2003-10-102003-10-10 Dave Brolley <brolley@redhat.com>Dave Brolley5-10/+99
* sim/frv/testutils.inc (or_gr_immed): New macro. * sim/frv/fp_exception-fr550.cgs: Write insns using unaligned registers into the program in order to cause the required exceptions. * sim/frv/fp_exception.cgs: Ditto. * sim/frv/regalign.cgs: Ditto.
2003-10-102003-10-10 Dave Brolley <brolley@redhat.com>Dave Brolley3-67/+18
* cpu.h, sem.c: Regenerate.
2003-10-082003-10-08 Dave Brolley <brolley@redhat.com>Dave Brolley2-3/+7
* configure.in: Move frv handling to alphabetically correct placement.
2003-10-082003-10-06 Dave Brolley <brolley@redhat.com>Dave Brolley175-117/+15074
* sim/frv/fr550: New subdirectory. * sim/frv/fr400/*.cgs: Add fr550 as appropriate. * sim/frv/fr500/*.cgs: Add fr550 as appropriate. * sim/frv/interrupts/*.cgs: Add fr550 as appropriate. * sim/frv/interrupts/*-fr550.cgs: New test cases for fr550.