Chris Demetriou
1a27f959ea
2004-05-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
...
* mips/interp.c (decode_coproc): Sign-extend the address retrieved
from COP0_BADVADDR.
* mips/sim-main.h (COP0_BADVADDR): Remove a cast.
2004-05-12 01:42:33 +00:00
Daniel Jacobowitz
3e5e53f9b0
* configure.in (sim_fpu_cflags): Add -I../common.
...
* configure: Regenerated.
2004-05-11 02:21:58 +00:00
Daniel Jacobowitz
41ee5402be
* callback.c: Update copyright dates.
...
* run.c: Likewise.
* sim-basics.h: Likewise.
* sim-load.c: Likewise.
* syscall.c: Likewise.
From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* callback.c: Include cconfig.h instead of config.h.
* run.c: Likewise.
* sim-basics.h: Likewise.
* sim-load.c: Likewise.
* syscall.c: Likewise.
2004-05-10 16:18:03 +00:00
Chris Demetriou
adad0f8a2b
2004-04-11 Chris Demetriou <cgd@broadcom.com>
...
* utils-fpu.inc (enable_fpu, ckm_fp_cc): New macros.
(clrset_fp_cc): Fix mask used for upper 7 condition codes.
* utils-mdmx.inc: Include utils-fpu.inc.
(enable_mdmx): Use enable_fpu.
2004-04-11 07:12:13 +00:00
Chris Demetriou
cdc89eb2c3
2004-04-10 Chris Demetriou <cgd@broadcom.com>
...
* utils-fpu.inc: New file.
* utils-mdmx.inc: New file.
* mdmx-ob.s: New file.
* mdmx-ob-sb1.s: New file.
* basic.exp: Run new mdmx-ob and mdmx-ob-sb1 tests.
2004-04-11 06:28:08 +00:00
Chris Demetriou
5dbb7b5a1d
im/mips/ChangeLog ]
...
2004-04-10 Chris Demetriou <cgd@broadcom.com>
* sb1.igen (DIV.PS, RECIP.PS, RSQRT.PS, SQRT.PS): New.
[ sim/testsuite/sim/mips/ChangeLog ]
2004-04-10 Chris Demetriou <cgd@broadcom.com>
* fpu64-ps-sb1.s: New file.
* basic.exp: Recognize mipsisa64sb1 targets, and run fpu64-ps-sb1.s
if appropriate.
2004-04-10 07:11:29 +00:00
Chris Demetriou
55dc1ac473
2004-04-10 Chris Demetriou <cgd@broadcom.com>
...
* fpu64-ps.s: New file.
* basic.exp: Run fpu64-ps.s.
2004-04-10 07:02:57 +00:00
Chris Demetriou
f90bdbaba7
(and adjust paths in last entry, for move
2004-04-10 06:58:54 +00:00
Chris Demetriou
ba3b645acc
move entry from:
...
2004-03-29 Richard Sandiford <rsandifo@redhat.com>
from ChangeLog into sim/mips/Changelog
2004-04-10 06:58:21 +00:00
Chris Demetriou
1423405663
2004-04-09 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (check_fmt): Remove.
(ABS.fmt, ADD.fmt, C.cond.fmta, C.cond.fmtb, CEIL.L.fmt, CEIL.W)
(CVT.D.fmt, CVT.L.fmt, CVT.S.fmt, CVT.W.fmt, DIV.fmt, FLOOR.L.fmt)
(FLOOR.W.fmt, MADD.fmt, MOV.fmt, MOVtf.fmt, MOVN.fmt, MOVZ.fmt)
(MSUB.fmt, MUL.fmt, NEG.fmt, NMADD.fmt, NMSUB.fmt, RECIP.fmt)
(ROUND.L.fmt, ROUND.W.fmt, RSQRT.fmt, SQRT.fmt, SUB.fmt)
(TRUNC.L.fmt, TRUNC.W): Explicitly specify allowed FPU formats.
(check_fmt_p, CEIL.L.fmt, CEIL.W, DIV.fmt, FLOOR.L.fmt)
(FLOOR.W.fmt, RECIP.fmt, ROUND.L.fmt, ROUND.W.fmt, RSQRT.fmt)
(SQRT.fmt, TRUNC.L.fmt, TRUNC.W): Remove all uses of check_fmt.
(C.cnd.fmta): Remove incorrect call to check_fmt_p.
2004-04-10 06:51:49 +00:00
Chris Demetriou
c6f9085cab
2004-04-09 Chris Demetriou <cgd@broadcom.com>
...
* sb1.igen (check_sbx): New function.
(PABSDIFF.fmt, PABSDIFC.fmt, PAVG.fmt): Use check_sbx.
2004-04-10 06:17:55 +00:00
Richard Sandiford
11d66e667f
Fix date in last delta.
2004-03-29 22:01:45 +00:00
Richard Sandiford
a584aa6330
* sim/mips/hilo-hazard-[123].s: New files.
...
* sim/mips/basic.exp (run_hilo_test): New procedure.
(models): Only list models that are included in the configuration.
(submodels): New variable, set to submodels of the above.
(mips64vr-*-elf, mips64vrel-*-elf): New configuration stanza.
Run hilo-hazard-[123].s.
2004-03-29 21:58:01 +00:00
Richard Sandiford
0e1b7197a4
* sim-main.h (MIPS_MACH_HAS_MT_HILO_HAZARD)
...
(MIPS_MACH_HAS_MULT_HILO_HAZARD, MIPS_MACH_HAS_DIV_HILO_HAZARD): New.
* mips.igen (check_mt_hilo, check_mult_hilo, check_div_hilo): Provide
separate implementations for mipsIV and mipsV. Use new macros to
determine whether the restrictions apply.
2004-03-29 21:56:02 +00:00
Ben Elliston
523f6a2717
* MAINTAINERS: Update my mail address.
2004-03-10 02:58:24 +00:00
Richard Sandiford
676a64f422
Add fr450 support.
2004-03-01 10:11:46 +00:00
Richard Sandiford
c7a48b9ac9
cpu/
...
* 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-01 09:42:33 +00:00
Richard Sandiford
8b73069fed
sim/frv/
...
* 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-01 09:33:48 +00:00
Richard Sandiford
8ae0baa268
cpu/
...
* 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-03-01 09:26:33 +00:00
Michael Snyder
915213a4d5
2004-02-02 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (movua.l): Set thislock to 0, not n.
2004-02-13 00:01:19 +00:00
Michael Snyder
d60d62653d
2004-02-12 Michael Snyder <msnyder@redhat.com>
...
* and.s, movi.s, sett.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Fix macro labels.
2004-02-12 22:29:48 +00:00
Michael Snyder
3e5117978b
2004-02-12 Michael Snyder <msnyder@redhat.com>
...
* 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-12 19:32:12 +00:00
Andrew Cagney
df2a9ff479
2004-02-04 Andrew Cagney <cagney@redhat.com>
...
Committed by Andrew Cagney.
* mloopx.in: Update copyright.
(xextract-pbb): Fixed trap for system calls operation in parallel.
* mloop2.in (xextract-pbb): Ditto.
2004-02-04 22:05:37 +00:00
Michael Snyder
0145ab2e52
2004-01-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c: (op tab): Some refs and defs fixes.
"fsrra" -> "fsrra <FREG_N>".
"sleep": replace array ref with array addr.
"trapa": ditto.
2004-01-27 23:30:01 +00:00
Michael Snyder
4ae0cff4ca
2004-01-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c: Comment and whitespace clean-ups.
2004-01-27 23:23:57 +00:00
Andrew Cagney
54273454d0
2004-01-27 Andrew Cagney <cagney@redhat.com>
...
* ppc-instructions: Update copyright.
(convert_to_integer): Add trailing ";" to label.
2004-01-27 13:21:09 +00:00
Chris Demetriou
df0a8012b1
[ sim/ChangeLog ]
...
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-26 08:12:44 +00:00
Ben Elliston
2345c93c5f
* lib/sim-defs.exp (run_sim_test): Delete the .o and .x files if a
...
test passes.
2004-01-23 03:15:27 +00:00
Chris Demetriou
b3208fb8f7
2004-01-19 Chris Demetriou <cgd@broadcom.com>
...
* 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-20 07:06:14 +00:00
Mark Kettenis
4389ce38f0
* simops.c: Include <sys/types.h>.
2004-01-18 14:56:40 +00:00
Ben Elliston
6d0c993e08
* Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2004-01-15 21:25:06 +00:00
Michael Snyder
87acb4a7d1
2004-01-07 Michael Snyder <msnyder@redhat.com>
...
* gencode.c: Whitespace cleanup.
* interp.c: Ditto.
2004-01-10 00:43:28 +00:00
Michael Snyder
4321271fd4
2004-01-07 Michael Snyder <msnyder@redhat.com>
...
* 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-09 19:47:36 +00:00
Michael Snyder
86bc60ebf4
2004-01-07 Michael Snyder <msnyder@redhat.com>
...
* 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-09 19:44:50 +00:00
Michael Snyder
673fc5d0a7
2003-12-18 Michael Snyder <msnyder@redhat.com>
...
* 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-06 01:05:02 +00:00
Michael Snyder
3d29fdb489
2004-01-05 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_load): Don't pass a type to bfd_openr.
2004-01-06 00:58:48 +00:00
Mark Mitchell
a4c9740c82
* armos.c (fcntl.h): Do not include it.
...
(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-29 19:52:57 +00:00
Nick Clifton
6edf0760c5
Add support for m32r-linux target, including a RELA ABI and PIC.
2003-12-19 11:44:01 +00:00
Michael Snyder
f5d3df9661
2003-12-16 Michael Snyder <msnyder@redhat.com>
...
Patch submitted by Anil Paranjape <AnilP1@KPITCummins.com>
* sim-main.h (H8300H_MSIZE): Increase from 18 bits to 24 bits.
2003-12-16 20:21:09 +00:00
Nick Clifton
4b09af6f19
oops - forgot to add this file!
2003-12-12 16:35:21 +00:00
Nick Clifton
16b47b253e
Add support for the m32r2 processor
2003-12-11 11:33:44 +00:00
Dhananjay Deshpande
454d05118b
Fix GDB crash problem when object file of different H8 cpu is loaded
2003-12-11 06:21:12 +00:00
Andrew Cagney
0b2e03b491
More reversion of incomplete m32r changes. Should be back to normal.
2003-12-07 16:13:06 +00:00
Andrew Cagney
cd886a95bf
Revert last commit, build problems.
2003-12-07 02:58:01 +00:00
Andrew Cagney
3c041444b5
2003-12-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
...
* 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-12-07 02:27:45 +00:00
Kevin Buettner
d74c420371
* frv-sim.h (GR_REGNUM_MAX, FR_REGNUM_MAX, PC_REGNUM, SPR_REGNUM_MIN)
...
(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-24 16:45:03 +00:00
Kazu Hirata
a69146da95
* sim-options.c (standard_options): Fix the names of H8
...
variants.
2003-11-22 21:37:49 +00:00
Kazu Hirata
29b52f9306
Move an entry that belong to sim/h8300/ChangeLog.
2003-11-15 16:57:07 +00:00
Dave Brolley
0b01870bf4
2003-11-03 Dave Brolley <brolley@redhat.com>
...
* cache.c (address_interference): Check for higher priority requests
in the same pipeline.
2003-11-03 18:29:57 +00:00
Joern Rennecke
794cd17b28
* interp.c (fsca_s, fsrra_s): New functions.
...
* gencode.c (tab): Add entries for fsca and fsrra.
(expand_opcode): Allow variable length n / m fields.
2003-11-03 14:14:15 +00:00
Dave Brolley
162cec1b31
Fix more typos
2003-10-31 18:31:36 +00:00
Dave Brolley
073926e5c3
Fix typos.
2003-10-31 18:25:05 +00:00
Dave Brolley
9a29f3cae5
2003-10-31 Dave Brolley <brolley@redhat.com>
...
* 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-31 18:23:47 +00:00
Andrew Cagney
fc0a224429
Index: sim/frv/ChangeLog
...
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-31 05:32:46 +00:00
Andrew Cagney
ee3073b541
2003-10-21 Andrew Cagney <cagney@redhat.com>
...
* callback.c (os_truncate): Call "truncate", and not "stat".
2003-10-21 20:41:43 +00:00
Andrew Cagney
198beae2cf
2003-10-19 Andrew Cagney <cagney@redhat.com>
...
* 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-20 14:38:46 +00:00
Shrinivas Atre
59768597d9
2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
...
* 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-17 12:45:55 +00:00
Michael Snyder
77be8302c0
2003-10-16 Michael Snyder <msnyder@redhat.com>
...
* emul_netbsd.c: Only a comment may follow an #endif.
2003-10-17 00:15:25 +00:00
Michael Snyder
c1da8dedae
2003-10-15 Michael Snyder <msnyder@redhat.com>
...
* Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
2003-10-15 21:32:36 +00:00
Joern Rennecke
8822d0016c
include/gdb:
...
* 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-15 12:30:47 +00:00
Alan Modra
9e126dc094
* interp.c (sim_load): Don't refer directly to _cooked_size and vma;
...
Use bfd_section_size and bfd_get_section_vma.
2003-10-11 12:41:12 +00:00
Dave Brolley
5ca353c3d9
2003-10-10 Dave Brolley <brolley@redhat.com>
...
* 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-10 19:30:50 +00:00
Dave Brolley
29a79ca0f9
2003-10-10 Dave Brolley <brolley@redhat.com>
...
* cpu.h, sem.c: Regenerate.
2003-10-10 19:30:21 +00:00
Dave Brolley
b4ab4027a6
2003-10-08 Dave Brolley <brolley@redhat.com>
...
* configure.in: Move frv handling to alphabetically correct placement.
2003-10-08 18:24:37 +00:00
Dave Brolley
086419a898
2003-10-06 Dave Brolley <brolley@redhat.com>
...
* 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.
2003-10-08 18:21:02 +00:00
Dave Brolley
e930b1f54f
2003-10-06 Dave Brolley <brolley@redhat.com>
...
* profile-fr550.[ch]: New files.
* configure.in: Move frv handling to alphabetically correct placement.
* Makefile.in: Add fr550 support.
* frv-sim.h,frv.c,interrups.c,memory.c,mloop.in,pipeline.c,
profile.[ch],registers.c,traps.c: Add fr550 support.
* arch.c,arch.h,cpu.c,cpu.h,cpuall.h,model.h,decode.c,decode.h,sem.c:
Regenerate.
2003-10-08 18:19:33 +00:00
Dave Brolley
22f367a754
2003-09-25 Dave Brolley <brolley@redhat.com>
...
* reset.c (frv_initialize): Call frv_register_control_init first.
2003-09-25 21:45:45 +00:00
Dave Brolley
1c453cd621
2003-09-24 Dave Brolley <brolley@redhat.com>
...
* profile.h (update_FR_ptime): New prototype.
(update_FRdouble_ptime): Ditto.
(update_SPR_ptime): Ditto.
(increase_ACC_busy): Ditto.
(enforce_full_acc_latency): Ditto.
(post_wait_for_SPR): Ditto.
* profile.c (update_FR_ptime): Moved here from profile-fr500.c.
(update_FRdouble_ptime): Ditto.
(update_SPR_ptime): New function.
(increase_ACC_busy): Ditto.
(enforce_full_acc_latency): Ditto.
(vliw_wait_for_fdiv_resource): Correct resource name.
(vliw_wait_for_fsqrt_resource): Ditto.
(post_wait_for_SPR): New function.
* profile-fr500.c (frvbf_model_fr500_u_commit): New function.
(frvbf_model_fr500_u_gr2fr): Pass out_FRk as output register to
adjust_float_register_busy.
(frvbf_model_fr500_u_gr_load): Record latency of SPR registers.
(frvbf_model_fr500_u_fr_load): Wait for and record latency of SPR
registers.
(frvbf_model_fr500_u_float_arith): Ditto.
(frvbf_model_fr500_u_float_dual_arith): Ditto.
(frvbf_model_fr500_u_float_div): Ditto.
(frvbf_model_fr500_u_float_sqrt): Ditto.
(frvbf_model_fr500_u_float_convert): Ditto.
(update_FR_ptime): Moved to profile.c
(update_FRdouble_ptime): Moved to profile.c
* profile-fr400.c (update_FR_ptime): Removed. Identical to functions
for other machines.
(update_FRdouble_ptime): Ditto.
* arch.h,cpu.h,sem.c,decode.[ch],model.c,sem.c: Regenerated.
2003-09-24 19:05:39 +00:00
Michael Snyder
f6f87075ea
2003-09-19 Michael Snyder <msnyder@redhat.com>
...
* sim/frv/nldqi.cgs: Remove. This insn was never implemented
by Fujitsu.
2003-09-19 18:59:45 +00:00
Dave Brolley
d45d015e0c
2003-09-19 Dave Brolley <brolley@redhat.com>
...
* sim/frv/rstqf.cgs: Use nldq instead of nldqi.
* sim/frv/rstq.cgs: Use nldq instead of nldqi.
2003-09-19 17:38:57 +00:00
Dave Brolley
93938d4744
Correct last entry.
2003-09-12 22:07:53 +00:00
Dave Brolley
153431d6b1
2003-09-12 Dave Brolley <brolley@redhat.com>
...
* registers.c (frv_check_spr_read_access): Check for access to
ACC4-ACC63 and ACCG4-ACCG63.
* profile.h (frv-desc.h): #include it.
(spr_busy): New member of FRV_PROFILE_STATE.
(spr_latency): Ditto.
(GNER_FOR_GR): New macro.
(FNER_FOR_FR): New maccro.
(update_SPR_latency): New function.
(vliw_wait_for_SPR): New function.
* profile.c (profile-fr550.h): #include it.
(update_latencies): Update SPR latencies.
(update_target_latencies): Ditto.
(update_SPR_latency): New function.
(vliw_wait_for_SPR): New function.
* profile-fr500.c (frvbf_model_fr500_u_idiv): Record GNER latency.
(frvbf_model_fr500_u_trap): Removed unused variable, ps.
(frvbf_model_fr500_u_check): Ditto.
(frvbf_model_fr500_u_clrgr): New unit modeller for fr500.
(frvbf_model_fr500_u_clrfr): Ditto.
(frvbf_model_fr500_u_spr2gr): Wait for SPR.
(frvbf_model_fr500_u_gr2spr): Ditto.
* frv-sim.h (H_SPR_ACC4): New macro.
(H_SPR_ACCG4): New macro;
(H_SPR_ACC0): Removed.
(H_SPR_ACCG0): Removed.
* arch.h,model.c,sem[ch],decode.[ch]: Regenerated.
2003-09-12 22:05:22 +00:00
Michael Snyder
e961d8dc41
2003-09-11 Michael Snyder <msnyder@redhat.com>
...
* sim/testsuite/sim/frv/movgs.cgs: Change lcr to spr[273],
which according to the comments seems to be the intent.
2003-09-11 18:39:05 +00:00
Dave Brolley
ba9c40534b
2003-09-10 Dave Brolley <brolley@redhat.com>
...
* profile.c (slot_names): FM1 was listed twice. Changed first
instance to FM0. Added IALL, FMALL and FMLOW.
(print_parallel): Don't examine slots with no insns.
2003-09-10 20:40:47 +00:00
Dave Brolley
fbd93201df
2003-09-09 Dave Brolley <brolley@redhat.com>
...
* sim/frv/maddaccs.cgs: move to fr400 subdirectory.
* sim/frv/msubaccs.cgs: move to fr400 subdirectory.
* sim/frv/masaccs.cgs: move to fr400 subdirectory.
2003-09-09 22:34:53 +00:00
Dave Brolley
f9e18f5a11
2003-09-09 Dave Brolley <brolley@redhat.com>
...
* frv.c (do_media_average): Select machine using a switch.
2003-09-09 22:28:33 +00:00
Dave Brolley
a6fc177898
2003-09-08 Dave Brolley <brolley@redhat.com>
...
On behalf of Doug Evans <dje@sebabeach.org>
* Makefile.in (stamp-arch,stamp-cpu,stamp-xcpu): Pass archfile to cgen.
2003-09-08 17:26:20 +00:00
Dave Brolley
75a5ca8f8e
2003-09-08 Dave Brolley <brolley@redhat.com>
...
On behalf of Doug Evans <dje@sebabeach.org>
* Makefile.in (stamp-arch,stamp-cpu, stamp-desc): Pass archfile to cgen.
2003-09-08 17:25:56 +00:00
Dave Brolley
d89a78b651
2003-09-08 Dave Brolley <brolley@redhat.com>
...
On behalf of Doug Evans <dje@sebabeach.org>
* Makefile.in (stamp-arch,stamp-cpu): Pass archfile to cgen.
Remove copying of .cpu file to cgen/cpu, no longer needed.
2003-09-08 17:25:35 +00:00
Dave Brolley
ea52ff81ba
2003-09-08 Dave Brolley <brolley@redhat.com>
...
On behalf of Doug Evans <dje@sebabeach.org>
* cgen.sh: New arg archfile.
* Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2003-09-08 17:24:59 +00:00
Nick Clifton
c5ea1d538f
Add support for v850e1 instructions
2003-09-05 17:46:52 +00:00
Dave Brolley
d03ea14fb1
003-09-03 Dave Brolley <brolley@redhat.com>
...
* cpu.h, model.c, sem.c, decode.h, decode.c: Regenerated.
2003-09-03 23:12:21 +00:00
Ben Elliston
cc9855138d
Spelling fix by the ChangeLog police.
2003-09-03 22:40:45 +00:00
Michael Snyder
19121792cc
2003-09-03 Michael Snyder <msnyder@redhat.com>
...
* sim/frv/fr500/mclracc.cgs: Change mach to 'all',
to be consistant with other tests in the directory.
2003-09-03 21:56:01 +00:00
Michael Snyder
0eb3d26069
2003-09-03 Michael Snyder <msnyder@redhat.com>
...
* sim/frv/interrupts/Ipipe-fr400.cgs: New file.
* sim/frv/interrupts/Ipipe-fr500.cgs: New file.
* sim/frv/interrupts/Ipipe.cgs: Remove (replaced by above).
2003-09-03 21:51:57 +00:00
Andreas Schwab
fb72cee0ad
* Makefile.in (FLAGS_TO_PASS): Pass down $(bindir) and $(mandir).
2003-09-03 18:46:52 +00:00
Dave Brolley
e8d2f504d4
2003-08-29 Dave Brolley <brolley@redhat.com>
...
* Makefile.in (stamp-arch): Copy frv.cpu from $(srcdir)../../cpu
temporarily when regenerating files.
(stamp-cpu): Ditto.
2003-08-29 19:13:00 +00:00
Dave Brolley
b3af7bdf4b
2003-08-29 Dave Brolley <brolley@redhat.com>
...
* MAINTAINERS: Add myself as maintainer of the FRV port.
2003-08-29 17:20:42 +00:00
Dave Brolley
84fabdf612
2003-08-20 Michael Snyder <msnyder@redhat.com>
...
Dave Brolley <brolley@redhat.com>
* frv/: New directory, simulator for the Fujitsu FR-V.
* testsuite/frv-elf/: New directory.
* testsuite/sim/frv/: New directory.
* configure.in: Add frv configury.
* configure: Regenerate.
2003-08-29 16:45:22 +00:00
Dave Brolley
33319edb53
2003-08-20 Michael Snyder <msnyder@redhat.com>
...
Dave Brolley <brolley@redhat.com>
* cgen-par.h (flags, word1): New target-specific
fields of CGEN_WRITE_QUEUE_ELEMENT.
(CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
(CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
* gennltvals.sh: Add frv target.
* nltvals.def: Add frv target.
2003-08-29 16:43:38 +00:00
Dave Brolley
51796a3f8b
2003-08-20 Michael Snyder <msnyder@redhat.com>
...
On behalf of Dave Brolley
* sim/frv: New testsuite.
* frv-elf: New testsuite.
2003-08-29 16:42:18 +00:00
Dave Brolley
4a30611667
New sim testsuite for Fujitsu FRV. Contributed by Red Hat.
2003-08-29 16:41:31 +00:00
Dave Brolley
b34f6357d0
New simulator for Fujitsu frv contributed by Red Hat.
2003-08-29 16:35:47 +00:00
Andrew Cagney
e158f0a010
Index: common/ChangeLog
...
2003-08-28 Andrew Cagney <cagney@redhat.com>
* dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
* sim-options.c (print_help): Cast the format with specifier to
"int".
Index: mn10300/ChangeLog
2003-08-28 Andrew Cagney <cagney@redhat.com>
* dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to
"long".
(read_status_reg): Cast "serial_reg" to "long".
* dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to
"long".
(do_counter6_event, write_mode_reg, write_tm6md): Ditto.
2003-08-28 17:02:00 +00:00
Michael Snyder
be8fb42bc5
2003-08-11 Michael Snyder <msnyder@redhat.com>
...
* macl.s: New file.
* macw.s: New file.
* allinsn.exp: Add new tests for mac.w and mac.l.
2003-08-11 19:36:23 +00:00
Michael Snyder
d1789acece
2003-08-11 Shrinivas Atre <shrinivasa@KPITCummins.com>
...
* sim/sh/gencode.c ( tab[] ): Addition of MAC.L handler and
correction for MAC.W handler
* sim/sh/interp.c ( macl ): New Function. Implementation of
MAC.L handler.
2003-08-11 19:28:05 +00:00
Ben Elliston
c53d60d804
* MAINTAINERS: Update my mail address.
2003-08-10 10:42:22 +00:00
Andrew Cagney
c55433ef61
2003-08-09 Andrew Cagney <cagney@redhat.com>
...
* MAINTAINERS: Andrew Cagney (mips) and Geoff Keating (ppc) drop
maintenance. List igen and sh maintainers. Mention that target
and global maintainers pick up the slack.
2003-08-09 14:10:49 +00:00
Stephane Carrez
a685700c57
* dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
...
control the translation.
(m68hc11tim_print_timer): Update cycle_to_string conversion.
(m68hc11tim_timer_event): Fix handling of output
compare register with its interrupts.
(m68hc11tim_io_write_buffer): Check output compare
after setting M6811_TMSK1.
(m68hc11tim_io_read_buffer): Fix compilation warning.
* dv-m68hc11.c (m68hc11_option_handler): Likewise.
* dv-m68hc11spi.c (m68hc11spi_info): Likewise.
* dv-m68hc11sio.c (m68hc11sio_info): Likewise.
* interrupts.c (interrupts_info): Likewise.
(interrupts_reset): Recognize bootstrap mode.
* sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
(_sim_cpu): Add cpu_start_mode.
(cycle_to_string): Add flags member.
* m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
(cpu_options): Declare new option bootstrap.
(cpu_option_handler): Handle it.
(cpu_info): Update call to cycle_to_string.
2003-08-08 21:02:24 +00:00
Stephane Carrez
77342e5ecc
* sim-main.h (phys_to_virt): Use memory bank parameters to translate
...
the physical address in virtual address.
(struct _sim_cpu): Add memory bank members.
* m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
* interp.c (sim_hw_configure): Create memory bank according to memory
bank parameters.
(sim_get_bank_parameters): New function to obtain memory bank config
from the symbol table.
(sim_prepare_for_program): Call it to obtain the memory bank parameters.
(sim_open): Call sim_prepare_for_program.
* dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
to check if address is within bank window.
(m68hc11cpu_io_read_buffer): Likewise.
(attach_m68hc11_regs): Map the memory bank according to memory bank
parameters.
2003-08-08 20:42:21 +00:00
Stephane Carrez
53b3cd2254
* sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb.
2003-08-08 20:31:10 +00:00
Stephane Carrez
962e9d85f3
* m68hc11_sim.c (print_io_word): New function to print 16-bit value.
...
* sim-main.h (print_io_word): Declare.
* dv-m68hc11tim.c (tmsk1_desc): New description table for TMSK1.
(tflg1_desc): Likewise for TFLG1.
(m68hc11tim_info): Print input and output compare registers
2003-08-08 20:25:50 +00:00
Michael Snyder
240f98d342
2003-08-07 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (expand_ppi_code): Comment spelling fix.
2003-08-07 21:36:43 +00:00
Michael Snyder
735979c782
2003-07-22 Michael Snyder <msnyder@redhat.com>
...
* cmpw.s: Add test for less-than-zero immediate.
* shll.s: Test for shll reg, reg.
* shlr.s: Test for shlr reg, reg.
* mova.s: Add dozens of new mova tests.
2003-07-29 21:07:40 +00:00
Michael Snyder
f408565cc8
2003-07-18 Michael Snyder <msnyder@redhat.com>
...
* compile.c (decode): Enhancements for mova.
Initialize cst, reg, and rdisp inside the loop, for each
new instruction. Defer correction of the disp2 values until
later, and then adjust them by the size of the first operand,
rather than the size of the instruction.
(sim_resume): For mova, adjust the size of the second operand
according to the type of the first operand (INDEXB vs. INDEXW).
In cases where there is only one operand, the other two must
both be composed on the fly.
2003-07-29 21:03:39 +00:00
Michael Snyder
a5de4c570e
2003-07-25 Michael Snyder <msnyder@redhat.com>
...
* pshai.s, pshar.s, pshli.s, pshlr.s: New files.
* allinsn.exp: Add psha, pshl tests.
* pdec.s, pinc.s, padd.s, paddc.s: New files.
* allinsn.exp: Add pdec, pinc, padd, paddc tests.
* pand.s, pdmsb.s: New files.
* allinsn.exp: Add pand, pdmsb tests.
2003-07-26 01:00:33 +00:00
Michael Snyder
9142f946a7
2003-07-08 Michael Snyder <msnyder@redhat.com>
...
* allinsn.exp, testutils.inc, add.s, fabs.s, fadd.s, fcmpeq.s,
fcmpgt.s, fcnvds.s, fcnvsd.s, fdiv.s, fldi0.s, fldi1.s, flds.s,
float.s, fmac.s, fmov.s, fmul.s, fneg.s, frchg.s, fschg.s,
fsqrt.s, fsub.s, ftrc.s, shll16.s, shll2.s, shll8.s, shll.s,
shlr16.s, shlr2.s, shlr8.s, shlr.s, swap.s: New files.
2003-07-26 00:54:58 +00:00
Michael Snyder
437b0e60a1
2003-07-25 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (pshl): Change < to <= (shift by 16 is allowed).
Cast argument of >> to unsigned to prevent sign extension.
(psha): Change < to <= (shift by 32 is allowed).
2003-07-25 23:52:43 +00:00
Michael Snyder
32fcda6a20
2003-07-24 Michael Snyder <msnyder@redhat.com>
...
* gencode.c: Fix typo in comment.
2003-07-25 00:59:36 +00:00
Michael Snyder
e343a93ac0
2003-07-23 Michael Snyder <msnyder@redhat.com>
...
* gencode.c: A few more fix-ups of refs and defs.
(frchg): Raise SIGILL if in double-precision mode.
(ldtlb): We don't simulate cache, so this is a no-op.
(movsxy_tab): Correct a few bit pattern errors.
2003-07-24 00:38:07 +00:00
Michael Snyder
1b606171ad
2003-07-09 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (prnd): Clear LSW of result to zeros.
2003-07-23 21:47:28 +00:00
Michael Snyder
b2bc310144
2003-07-23 Michael Snyder <msnyder@redhat.com>
...
* pmuls.s: New file.
2003-07-23 21:45:36 +00:00
Michael Snyder
fcfae95cf8
2003-07-09 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (pmuls): Expression is mis-parenthesized.
2003-07-23 21:43:50 +00:00
Michael Snyder
ac78c4ba99
2003-07-09 Michael Snyder <msnyder@redhat.com>
...
* configure.in: Add testsuite to extra_subdirs for sh.
* configure: Regenerate.
2003-07-23 21:41:30 +00:00
Michael Snyder
b7c7b62431
2003-07-09 Michael Snyder <msnyder@redhat.com>
...
* sim/sh: New directory. Tests for Renesas sh family.
2003-07-23 21:41:09 +00:00
Michael Snyder
20358547b7
2003-07-08 Michael Snyder <msnyder@redhat.com>
...
* allinsn.exp, testutils.inc, add.s, fabs.s, fadd.s, fcmpeq.s,
fcmpgt.s, fcnvds.s, fcnvsd.s, fdiv.s, fldi0.s, fldi1.s, flds.s,
float.s, fmac.s, fmov.s, fmul.s, fneg.s, frchg.s, fschg.s,
fsqrt.s, fsub.s, ftrc.s, shll16.s, shll2.s, shll8.s, shll.s,
shlr16.s, shlr2.s, shlr8.s, shlr.s, swap.s: New files.
2003-07-23 21:40:43 +00:00
Michael Snyder
c13a4caaf8
2003-07-09 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (ppi_gensim): For a conditional ppi insn, if the
condition is false, we want to return (not break). A break
will take us to the end of the function where registers will
be updated, whereas the desired outcome is for nothing to change.
2003-07-23 21:28:06 +00:00
Michael Snyder
b939d772c1
2003-06-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (op tab): Some fix-ups of refs and defs.
(ocbi, ocbp): Cache not simulated, but may cause memory fault.
(gensym_caselist): Add default case to switch statement.
(expand_ppi_code): Add default case to switch statement.
2003-07-23 21:25:41 +00:00
Michael Snyder
d2f18ae42a
2003-06-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (op tab): Implement movca.l.
2003-07-23 21:23:32 +00:00
Michael Snyder
9e1d0fc1a1
2003-06-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (op movsxy_tab): Fix an error in the bit pattern.
2003-07-23 21:17:33 +00:00
Michael Snyder
15dee5d561
2003-06-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (gensim_caselist): The movy instructions use
registers R6 and R7 (not R4 and R5 like the movx insns).
2003-07-23 21:14:54 +00:00
Michael Snyder
e22fef83d7
2003-07-22 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_resume): Revert 6-24 change, it does not
work with gdb breakpoints.
2003-07-22 19:07:30 +00:00
Michael Snyder
55acb21b1f
2003-07-17 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_resume): Handle shll reg, reg and shlr reg, reg.
2003-07-18 00:10:41 +00:00
Michael Snyder
0f42aa719d
2003-07-17 Michael Snyder <msnyder@redhat.com>
...
* compile.c (decode): IMM16 is always zero-extended.
2003-07-18 00:08:23 +00:00
Michael Snyder
e53a5a69d7
2003-07-03 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (movs): Fix a couple of text transpositions.
2003-07-04 00:03:52 +00:00
Michael Snyder
f0861129d5
2003-06-24 Michael Snyder <msnyder@redhat.com>
...
* sim-main.h (SIM_WIFSTOPPED, SIM_WSTOPSIG): Define.
* compile.c (sim_resume): Use the above to return stop signal.
2003-07-02 19:04:58 +00:00
Michael Snyder
0b2828595e
2003-06-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (op movsxy_tab): Fix up some copy/paste errors
in name: s/REG_x/REG_y/.
2003-06-28 01:34:47 +00:00
Michael Snyder
8dc30ef74a
2003-06-27 Michael Snyder <msnyder@redhat.com>
...
* gencode.c (op tab): Move misplaced semicolon.
2003-06-27 21:18:42 +00:00
Michael Snyder
ac59bf8dbf
2003-06-23 Michael Snyder <msnyder@redhat.com>
...
* nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2003-06-23 18:03:17 +00:00
Michael Snyder
72f536bd78
2003-06-23 Michael Snyder <msnyder@redhat.com>
...
* sim-reg.c: Fix cut-and-paste bug in comment.
2003-06-23 17:59:08 +00:00
Andrew Cagney
345d88d96e
2003-06-22 Andrew Cagney <cagney@redhat.com>
...
Written by matthew green <mrg@redhat.com>, with fixes from Aldy
Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
Nick Clifton <nickc@redhat.com>.
* ppc-instructions: Include altivec.igen and e500.igen.
(model_busy, model_data): Add vr_busy and vscr_busy.
(model_trace_release): Trace vr_busy and vscr_busy.
(model_new_cycle): Update vr_busy and vscr_busy.
(model_make_busy): Update vr_busy and vscr_busy.
* registers.c (register_description): Add Altivec and e500
registers.
* psim.c (psim_read_register, psim_read_register): Handle Altivec
and e500 registers.
* ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
* configure.in (sim_filter): When *altivec* add "av". When *spe*
or *simd* add e500.
(sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
WITH_E500.
* configure: Re-generate.
* e500.igen, altivec.igen: New files.
* e500_expression.h, altivec_expression.h: New files.
* idecode_expression.h: Update copyright. Include
"e500_expression.h" and "altivec_expression.h".
* e500_registers.h, altivec_registers.h: New files.
* registers.h: Update copyright. Include "e500_registers.h" and
"altivec_registers.h".
(registers): Add Altivec and e500 specific registers.
* Makefile.in (IDECODE_H): Add "idecode_e500.h" and
"idecode_altivec.h".
(REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
(tmp-igen): Add dependencies on altivec.igen and e500.igen .
2003-06-22 16:48:12 +00:00
Andrew Cagney
ea0869653a
2003-06-22 Andrew Cagney <cagney@redhat.com>
...
* interp.c (xfer_mem): Simplify. Only do a single partial
transfer. Problem reported by Tom Rix.
2003-06-22 13:38:28 +00:00
Andrew Cagney
1f1b28179f
2003-06-22 Andrew Cagney <cagney@redhat.com>
...
From matthew green <mrg@redhat.com>:
* sim-fpu.h: Update copyright.
(sim_fpu_fraction, sim_fpu_guard): New prototypes.
* sim-fpu.c: Update copyright.
(sim_fpu_fraction, sim_fpu_guard): New inline functions.
2003-06-22 13:36:26 +00:00
Andrew Cagney
4056a1ef29
Oops! Committed to much, reverting :-(
2003-06-22 13:31:57 +00:00
Andrew Cagney
89c0d7ddd7
Fix changelog
2003-06-22 13:29:17 +00:00
Andrew Cagney
911b23336b
2003-06-22 Andrew Cagney <cagney@redhat.com>
...
Problems reported by Joshua LeVasseur.
* emul_chirp.c: Update copyright.
(chirp_emul_nextprop): Return the first property.
* hw_htab.c: Update copyright.
(htab_decode_hash_table): Fix check for htab size.
2003-06-22 13:03:40 +00:00
Andrew Cagney
945d18fb9c
2003-06-21 Andrew Cagney <cagney@redhat.com>
...
* interrupts.c: Update copyright.
(external_interrupt): Fix test for already pending interrupt.
Problem found by Joshua LeVasseur.
2003-06-22 04:03:15 +00:00
Andrew Cagney
21f86aab13
2003-06-21 Andrew Cagney <cagney@redhat.com>
...
* ppc-instructions: Add missing +8 line. Found by blofeldus at
yahoo.com.
2003-06-22 01:52:34 +00:00
Andrew Cagney
0f2f1341dd
2003-06-21 Andrew Cagney <cagney@redhat.com>
...
From Ian Lance Taylor <ian@airs.com>:
* hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap
second and third arguments.
2003-06-22 01:16:38 +00:00
Andrew Cagney
61ca1de73a
2003-06-21 Andrew Cagney <cagney@redhat.com>
...
* hw_com.c (hw_com_device_init_data): Check that the output, and
not input file opened. Pointed out by masahino tky3.3web.ne.jp.
2003-06-22 00:51:44 +00:00
Frank Ch. Eigler
6ec8fa7a80
2003-06-17 Doug Evans <dje@sebabeach.org>
...
* cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
with disassemble_info:read_memory_func.
* cgen-trace.c (sim_disasm_read_memory): Ditto.
2003-06-20 17:27:10 +00:00
Andrew Cagney
601cecf016
2003-06-20 Andrew Cagney <cagney@redhat.com>
...
* sim_calls.c (sim_create_inferior): Assert that
psim_write_register succeeded.
(sim_fetch_register, sim_store_register): Make "regname" constant.
Delete Altivec hack. Return result from psim_read_register /
psim_write_register.
* psim.h (psim_read_register, psim_write_register): Change return
type to int. Update comments.
* psim.c: Update copyright.
(psim_stack): Assert that the psim_read_register worked.
(psim_read_register, psim_read_register): Return the register's
size. Allocate the cooked buffer dynamically.
* hw_register.c: Update copyright.
(do_register_init): Check that psim_write_register succeeded.
* hw_init.c: Update copyright.
(create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
that the register transfer worked.
2003-06-20 13:32:34 +00:00
Andrew Cagney
d81bb16ac0
2003-06-19 Andrew Cagney <cagney@redhat.com>
...
* ld-insn.h: Update copyright.
(cache_fields): Define.
(insn_table_fields): Add insn_field_6 and insn_field_7.
(load_insn_table): Pass in the "cache_rules".
* ld-insn.c: Update copyright.
(load_insn_table): Add parameter "cache_rules". Handle "cache",
"computed" and "scratch" fields.
(main): Pass "cache_rules" to load_insn_table.
* ld-cache.h: Update copyright.
(append_cache_table): Declare.
* ld-cache.c: Update copyright.
(append_cache_table): New function.
(load_cache_table): Call.
* gen-model.c: Include "ld-cache.h".
* gen-itable.c: Include "ld-cache.h".
* igen.c: Move #include "ld-cache.h" to earlier. Update
copyright.
(main): Permit a NULL "cache_rules". Pass address of
"cache_rules" to load_insn_table.
* Makefile.in (tmp-ld-insn): Add "ld-cache.o".
(tmp-igen): Do not include ppc-cache-rules.
(gen-itable.o, gen-model.o): Add "ld-cache.h".
* ppc-cache-rules: Delete file.
* ppc-instructions: Add cache rules.
2003-06-20 03:59:33 +00:00
Andrew Cagney
8d64d0fdca
2003-06-19 Andrew Cagney <cagney@redhat.com>
...
* Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
(SIM_FPU_FLAGS): Define.
(icache.o): Delete explicit compile command.
(semantics.o, idecode.o): Delete explicit compile command.
(NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
* gen-support.c (gen_support_c): Generate #include of
"sim-inline.h" and "sim-fpu.h", but conditional on
HAVE_COMMON_FPU.
* gen-idecode.c (gen_idecode_c): Ditto.
* igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
"sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
Move to before "support.h".
* Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
copyright.
2003-06-19 18:42:30 +00:00
Michael Snyder
3df3a316d3
2003-05-30 Alexandre Oliva <aoliva@redhat.com>
...
* allinsn.exp: Fix typos introduced on 2003-05-27.
2003-05-29 Michael Snyder <msnyder@redhat.com>
* tas.s: Use er4 for h8h and h8s, er3 for h8sx.
2003-05-28 Michael Snyder <msnyder@redhat.com>
* subs.s: New file.
* subx.s: New file.
* allinsn.exp: Add new subs and subx tests.
* testutils.inc: Simplify (and fix) set_carry_flag.
(clear_carry_flag, set_zero_flag, clear_zero_flag...): New macros.
* addx.s: Use simplified set_carry_flag.
2003-05-27 Michael Snyder <msnyder@redhat.com>
* tas.s: New file.
* band.s: New file.
* biand.s: New file.
* allinsn.exp: Add tas, band, biand tests.
* brabc.s: Add abs8 test.
* bset.s: Add bset/ne, bclr/ne tests.
2003-05-23 Michael Snyder <msnyder@redhat.com>
* and.b.s: Add andc exr.
* or.b.s: Add orc.exr.
* xor.b.s: Add xor exr.
* jmp.s: Fix 8-bit indirect test. Add 7-bit vector test.
2003-05-22 Michael Snyder <msnyder@redhat.com>
* stack.s: Add rte/l and rts/l tests.
* allinsn.exp: Add stack tests.
2003-05-21 Michael Snyder <msnyder@redhat.com>
* stack.s: New file: test stack operations.
* stack.s: Add bsr, jsr tests.
* stack.s: Add trapa, rte tests.
* div.s: Corrections for size of dividend.
2003-05-20 Michael Snyder <msnyder@redhat.com>
* mul.s: Corrections for unsigned multiply.
* div.s: New file, test div instructions.
* allinsn.exp: Add div test.
2003-05-19 Michael Snyder <msnyder@redhat.com>
* mul.s: New file, test mul instructions.
* allinsn.exp: Add mul test.
2003-06-19 02:40:12 +00:00
Michael Snyder
9f70f8ec04
2003-06-18 Michael Snyder <msnyder@redhat.com>
...
* compile.c: Replace "Hitachi" with "Renesas".
(decode): Distinguish AV_H8S from AV_H8H.
(sim_resume): H8SX can use any register for TAS.
(decode): Add support for VECIND.
(sim_resume): Implement rte/l and rts/l.
(GETSR): New macro (actually old macro reincarnated).
(decode): Add handling for IMM2.
(sim_resume): Drop extra block around jmp, jsr, rts.
Add handling for trapa and rte.
For divxu.b, change 0xffff mask to 0xff.
(set_h8300h): Add bfd_mach_h8300sxn machine.
2003-06-19 02:14:14 +00:00
Michael Snyder
18ad32b593
2003-06-18 Corinna Vinschen <vinschen@redhat.com>
...
* sim-main.h (enum h8_regnum): Turn around order of MACH, MACL
and SBR, VBR (for benefit of gdb).
2003-06-19 01:54:22 +00:00
Michael Snyder
173b1c982a
2003-06-05 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_fetch_register): Handle SBR, VBR, MACH, MACL.
(sim_store_register): Ditto.
2003-06-19 00:49:33 +00:00
Chris Demetriou
9a1d84fb16
2003-06-17 Richard Sandiford <rsandifo@redhat.com>
...
* mips.igen (do_dmultx): Fix check for negative operands.
2003-06-18 01:12:03 +00:00
Michael Snyder
27ebfdf49b
2003-06-04 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_info): Fix typo in output.
* h8300/compile.c (set_h8300h): Replace 'flag' arguments
with a bfd_machine argument, and decode it inline.
Check for bfd_mach_h8300hn and bfd_mach_h8300sn.
2003-06-05 02:18:01 +00:00
Michael Snyder
828c9ae668
2003-06-04 Michael Snyder <msnyder@redhat.com>
...
* common/run.c (main): Remove SIM_H8300 ifdef.
(usage): Ditto.
* common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
(standard_options): Add '-x' for h8/300sx.
(standard_option_handler): Add case for SIM_H8300SX.
2003-06-05 02:17:29 +00:00
Michael Snyder
e8c1a4e716
2003-06-04 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_info): Fix typo in output.
2003-06-04 18:28:21 +00:00
Michael Snyder
dc5c3759e0
2003-06-03 Michael Snyder <msnyder@redhat.com>
...
* h8300/compile.c: Add h8300sx insns and addressing modes.
* h8300/sim-main.h: Replaces h8300/inst.h.
* h8300/Makefile.in: Tweak to bring in some sim/common stuff.
2003-06-03 21:38:27 +00:00
Ian Lance Taylor
ae451ac6d4
Use $(SHELL) whenever we invoke move-if-change.
2003-05-16 07:11:43 +00:00
Michael Snyder
a27a0651eb
2003-04-13 Michael Snyder <msnyder@redhat.com>
...
* sim/h8300: New directory. Tests for Renesas h8/300 family.
2003-05-14 22:59:12 +00:00
Michael Snyder
cd44367114
New ChangeLog
2003-05-14 21:08:29 +00:00
Michael Snyder
32ebdc4ce3
2003-05-14 Michael Snyder <msnyder@redhat.com>
...
* addb.s, addw.s, addl.s, addw.s, addx.s, andb.s, andw.s, andl.s,
bfld.s, brabc.s, bra.s, bset.s, cmpb.s, cmpw.s, cmpl.s, daa.s,
das.s, dec.s, extw.s, extl.s, inc.s, jmp.s, ldc.s, ldm.s, mac.s,
mova.s, movb.s, movw.s, movl.s, movmd.s, movsd.s, neg.s, nop.s,
not.s, orb.s, orw.s, orl.s, rotl.s, rotr.s, rotxl.s, rotxr.s,
shal.s, shar.s, shll.s, shlr.s, stc.s, subb.s, subw.s, subl.s,
xorb.s, xorw.s, xorl.s: New files.
* allinsn.exp: New file.
2003-05-14 21:07:55 +00:00
Michael Snyder
105e800205
Remove for renaming with 8.3 dos-compatible names.
2003-05-14 20:58:21 +00:00
Michael Snyder
ab12e95ba6
Remove, rename using dos-compatible 8.3 names.
2003-05-14 20:01:55 +00:00
Andrew Cagney
f6684c3170
Index: gdb/ChangeLog
...
2003-05-07 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (remote_d10v_translate_xfer_address): Add
"regcache".
(d10v_print_registers_info): Update.
(d10v_dmap_register, d10v_imap_register): Delete functions.
(struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
and "imap_register".
(d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
(d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
* arch-utils.c (generic_remote_translate_xfer_address): Add
"regcache" and "gdbarch" parameters.
* gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
parameter. Change class to multi-arch.
* gdbarch.h, gdbarch.c: Re-generate.
* remote.c (remote_xfer_memory): Use
gdbarch_remote_translate_xfer_address.
Index: include/gdb/ChangeLog
2003-05-07 Andrew Cagney <cagney@redhat.com>
* sim-d10v.h (sim_d10v_translate_addr): Add regcache parameter.
(sim_d10v_translate_imap_addr): Add regcache parameter.
(sim_d10v_translate_dmap_addr): Ditto.
Index: sim/d10v/ChangeLog
2003-05-07 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_d10v_translate_addr): Add "regcache" parameter.
(sim_d10v_translate_imap_addr): Ditto.
(sim_d10v_translate_dmap_addr): Ditto.
(xfer_mem): Pass NULL regcache to sim_d10v_translate_addr.
(dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr.
(dmap_register, imap_register): Add "regcache" parameter.
(imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr.
(sim_fetch_register): Pass NULL regcache to imap_register and
dmap_register.
2003-05-07 19:21:13 +00:00
Chris Demetriou
dd69d29260
[igen/ChangeLog]
...
2003-05-03 Chris Demetriou <cgd@broadcom.com>
* compare_igen_models: Tweak attribution slightly.
[mips/ChangeLog]
2003-05-03 Chris Demetriou <cgd@broadcom.com>
* cp1.c: Tweak attribution slightly.
* cp1.h: Likewise.
* mdmx.c: Likewise.
* mdmx.igen: Likewise.
* mips3d.igen: Likewise.
* sb1.igen: Likewise.
2003-05-02 22:17:21 +00:00
Andrew Cagney
601da3163f
Fix changelog.
2003-04-16 00:58:40 +00:00
Chris Demetriou
bcd0068ecf
2003-04-15 Richard Sandiford <rsandifo@redhat.com>
...
* vr.igen (do_vr_mul_op): Zero-extend the low 32 bits of
unsigned operands.
2003-04-16 00:52:08 +00:00
Michael Snyder
80d35d9032
2003-04-13 Michael Snyder <msnyder@redhat.com>
...
* Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2003-04-13 17:45:11 +00:00
Michael Snyder
b7f97e9cb4
2003-04-13 Michael Snyder <msnyder@redhat.com>
...
* compile.c (sim_resume): Implement 'daa' and 'das' instructions.
2003-04-13 17:06:29 +00:00
Michael Snyder
5fe8b0dfe1
2003-04-13 Michael Snyder <msnyder@redhat.com>
...
* configure.in: Add testsuite to extra_subdirs.
* configure: Regenerate.
2003-04-13 Michael Snyder <msnyder@redhat.com>
* sim/h8300: New directory. Tests for Hitachi h8/300 family.
2003-04-13 16:44:57 +00:00
Nick Clifton
c88931b0ed
Only call XScale_check_memacc if in XScale mode.
2003-04-13 08:54:06 +00:00
Nick Clifton
1eec9e335d
oops - omitted from previous delta
2003-04-07 10:09:54 +00:00
Nick Clifton
ebc115b7bb
* simops.c (OP_40): Delete. Move code to...
...
* v850-igen.c (): ...Here. Sign extend the first operand.
* simops.h (OP_40): Remove prototype.
2003-04-06 08:51:04 +00:00
Nick Clifton
49634642a5
Add tests for ARM simulator.
2003-04-01 11:07:58 +00:00
Nick Clifton
3a3d6f654d
Remove use of __IWMMXT__.
2003-03-30 10:39:22 +00:00
Nick Clifton
0f026fd00c
Add iWMMXt support to ARM simulator
2003-03-27 17:13:33 +00:00
Nick Clifton
dd97b6fd7d
fix date on latest ChangeLog entry.
2003-03-20 12:32:05 +00:00
Nick Clifton
f603c8fe44
Add Cirrus Maverick support to arm simulator
2003-03-20 12:25:07 +00:00
D.Venkatasubramanian
d1360fb06a
Added Commandline Support.
...
2003-03-20 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (cmdline_location): Added function to
return the location of 8-bit (256 locations) where the
Command Line arguments would be stored.
(decode): Added a TRAP to 0xcc for Commandline
processing using pseudo opcode O_SYS_CMDLINE.
(sim_resume): Added handling of O_SYS_CMDLINE Trap.
(sim_create_inferior): Setting a pointer to
Commandline Args array.
* inst.h: Added a new variable ptr_command_line for
storing pointer to Commandline array.
2003-03-20 06:00:25 +00:00
D.Venkatasubramanian
bf17422685
File I/O Support added.
...
2003-03-14 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (decode): Added code for some more magic traps.
* compile.c (sim_resume): Added support for File I/O system
calls through callback to host_system.
System calls provided support for :
open, read, write, lseek, close, stat, fstat
Only basic support for stat and fstat.
2003-03-14 04:12:01 +00:00
Nick Clifton
0d9fd8f1d0
(SWIWrite0): Catch big-endian bug when printing characters
2003-03-02 10:28:29 +00:00
Stephane Carrez
9b9f7b3ccd
* Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
...
to 32 to support memory bank switching; temporarily use 32-bit for
WORD_BITSIZE to avoid a bug in sim-common.
2003-03-02 10:03:40 +00:00
Andrew Cagney
876fec0252
2003-03-01 Andrew Cagney <cagney@redhat.com>
...
* sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
(sim_engine_vabort): Ditto.
2003-03-01 20:54:22 +00:00
Stephane Carrez
00416c6ed6
* interp.c (sim_fetch_register): Only store a single byte for
...
1 byte registers.
2003-03-01 16:00:09 +00:00
Andrew Cagney
6b4a89357a
Index: arm/ChangeLog
...
2003-02-27 Andrew Cagney <cagney@redhat.com>
* wrapper.c (sim_create_inferior, sim_open): Rename _bfd to bfd.
Index: common/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
* sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
* nrun.c (main): Ditto.
Index: d10v/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: erc32/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: h8300/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: h8500/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: i960/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: m32r/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: m68hc11/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_prepare_for_program, sim_open)
(sim_create_inferior): Rename _bfd to bfd.
Index: mcore/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: mips/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open):
(sim_create_inferior):
Index: mn10200/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: mn10300/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior, sim_open)
(sim_create_inferior): Rename _bfd to bfd.
Index: ppc/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: sh/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd
to bfd.
Index: v850/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
Index: z8k/ChangeLog
2003-02-27 Andrew Cagney <cagney@redhat.com>
* iface.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
2003-02-27 23:26:34 +00:00
Andrew Cagney
dbd7cd63b9
Index: common/ChangeLog
...
2003-02-26 Andrew Cagney <cagney@redhat.com>
* sim-engine.h (sim_engine_abort): Add noreturn attribute.
(sim_engine_vabort): Ditto.
(sim_engine_halt, sim_engine_restart): Ditto.
Index: mn10300/ChangeLog
2003-02-26 Andrew Cagney <cagney@redhat.com>
* am33.igen: Call sim_engine_abort instead of abort.
2003-02-26 23:27:09 +00:00
David Carlton
bb6317d347
2003-02-26 David Carlton <carlton@math.stanford.edu>
...
* dv-mn103tim.c (read_special_timer6_reg): Add break after
empty default: label.
(write_special_timer6_reg): Ditto.
Update copyright.
2003-02-26 17:04:19 +00:00
Joern Rennecke
1bbd6057d5
cgen:
...
* cpu/sh64-media.cpu (make-mextr): Fix setting of count.
sim/sh64:
* sem-media-switch.c, sem-media.c: Regenerate.
2003-02-21 20:05:42 +00:00
Andrew Cagney
836cc9f493
Index: include/gdb/ChangeLog
...
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.c (gdbsim_insert_breakpoint)
(gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
code.
Index: include/gdb/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.h (SIM_RC): Delete unused SIM_RC_UNKNOWN_BREAKPOINT,
SIM_RC_INSUFFICIENT_RESOURCES and SIM_RC_DUPLICATE_BREAKPOINT.
(sim_set_breakpoint, sim_clear_breakpoint): Delete declarations.
(sim_clear_all_breakpoints, sim_enable_breakpoint): Ditto.
(sim_enable_all_breakpoints, sim_disable_breakpoint): Ditto.
(sim_disable_all_breakpoints): Ditto.
Index: sim/common/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
(sim-break_h): Delete macro.
(sim-break.o): Delete rule.
* sim-break.c: Delete file.
* sim-break.h: Delete file.
* sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
(STATE_BREAKPOINTS): Delete macro.
(sim_state_base): Delete field breakpoints.
* sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
sim_break_install to array.
2003-02-20 14:37:59 +00:00
Nick Clifton
2bc8946db8
Commit Sh2E addition
2003-02-06 10:42:33 +00:00
Kazu Hirata
ec38ce9947
* compile.c (init_pointers): Abort if wreg never gets initialized.
...
(sim_resume): Fix the handling of exts.w and extu.w.
2003-02-05 23:10:27 +00:00
Kazu Hirata
ad4cda162b
* compile.c (sim_resume): Fix the handling of bxor.
2003-02-01 03:00:14 +00:00
Michael Snyder
837fd61c26
Missed one...
2003-01-16 20:03:30 +00:00
Michael Snyder
a4f27e3e0a
2003-01-16 Michael Snyder <msnyder@redhat.com>
...
* compile.c: Change K&R function definitions to ISO.
(fetch): Make static, and eliminate unused parameter 'n'.
2003-01-16 19:54:35 +00:00
Chris Demetriou
d29e330fda
2003-01-14 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (LUXC1, SUXC1): New, for mipsV and mips64.
2003-01-14 19:01:41 +00:00
Chris Demetriou
a2353a08ac
2003-01-14 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (EI, DI): Remove.
2003-01-14 18:15:08 +00:00
Ben Elliston
45fdcabea2
2003-01-10 Ben Elliston <bje@redhat.com>
...
* README.Cygnus: Rename from this ..
* README: .. to this.
2003-01-10 05:27:17 +00:00
Ben Elliston
7f53bce4e3
* remove duplicated entry from 2002-05-17 on 2002-05-20.
...
* s/SWI_TARGET_SWITCHES/SIM_TARGET_SWITCHES/.
2003-01-10 04:51:58 +00:00
Kazu Hirata
45a15d6f78
* run.c (usage): Fix typos.
2003-01-08 17:18:29 +00:00
Chris Demetriou
805517776c
2003-01-05 Richard Sandiford <rsandifo@redhat.com>
...
* Makefile.in (tmp-run-multi): Fix mips16 filter.
2003-01-06 01:57:40 +00:00
Chris Demetriou
4c54fc26ed
2003-01-04 Richard Sandiford <rsandifo@redhat.com>
...
Andrew Cagney <ac131313@redhat.com>
Gavin Romig-Koch <gavin@redhat.com>
Graydon Hoare <graydon@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Dave Brolley <brolley@redhat.com>
Chris Demetriou <cgd@broadcom.com>
* configure.in (mips64vr*): Define TARGET_ENABLE_FR to 1.
(sim_mach_default): New variable.
(mips64vr-*-*, mips64vrel-*-*): New configurations.
Add a new simulator generator, MULTI.
* configure: Regenerate.
* Makefile.in (SIM_MULTI_OBJ, SIM_EXTRA_DISTCLEAN): New variables.
(multi-run.o): New dependency.
(SIM_MULTI_ALL, SIM_MULTI_IGEN_CONFIGS): New variables.
(tmp-mach-multi, tmp-itable-multi, tmp-run-multi): New rules.
(tmp-multi): Combine them.
(BUILT_SRC_FROM_MULTI): New variable. Depend on tmp-multi.
(clean-extra): Remove sources in BUILT_SRC_FROM_MULTI.
(distclean-extra): New rule.
* sim-main.h: Include bfd.h.
(MIPS_MACH): New macro.
* mips.igen (vr4120, vr5400, vr5500): New models.
(clo, clz, dclo, dclz, madd, maddu, msub, msub, mul): Add *vr5500.
* vr.igen: Replace with new version.
2003-01-05 07:56:59 +00:00
Chris Demetriou
e6c674b896
2003-01-04 Chris Demetriou <cgd@broadcom.com>
...
* configure.in: Use SIM_AC_OPTION_RESERVED_BITS(1).
* configure: Regenerate.
2003-01-05 06:13:51 +00:00
Chris Demetriou
28f50ac815
2002-12-31 Chris Demetriou <cgd@broadcom.com>
...
* sim-main.h (check_branch_bug, mark_branch_bug): Remove.
* mips.igen: Remove all invocations of check_branch_bug and
mark_branch_bug.
2002-12-31 21:31:32 +00:00
Kazu Hirata
d0fe2f7e74
* compile.c: Fix formatting.
...
* inst.h: Likewise.
2002-12-26 05:44:46 +00:00
Doug Evans
574654558a
* arch.c,arch.h,cpuall.h: Regenerate.
...
* cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
2002-12-20 02:26:35 +00:00
Chris Demetriou
5071ffe6bf
2002-12-16 Chris Demetriou <cgd@broadcom.com>
...
* tconfig.in: Include "gdb/callback.h" and "gdb/remote-sim.h".
2002-12-17 07:27:53 +00:00
Andrew Cagney
0da2b66558
2002-11-30 Andrew Cagney <cagney@redhat.com>
...
* simops.c: Use int, 1, 0 instead of boolean, true and false.
* sim-main.h: Ditto.
2002-11-30 18:01:30 +00:00
Andrew Cagney
6c0a25e9f8
2002-11-28 Andrew Cagney <cagney@redhat.com>
...
* sim-main.h: Only include "idecode.h" once.
* Makefile.in (SIM_EXTRA_DEPS): Define.
2002-11-28 18:08:26 +00:00
Chris Demetriou
127a77fee0
2002-11-27 Richard Sandiford <rsandifo@redhat.com>
...
* sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2002-11-28 01:32:03 +00:00
Andrew Cagney
b85e4829fa
2002-11-22 Andrew Cagney <ac131313@redhat.com>
...
* dv-core.c: Update copyright. sim/common contributed to the FSF.
* dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
* hw-device.h, hw-handles.c, hw-handles.h: Ditto.
* hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
* hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
* sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
* sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
* sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
* sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
* sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2002-11-23 01:12:05 +00:00
Andrew Cagney
1fdb3c684d
2002-11-22 Andrew Cagney <cagney@redhat.com>
...
* gen.c (name_cmp): Rename format_name_cmp.
(insn_list_insert): When a merge, compare the format name and
instruction name. Add trace messages.
2002-11-22 23:20:46 +00:00
Andrew Cagney
4e0bf4c4d0
2002-11-21 Andrew Cagney <ac131313@redhat.com>
...
* filter.c: Re-indent.
* filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto.
* gen-icache.c, gen-icache.h, gen-idecode.c: Ditto.
* gen-idecode.h, gen-itable.c, gen-itable.h: Ditto.
* gen-model.c, gen-model.h, gen-semantics.c: Ditto.
* gen-semantics.h, gen-support.c, gen-support.h: Ditto.
* gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
* ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
* lf.h, misc.c, misc.h, table.c, table.h: Ditto.
2002-11-22 04:20:49 +00:00
Andrew Cagney
feaee4bdbb
2002-11-21 Andrew Cagney <ac131313@redhat.com>
...
* Makefile.in: Update copyright. IGEN contributed to the FSF.
* filter.c, filter.h, filter_host.c, filter_host.h: Ditto.
* gen-engine.c, gen-engine.h, gen-icache.c, gen-icache.h: Ditto.
* gen-idecode.c, gen-idecode.h, gen-itable.c: Ditto.
* gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c: Ditto.
* gen-semantics.h, gen-support.c, gen-support.h, gen.c: Ditto.
* gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
* ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
* lf.h, misc.c, misc.h, table.c, table.h: Ditto.
2002-11-22 04:09:40 +00:00
Andrew Cagney
d25b15536c
Index: common/ChangeLog
...
2002-11-13 Andrew Cagney <cagney@redhat.com>
* run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
Index: d10v/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* simops.c: Include <string.h>.
2002-11-14 02:54:14 +00:00
Chris Demetriou
ac835424b5
2002-11-06 Richard Sandiford <rsandifo@redhat.com>
...
* gen-engine.c (print_engine_issue_prefix_hook): Don't add the
global prefix to ENGINE_ISSUE_PREFIX_HOOK.
(print_engine_issue_postfix_hook): Likewise ENGINE_ISSUE_POSTFIX_HOOK.
2002-11-06 18:41:09 +00:00
Chris Demetriou
d690312feb
2002-11-06 Richard Sandiford <rsandifo@redhat.com>
...
* Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
(distclean): Depend on it.
2002-11-06 18:40:25 +00:00
Alan Modra
7c3e3b337e
* cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2002-10-14 10:55:39 +00:00
Joern Rennecke
fd8f4948fe
gcc uses trap 33 for profiling, but the simulator didn't support it.
...
This patch fixes the gcc.dg/nest.c failures for sh-elf.
Fri Oct 11 16:22:28 2002 J"orn Rennecke <joern.rennecke@superh.com>
* interp.c (trap): Return int. Take extra parameter for address
of the trap instruction. Changed all callers.
Add case 33 for profiling.
* gencode.c (trapa): Handle trap 33 using the trap function.
Add read of vector for generic traps.
2002-10-11 15:31:28 +00:00
Jim Wilson
30458d39d6
Fix handling of v850e bit-twiddle instructions.
...
* simops.c (OP_E6077E0): And op1 with 7 after reading register, not
before.
(BIT_CHANGE_OP): Likewise.
2002-09-30 20:11:08 +00:00
Andrew Cagney
058f270dea
Add support for -m option. Fix PR gdb/433.
2002-09-27 23:57:50 +00:00
Andrew Cagney
fe1198e63e
2002-09-27 Andrew Cagney <ac131313@redhat.com>
...
* hw_disk.c (hw_disk_init_address): Set device type to "block",
not "disk".
2002-09-27 21:02:14 +00:00
Jim Wilson
2e8162cedb
Fix bug in support for trap instruction.
...
* simops (OP_10007E0): Don't subtract 4 from PC.
2002-09-27 18:59:08 +00:00
Nick Clifton
5d6a173dca
Remove v850ea references
2002-09-19 07:52:02 +00:00
Dave Brolley
7ede505aef
2002-08-29 Dave Brolley <brolley@redhat.com>
...
* Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2002-08-29 19:27:52 +00:00
Nick Clifton
e551c2572e
Makefile.in: Add gen-zero-r0 option.
...
sim-main.h (GPR_SET, GPR_CLEAR): Define.
simops.c (OP_24007E0): Sign extend the imm9 operand of a mul instruction.
2002-08-29 16:59:20 +00:00
Dave Brolley
051b807af7
2002-08-28 Dave Brolley <brolley@redhat.com>
...
* gen-support.c (gen_support_h): Generate
'#define semantic_illegal <PREFIX>_semantic_illegal'.
2002-08-28 16:01:31 +00:00
Geoffrey Keating
a926ab2fb9
* MAINTAINERS: Change my mailing address.
2002-08-24 22:43:50 +00:00
Chris Demetriou
dff11de0d8
2002-08-22 Chris Demetriou <cgd@broadcom.com>
...
* compare_igen_models: New script.
2002-08-23 06:26:05 +00:00
Nick Clifton
2ec3c90a77
oops - fix typo in previous delta
2002-08-16 09:38:09 +00:00
Nick Clifton
c7a7b500fd
Catch and ignore SWIs of -1, they can be caused by an interrupted system
...
call being resumed by GDB.
2002-08-15 14:28:55 +00:00
Stephane Carrez
099d1b506b
* dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
2002-08-13 09:01:16 +00:00
Stephane Carrez
31c7c532ab
* interp.c (sim_prepare_for_program): Look up the image for the
...
reset vector and set cpu_use_elf_start to 1 if not found.
(sim_open): Do not set cpu_use_elf_start.
2002-08-13 08:52:02 +00:00
Stephane Carrez
3976210097
* interp.c (sim_hw_configure): Return 1 for success.
...
(sim_prepare_for_program): Use the sim_hw_configure exit code to
return SIM_RC_FAIL.
2002-08-13 08:47:18 +00:00
Stephane Carrez
ca156d780d
Fix english and ChangeLog entry
2002-08-13 08:40:32 +00:00
Stephane Carrez
7230d80931
* dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
...
bank window to some virtual address to read from extended memory.
(m68hc11cpu_io_write_buffer): Likewise for writing.
(attach_m68hc11_regs): When use_bank property is defined, attached
to the 68HC12 16K memory bank window.
* interp.c (sim_hw_configure): Create memory region for banked
memory.
2002-08-13 08:38:09 +00:00
Stephane Carrez
dcceded28a
* interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
...
* dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
(m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
2002-08-13 08:10:45 +00:00
Stephane Carrez
abea9e28ea
* dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
...
when IO mapping changed, not when internal RAM mapping is changed.
2002-08-13 07:57:18 +00:00
Stephane Carrez
63f36def60
* m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
...
* sim-main.h (M6812_CALL_INDIRECT): Add to enum.
(m6811_regs): Add page register.
(cpu_set_page, cpu_get_page): New macros.
(phys_to_virt): New function.
(cpu_get_indexed_operand_addr, cpu_return): Declare.
* gencode.c: Identify indirect addressing mode for call and fix daa.
(gen_function_entry): New param to tell if src8/dst8 locals are
necessary.
(gen_interpreter): Use it to avoid generation of unused variables.
* interp.c (sim_fetch_register): Allow to read page register; page
register, A, B and CCR are only 1 byte wide.
(sim_store_register): Likewise for writing.
2002-08-13 07:46:09 +00:00
Chris Demetriou
06e7837e0f
2002-07-30 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (do_load_double, do_store_double): New functions.
(LDC1, SDC1): Rename to...
(LDC1b, SDC1b): respectively.
(LDC1a, SDC1a): New instructions for MIPS II and MIPS32 support.
2002-07-31 05:44:54 +00:00
Michael Snyder
2265c243fc
2002-07-29 Michael Snyder <msnyder@redhat.com>
...
* cp1.c (fp_recip2): Modify initialization expression so that
GCC will recognize it as constant.
2002-07-29 23:17:10 +00:00
Andrey Volkov
a64bfde32f
Add dependences to Makefile.in and include sim-h8300 in compile.c
2002-07-29 17:01:57 +00:00
Andrew Cagney
de0a1e42d0
Delete w65 directory.
2002-07-18 00:05:41 +00:00
Andrew Cagney
75c4388adb
Index: sim/common/ChangeLog
...
2002-07-17 Andrew Cagney <cagney@redhat.com>
* run-sim.h: Add #ifdef RUN_SIM_H wrapper.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
to here from "gdb/remote-sim.h".
Index: include/gdb/ChangeLog
2002-07-17 Andrew Cagney <cagney@redhat.com>
* remote-sim.h: Update copyright.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Delete. Moved to
"sim/common/run-sim.h".
2002-07-17 21:20:09 +00:00
Joern Rennecke
2f14585c74
include/gdb:
...
* sim-sh.h: Add enum constants for sh[1-4], sh3e, sh3?-dsp,
renumbering the sh-dsp registers to use distinct numbers.
sim/sh:
* Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
* interp.c: Include "gdb/sim-sh.h".
(sim_store_register, sim_fetch_register): Use constants defined there.
gdb:
* sh-tdep.c (sh_dsp_register_sim_regno): New function.
(sh_gdbarch_init): Use it for sh-dsp.
2002-07-17 18:43:28 +00:00
Andrew Cagney
7a3085c168
Obsolete fr30.
2002-07-16 14:30:14 +00:00
Andrew Cagney
39248af88f
* sim-resume.c (sim_resume): Add local variable sig_to_deliver to
...
avoid possible longjmp problems with automatic variable siggnal.
2002-07-15 16:13:12 +00:00
Andrew Cagney
076043f24e
From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
...
* Make-common.in (installdirs): Make $(libdir) too, needed when
installing libsim.a.
2002-07-14 17:03:39 +00:00
Andrew Cagney
3fbeef0be8
Obsolete the d30v.
2002-07-14 00:15:20 +00:00
Nick Clifton
630ace253a
Add checks to catch invaliud XScale MIA, MIAPH and MIAxy instructions.
2002-07-05 14:12:01 +00:00
Elena Zannoni
6504452655
2002-06-24 Richard Sandiford <rsandifo@redhat.com>
...
* sh64.c: Update path of "callback.h".
2002-06-20 Elena Zannoni <ezannoni@redhat.com>
* sh64.c: Include correct file for register numbers.
2002-06-24 13:26:07 +00:00
Andrew Cagney
bf1024d698
* Makefile.in (INTL_SRC): Define.
...
(INTL_CFLAGS): Define.
(INTL_DIR): Define.
(STD_CFLAGS): Add INTL_CFLAGS.
2002-06-22 19:10:34 +00:00
Nick Clifton
7b77dec665
Set correct value for ADP_Stopped_RunTimeError
2002-06-21 06:58:36 +00:00
Chris Demetriou
a2f8b4f350
2002-06-18 Chris Demetriou <cgd@broadcom.com>
...
* mdmx.c (SD_): Delete.
(Unpredictable): Re-define, for now, to directly invoke
unpredictable_action().
(mdmx_acc_op): Fix error in .ob immediate handling.
2002-06-18 22:15:03 +00:00
Andrew Cagney
b4b6c9398a
* interp.c (sim_firmware_command): Initialize `address'.
2002-06-18 21:32:15 +00:00
Joern Rennecke
dc9feb5c97
* interp.c (sim_resume): Fix setting of bus error for
...
instruction fetch.
2002-06-18 15:54:44 +00:00
Andrew Cagney
2796179517
* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2002-06-17 23:53:45 +00:00
Andrew Cagney
57af9c8bc0
* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
2002-06-17 23:37:43 +00:00
Andrew Cagney
d62274a397
* simops.c (trace_result): Fix printf formatting.
2002-06-17 21:49:05 +00:00
Andrew Cagney
bf96209254
* sim-memopt.c: Include <unistd.h>.
...
(do_memopt_add): Fix printf format.
* sim-events.c (sim_events_schedule): Initialize ``dummy''.
2002-06-17 21:45:55 +00:00
Andrew Cagney
78e731cd36
* gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 and
...
``t'' to NULL.
* igen.c (main): Add default case to switch.
* gen-icache.c (print_icache_extraction): Ditto.
2002-06-17 21:44:06 +00:00
Andrew Cagney
b74317ff8e
* Makefile.in (BUILD_CFLAGS): Remove -O0.
2002-06-17 21:03:40 +00:00
Elena Zannoni
47243d69f7
2002-06-17 Elena Zannoni <ezannoni@redhat.com>
...
* psim.c (psim_options): Don't choke when gdb invokes us with
the --architecture option, just ignore it.
2002-06-17 19:58:39 +00:00
Andrew Cagney
c8cca39f98
Import current --enable-gdb-build-warnings.
2002-06-16 16:33:35 +00:00
Andrew Cagney
3832c25c18
* Makefile.in (autoconf-changelog autoheader-changelog): Let name,
...
id, date and host to be overriden by NAME, ID, DATE and HOST
respectfully. Use ISO dates.
2002-06-16 15:59:34 +00:00
Tom Rix
3d2957e64e
Fix for transfers across segments.
2002-06-15 11:01:34 +00:00
Chris Demetriou
e7e8118132
2002-06-14 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* mips3d.igen: New file which contains MIPS-3D ASE instructions.
* Makefile.in (IGEN_INCLUDE): Add mips3d.igen.
* mips.igen: Include mips3d.igen.
(mips3d): New model name for MIPS-3D ASE instructions.
(CVT.W.fmt): Don't use this instruction for word (source) format
instructions.
* cp1.c (fp_binary_r, fp_add_r, fp_mul_r, fpu_inv1, fpu_inv1_32)
(fpu_inv1_64, fp_recip1, fp_recip2, fpu_inv_sqrt1, fpu_inv_sqrt1_32)
(fpu_inv_sqrt1_64, fp_rsqrt1, fp_rsqrt2): New functions.
(NR_FRAC_GUARD, IMPLICIT_1): New macros.
* sim-main.h (fmt_pw, CompareAbs, AddR, MultiplyR, Recip1, Recip2)
(RSquareRoot1, RSquareRoot2): New macros.
(fp_add_r, fp_mul_r, fp_recip1, fp_recip2, fp_rsqrt1)
(fp_rsqrt2): New functions.
* configure.in: Add MIPS-3D support to mipsisa64 simulator.
* configure: Regenerate.
2002-06-14 18:49:09 +00:00
Chris Demetriou
eab549520a
fix attribution in previous changelog entry
2002-06-14 04:49:15 +00:00
Chris Demetriou
3a2b820ef3
2002-06-13 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c (FP_PS_upper, FP_PS_lower, FP_PS_cat, FPQNaN_PS): New macros.
(value_fpr, store_fpr, fp_cmp, fp_unary, fp_binary, fp_mac)
(fp_inv_sqrt, fpu_format_name): Add paired-single support.
(convert): Note that this function is not used for paired-single
format conversions.
(ps_lower, ps_upper, pack_ps, convert_ps): New functions.
* mips.igen (FMT, MOVtf.fmt): Add paired-single support.
(check_fmt_p): Enable paired-single support.
(ALNV.PS, CVT.PS.S, CVT.S.PL, CVT.S.PU, PLL.PS, PLU.PS, PUL.PS)
(PUU.PS): New instructions.
(CVT.S.fmt): Don't use this instruction for paired-single format
destinations.
* sim-main.h (FP_formats): New value 'fmt_ps.'
(ps_lower, ps_upper, pack_ps, convert_ps): New prototypes.
(PSLower, PSUpper, PackPS, ConvertPS): New macros.
2002-06-14 04:44:11 +00:00
Chris Demetriou
d18ea9c2b8
2002-06-12 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen: Fix formatting of function calls in
many FP operations.
2002-06-12 23:32:05 +00:00
Chris Demetriou
95fd5cee7d
2002-06-12 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (MOVN, MOVZ): Trace result.
(TNEI): Print "tnei" as the opcode name in traces.
(CEIL.W): Add disassembly string for traces.
(RSQRT.fmt): Make location of disassembly string consistent
with other instructions.
2002-06-12 23:20:56 +00:00
Chris Demetriou
4f0d55aeaa
2002-06-12 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (X): Delete unused function.
2002-06-12 22:22:41 +00:00
Andrew Cagney
26216b9822
Add the file include/gdb/sim-arm.h defining an enum that specifies the
...
register numbering used by the GDB<->SIM interface.
2002-06-12 21:19:43 +00:00
Aldy Hernandez
307041b752
missed 2 in 2002. oops.
2002-06-12 00:46:41 +00:00
Aldy Hernandez
7d7d930f7a
002-06-09 Aldy Hernandez <aldyh@redhat.com>
...
* sim-fpu.c (unpack_fpu): Initialize exponent for
sim_fpu_class_zero.
(i2fpu): Same.
(sim_fpu_sqrt): Same.
2002-06-12 00:46:11 +00:00
Andrew Cagney
3c25f8c7b0
Move include/callback.h and include/remote-sim.h to include/gdb/.
...
Update accordingly.
2002-06-09 15:45:54 +00:00
Andrew Cagney
983b727e70
Fix name of enum used in cast (sim_fetch_register, sim_store_register).
2002-06-08 22:19:56 +00:00
Chris Demetriou
f3c08b7e16
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c (inner_mac, fp_mac, inner_rsqrt, fp_inv_sqrt)
(fp_rsqrt, fp_madd, fp_msub, fp_nmadd, fp_nmsub): New functions.
* sim-main.h (fp_rsqrt, fp_madd, fp_msub, fp_nmadd)
(fp_nmsub): New prototypes.
(RSquareRoot, MultiplyAdd, MultiplySub, NegMultiplyAdd)
(NegMultiplySub): New defines.
* mips.igen (RSQRT.fmt): Use RSquareRoot().
(MADD.D, MADD.S): Replace with...
(MADD.fmt): New instruction.
(MSUB.D, MSUB.S): Replace with...
(MSUB.fmt): New instruction.
(NMADD.D, NMADD.S): Replace with...
(NMADD.fmt): New instruction.
(NMSUB.D, MSUB.S): Replace with...
(NMSUB.fmt): New instruction.
2002-06-08 03:05:23 +00:00
Chris Demetriou
52714ff9ee
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c: Fix more comment spelling and formatting.
(value_fcr, store_fcr): Use fenr_FS rather than hard-coding value.
(denorm_mode): New function.
(fpu_unary, fpu_binary): Round results after operation, collect
status from rounding operations, and update the FCSR.
(convert): Collect status from integer conversions and rounding
operations, and update the FCSR. Adjust NaN values that result
from conversions. Convert to use sim_io_eprintf rather than
fprintf, and remove some debugging code.
* cp1.h (fenr_FS): New define.
2002-06-07 22:55:49 +00:00
Chris Demetriou
577d8c4b5a
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c (convert): Remove unusable debugging code, and move MIPS
rounding mode to sim FP rounding mode flag conversion code into...
(rounding_mode): New function.
2002-06-07 16:50:42 +00:00
Chris Demetriou
196496eda0
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c: Clean up formatting of a few comments.
(value_fpr): Reformat switch statement.
2002-06-07 16:43:19 +00:00
Chris Demetriou
cfe9ea23c7
2002-06-06 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.h: New file.
* sim-main.h: Include cp1.h.
(SETFCC, GETFCC, IR, UF, OF, DX, IO, UO, FP_FLAGS, FP_ENABLE)
(FP_CAUSE, GETFS, FP_RM_NEAREST, FP_RM_TOZERO, FP_RM_TOPINF)
(FP_RM_TOMINF, GETRM): Remove. Moved to cp1.h.
(FP_FS, FP_MASK_RM, FP_SH_RM, Nan, Less, Equal): Remove.
(value_fcr, store_fcr, test_fcsr, fp_cmp): New prototypes.
(ValueFCR, StoreFCR, TestFCSR, Compare): New macros.
* cp1.c: Don't include sim-fpu.h; already included by
sim-main.h. Clean up formatting of some comments.
(NaN, Equal, Less): Remove.
(test_fcsr, value_fcr, store_fcr, update_fcsr, fp_test)
(fp_cmp): New functions.
* mips.igen (do_c_cond_fmt): Remove.
(C.cond.fmta, C.cond.fmtb): Replace uses of do_c_cond_fmt_a with
Compare. Add result tracing.
(CxC1): Remove, replace with...
(CFC1a, CFC1b, CFC1c, CTC1a, CTC1b, CTC1c): New instructions.
(DMxC1): Remove, replace with...
(DMFC1a, DMFC1b, DMTC1a, DMTC1b): New instructions.
(MxC1): Remove, replace with...
(MFC1a, MFC1b, MTC1a, MTC1b): New instructions.
2002-06-07 00:13:24 +00:00
Andrew Cagney
c93abbccf2
* Makefile.in (ChangeLog): New makefile variable.
...
* README-HACKING: Mention the ChangeLog makefile variable.
2002-06-06 16:33:45 +00:00
Andrew Cagney
73fa0d3fb2
* writecode.c (lookup_inst): Generate inverse table on-the-fly.
...
(z8k_inv_list): Delete global.
(DIRTY_HACK): Delete macro.
(makelist): Delete global.
(main): Delete code making a list. Delete dirty hack code. Use
lookup_inst instead of z8k_inv_list.
* list.c: Delete file.
* Makefile.in (writecode): Do not link in list.o.
(list.o): Delete target.
2002-06-06 15:50:50 +00:00
Chris Demetriou
ee7254b0cc
2002-06-04 Chris Demetriou <cgd@broadcom.com>
...
* sim-main.h (FGRIDX): Remove, replace all uses with...
(FGR_BASE): New macro.
(FP0_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): New macros.
(_sim_cpu): Move 'fgr' member to be right before 'fpr_state' member.
(NR_FGR, FGR): Likewise.
* interp.c: Replace all uses of FGRIDX with FGR_BASE.
* mips.igen: Likewise.
2002-06-04 22:38:41 +00:00
Chris Demetriou
d3eb724f81
2002-06-04 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c: Add an FSF Copyright notice to this file.
2002-06-04 16:35:24 +00:00
Chris Demetriou
ba46ddd0cf
2002-06-04 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c (Infinity): Remove.
* sim-main.h (Infinity): Likewise.
* cp1.c (fp_unary, fp_binary): New functions.
(fp_abs, fp_neg, fp_add, fp_sub, fp_mul, fp_div, fp_recip)
(fp_sqrt): New functions, implemented in terms of the above.
(AbsoluteValue, Negate, Add, Sub, Multiply, Divide)
(Recip, SquareRoot): Remove (replaced by functions above).
* sim-main.h (fp_abs, fp_neg, fp_add, fp_sub, fp_mul, fp_div)
(fp_recip, fp_sqrt): New prototypes.
(AbsoluteValue, Negate, Add, Sub, Multiply, Divide)
(Recip, SquareRoot): Replace prototypes with #defines which
invoke the functions above.
2002-06-04 16:17:20 +00:00
Chris Demetriou
18d8a52d00
2002-06-03 Chris Demetriou <cgd@broadcom.com>
...
* sim-main.h (Nan, Infinity, Less, Equal, AbsoluteValue, Negate)
(Add, Sub, Multiply, Divide, Recip, SquareRoot): Move lower in
file, remove PARAMS from prototypes.
(value_fpr, store_fpr, convert): Likewise. Use SIM_STATE to provide
simulator state arguments.
(ValueFPR, StoreFPR, Convert): Move lower in file. Use SIM_ARGS to
pass simulator state arguments.
* cp1.c (SD): Redefine as CPU_STATE(cpu).
(store_fpr, convert): Remove 'sd' argument.
(value_fpr): Likewise. Convert to use 'SD' instead.
2002-06-04 01:35:23 +00:00
Chris Demetriou
0f154cbd1c
2002-06-03 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c (Min, Max): Remove #if 0'd functions.
* sim-main.h (Min, Max): Remove.
2002-06-04 00:18:46 +00:00
Chris Demetriou
e80fc1523d
2002-06-03 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c: fix formatting of switch case and default labels.
* interp.c: Likewise.
* sim-main.c: Likewise.
2002-06-03 22:30:52 +00:00
Chris Demetriou
bad673a9cb
2002-06-03 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c: Clean up comments which describe FP formats.
(FPQNaN_DOUBLE, FPQNaN_LONG): Generate using UNSIGNED64.
2002-06-03 22:05:15 +00:00
Chris Demetriou
7cbea0890e
2002-06-03 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* configure.in (mipsisa64sb1*-*-*): New target for supporting
Broadcom SiByte SB-1 processor configurations.
* configure: Regenerate.
* sb1.igen: New file.
* mips.igen: Include sb1.igen.
(sb1): New model.
* Makefile.in (IGEN_INCLUDE): Add sb1.igen.
* mdmx.igen: Add "sb1" model to all appropriate functions and
instructions.
* mdmx.c (AbsDiffOB, AvgOB, AccAbsDiffOB): New functions.
(ob_func, ob_acc): Reference the above.
(qh_acc): Adjust to keep the same size as ob_acc.
* sim-main.h (status_SBX, MX_VECT_ABSD, MX_VECT_AVG, MX_AbsDiff)
(MX_Avg, MX_VECT_ABSDA, MX_AbsDiffC): New macros.
2002-06-03 21:00:29 +00:00
Chris Demetriou
909daa8222
2002-06-03 Chris Demetriou <cgd@broadcom.com>
...
* Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
2002-06-03 18:35:19 +00:00
Richard Henderson
4e62efb8f8
* gen-engine.c (print_run_body): Avoid multi-line strings.
...
* lf.c (lf_print__gnu_copyleft): Likewise.
2002-06-03 16:04:31 +00:00
Elena Zannoni
676ab6a01e
Use current date in ChangeLog entry.
2002-06-03 00:47:14 +00:00
Elena Zannoni
c7675842d8
2002-05-28 Elena Zannoni <ezannoni@redhat.com>
...
From Jason Eckhardt <jle@redhat.com>
* d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
less than MOD_S (post-decrement).
2002-06-03 00:36:02 +00:00
Chris Demetriou
f4f1b9f102
2002-06-02 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* mips.igen (mdmx): New (pseudo-)model.
* mdmx.c, mdmx.igen: New files.
* Makefile.in (SIM_OBJS): Add mdmx.o.
* sim-main.h (MDMX_accumulator, MX_fmtsel, signed24, signed48):
New typedefs.
(ACC, MX_Add, MX_AddA, MX_AddL, MX_And, MX_C_EQ, MX_C_LT, MX_Comp)
(MX_FMT_OB, MX_FMT_QH, MX_Max, MX_Min, MX_Msgn, MX_Mul, MX_MulA)
(MX_MulL, MX_MulS, MX_MulSL, MX_Nor, MX_Or, MX_Pick, MX_RAC)
(MX_RAC_H, MX_RAC_L, MX_RAC_M, MX_RNAS, MX_RNAU, MX_RND_AS)
(MX_RND_AU, MX_RND_ES, MX_RND_EU, MX_RND_ZS, MX_RND_ZU, MX_RNES)
(MX_RNEU, MX_RZS, MX_RZU, MX_SHFL, MX_ShiftLeftLogical)
(MX_ShiftRightArith, MX_ShiftRightLogical, MX_Sub, MX_SubA, MX_SubL)
(MX_VECT_ADD, MX_VECT_ADDA, MX_VECT_ADDL, MX_VECT_AND)
(MX_VECT_MAX, MX_VECT_MIN, MX_VECT_MSGN, MX_VECT_MUL, MX_VECT_MULA)
(MX_VECT_MULL, MX_VECT_MULS, MX_VECT_MULSL, MX_VECT_NOR)
(MX_VECT_OR, MX_VECT_SLL, MX_VECT_SRA, MX_VECT_SRL, MX_VECT_SUB)
(MX_VECT_SUBA, MX_VECT_SUBL, MX_VECT_XOR, MX_WACH, MX_WACL, MX_Xor)
(SIM_ARGS, SIM_STATE, UnpredictableResult, fmt_mdmx, ob_fmtsel)
(qh_fmtsel): New macros.
(_sim_cpu): New member "acc".
(mdmx_acc_op, mdmx_cc_op, mdmx_cpr_op, mdmx_pick_op, mdmx_rac_op)
(mdmx_round_op, mdmx_shuffle, mdmx_wach, mdmx_wacl): New functions.
2002-06-02 07:39:26 +00:00
Andrew Cagney
e4045cdb95
Delete TiC80, no longer supported by GDB.
2002-06-01 23:23:28 +00:00
Andrew Cagney
18c0df9e1b
Fill-out d10v enum so that there are no ``=''.
2002-06-01 18:15:43 +00:00
Kazu Hirata
dbec3bef45
* run.c: Fix formatting.
2002-05-31 02:17:26 +00:00
DJ Delorie
d7a97a9b1c
* lf.c (lf_print__gnu_copyleft): Convert multiline strings to
...
compatible format.
* gen-idecode.c (print_run_until_stop_body): Likewise.
* gen-model.c (gen_model_c): Likewise.
2002-05-30 15:07:06 +00:00
Nick Clifton
5aa682b2e0
Set the FSR and FAR registers if a Data Abort is detected.
2002-05-29 19:01:36 +00:00
Elena Zannoni
1aa5e64f43
2002-05-28 Elena Zannoni <ezannoni@redhat.com>
...
* interp.c (sim_create_inferior): Add comment.
From Alan Matsuoka <alanm@redhat.com>:
From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
* simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
(OP_4401): Output "mvf0t" instead of "mf0t".
(OP_460B): Do not output a flag register.
(OP_4609): Do not output a flag register.
2002-05-28 15:49:52 +00:00
Nick Clifton
10b57fcbd7
Only perform access checks if 'check' is set.
...
Report unknown machine numbers.
Formatting tidy ups.
2002-05-27 14:12:00 +00:00
Nick Clifton
7378e198a5
Thumb BL instruction: Do not set LR to pc + 2, it has already been advanced.
2002-05-27 13:30:36 +00:00