aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
2004-08-27 * cpu.[ch], arch.[ch], decode.[ch]: Regenerated.Richard Sandiford10-9/+14
* cpuall.h, model.c, sem.c: Regenerated.
2004-08-192004-08-18 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-2/+7
* configure.in (mipsisa64sb1*-*-*): Add mips3d to sim_igen_machine. * configure: Regenerate.
2004-08-18 * gencode.c (tab): For shad snd shld, fix result forJoern Rennecke2-2/+7
(op1 < 0 && shift_amount == 0).
2004-08-05 * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.Nathanael Nerode2-1/+5
2004-08-052004-08-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney5-75/+1318
Jim Blandy <jimb@redhat.com> * sim_callbacks.h (simulator): Declare. * Makefile.in (gdb-sim.o): New rule. (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c. (DEFS_H): Delete. (GDB_SIM_PPC_H): Define. * gdb-sim.c: New file. * sim_calls.c: Do not include "defs.h". (simulator): Drop static. (sim_store_register, sim_fetch_register): Delete.
2004-08-042004-08-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney3-90/+42
* Back out accidently committed change.
2004-08-04gdb/ChangeLog:Jim Blandy3-38/+105
2004-07-20 Jim Blandy <jimb@redhat.com> Use a fixed register numbering when communicating with the PowerPC simulator. * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'. * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h". (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): New functions. (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call init_sim_regno_table. * Makefile.in (gdb_sim_ppc_h): New variable. (rs6000-tdep.o): Update dependencies. include/gdb/ChangeLog: 2004-07-20 Jim Blandy <jimb@redhat.com> * sim-ppc.h: New file. sim/ppc/ChangeLog: 2004-07-20 Jim Blandy <jimb@redhat.com> Use a fixed register numbering when communicating with the PowerPC simulator. * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not include GDB's "defs.h". (gdb_register_name_table): New variable. (gdb_register_name_table_size): New enum constant. (gdb_register_name): New function. (sim_fetch_register, sim_store_register): Use gdb_register_name, instead of calling gdbarch_register_name. * Makefile.in (GDB_SIM_PPC_H): New variable. (DEFS_H): Delete variable. (sim_calls.o): Update dependencies.
2004-07-26Index: common/ChangeLogAndrew Cagney4-4/+14
2004-07-26 Andrew Cagney <cagney@gnu.org> Problem from Olaf Hering <olh@suse.de>. * Makefile.in (install-man, installdirs): Add DESTDIR prefix. Index: ppc/ChangeLog 2004-07-26 Andrew Cagney <cagney@gnu.org> Problem from Olaf Hering <olh@suse.de>. * Makefile.in (install, installdirs): Add DESTDIR.
2004-07-11 * tree.c (parse_integer_property): Comment typo fix.Ben Elliston2-1/+5
2004-07-10 * hw-tree.c (parse_integer_property): Typo fix in comments.Ben Elliston3-3/+8
* sim-options.c (sim_args_command): Likewise.
2004-07-06* Makefile.in: Update all dependency information.Jim Blandy2-92/+343
(BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H) (EMUL_GENERIC_H): Values updated. (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H) (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H) (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H) (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H) (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H) (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H) (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H) (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H) (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H) (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H) (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H) (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H) (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H) (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H) (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H) (TREE_H, VM_H, VM_N_H, WORDS_H): New variables. (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o) (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o) (events.o, filter.o, filter_filename.o, filter_host.o) (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o) (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o) (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o) (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o) (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o) (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o) (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o) (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
2004-06-29Index: mn10200/ChangeLogAndrew Cagney8-10/+27
2004-06-28 Andrew Cagney <cagney@gnu.org> * interp.c: Rename ui_loop_hook to deprecated_ui_loop_hook. Index: d10v/ChangeLog 2004-06-28 Andrew Cagney <cagney@gnu.org> * interp.c (sim_resume): Rename ui_loop_hook to deprecated_ui_loop_hook. Index: arm/ChangeLog 2004-06-28 Andrew Cagney <cagney@gnu.org> * armemu.c: Rename ui_loop_hook to deprecated_ui_loop_hook. Index: common/ChangeLog 2004-06-28 Andrew Cagney <cagney@gnu.org> * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2004-06-28sim/h8300/ChangeLog:Alexandre Oliva5-69/+37
2003-07-23 Richard Sandiford <rsandifo@redhat.com> * compile.c (sim_resume): Make sure that dst.reg refers to the right register byte in mova/sz.l @(dd,RnL),ERn. 2003-07-21 Richard Sandiford <rsandifo@redhat.com> * compile.c (sim_resume): Zero-extend immediate to muls, mulsu, mulxs, divs and divxs. sim/testsuite/sim/h8300/ChangeLog: 2003-07-22 Michael Snyder <msnyder@redhat.com> * mul.s: Don't try to use negative immediate (it's always unsigned). * div.s: Ditto.
2004-06-28* compile.c (sim_load): Update sd->memory_size.Alexandre Oliva2-0/+5
2004-06-28* e500_registers.h (EVR): Cast the 32-bit value of the GPR to anJim Blandy2-2/+10
unsigned type before or-ing it with a 64-bit value.
2004-06-27 * callback.c (os_shutdown): Fix bug in last change: actuallyJoern Rennecke2-0/+6
mark file descriptors as available on startup.
2004-06-262000-08-07 Graham Stott <grahams@cygnus.co.uk>Alexandre Oliva7-1/+3727
* am33-2.igen (fmadd, fmsub, fmnadd, fmnsub): Correct typo. 2000-05-29 Alexandre Oliva <aoliva@cygnus.com> * interp.c (fpu_disabled_exception, fpu_unimp_exception, fpu_check_signal_exception): Take additional state arguments. Print exception type and call program_interrupt. Adjust callers. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Take additional arguments. * mn10300_sim.h (fpu_disabled_exception, fpu_unimp_exception, fpu_check_signal_exception): Adjust prototypes. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Likewise. * am33-2.igen: Adjust calls. 2000-05-19 Alexandre Oliva <aoliva@cygnus.com> * op_utils.c (cmp2fcc): Moved... * interp.c: ... here. 2000-05-18 Alexandre Oliva <aoliva@cygnus.com> * am33-2.igen: Use `unsigned32', `signed32', `unsigned64' or `signed64' where type width is relevant. 2000-05-15 Alexandre Oliva <aoliva@cygnus.com> * mn10300_sim.h: Include sim-fpu.h. (FD2FPU, FPU2FD): Enclose the FD argument in parentheses. (fpu_check_signal_exception): Declare. (struct fp_prec_t, fp_single_prec, fp_double_prec): Likewise. (FP_SINGLE, FP_DOUBLE): Shorthands for fp_*_prec. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Declare. * interp.c (fpu_disabled_exception): Document. (fpu_unimp_exception): Likewise. (fpu_check_signal_exception): Define. (reg2val_32, round_32, val2reg_32, fp_single_prec): Likewise. (reg2val_64, round_64, val2reg_64, fp_double_prec): Likewise. (REG2VAL, ROUND, VAL2REG): Define shorthands. (fpu_status_ok): Define. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Define. * am33-2.igen (frsqrt, fcmp, fadd, fsub, fmul, fdiv, fmadd, fmsub, fnmadd, fnmsub): Use new functions. 2000-04-27 Alexandre Oliva <aoliva@cygnus.com> * interp.c (sim_create_inferior): Set PSW bit to enable FP insns if architecture is AM33/2.0. * am33.igen: Include am33-2.igen. 2000-04-23 Alexandre Oliva <aoliva@cygnus.com> * mn10300.igen (movm, call, ret, retf): Check for am33_2 too. * am33.igen (movm): Likewise. 2000-04-19 Alexandre Oliva <aoliva@cygnus.com> * am33.igen: Added `*am33_2' to some instructions that were missing it. 2000-04-07 Alexandre Oliva <aoliva@cygnus.com> * am33-2.igen: New file. All insns implemented, but FP flags are only set for fcmp, exceptional conditions are not handled yet. * Makefile.in (IGEN_INSN): Added am33-2.igen. (tmp-igen): Added -M am33_2. * mn10300.igen, am33.igen: Added `*am33_2' to all insns. * gencode.c: Support FMT_D3. * mn10300_sim.h (dword): New type. (struct _state): Added fpregs. (REG_FPCR, FPCR): New define. All assorted bitmaps. (XS2FS, AS2FS, Xf2FD): New macros. (FS2FPU, FD2FPU, FPU2FS, FPU2FD): Likewise. (load_dword, store_dword): New functions or macros. (u642dw, dw2u64): New functions. (fpu_disabled_exception, fpu_unimp_exception): Declared. * interp.c (fpu_disabled_exception): Defined; no actual implementation. (fpu_unimp_exception): Likewise. * op_utils.c (cmp2fcc): New function.
2004-06-26* interp.c, mn10300_sim.h, op_utils.c: Convert function prototypesAlexandre Oliva4-81/+66
and definitions to ISO C.
2004-06-26* gencode.c, simops.c: Delete.Alexandre Oliva4-3433/+6
* Makefile.in: Remove non-COMMON dependencies and commands.
2004-06-26* configure.in: Use common simulator always. Don't subst sim_genAlexandre Oliva5-1080/+19
nor mn10300_common. * configure: Rebuilt. * Makefile.in (WITHOUT_COMMON_OBJS, WITHOUT_COMMON_INTERP_DEP, WITHOUT_COMMON_RUN_OBJS): Remove. (WITH_COMMON_OBJS): Rename to MN10300_OBJS. (WITH_COMMON_INTERP_DEP): Rename to MN10300_INTERP_DEP. (WITH_COMMON_RUN_OBJS): Rename to SIM_RUN_OBJS. (SIM_EXTRA_CFLAGS): Don't use @sim_gen@. * interp.c: Remove non-common bits. * mn10300_sim.h: Likewise.
2004-06-252004-06-25 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-2/+7
* configure.in (sim_m16_machine): Include mipsIII. * configure: Regenerate.
2004-06-252004-06-25 J"orn Rennecke <joern.rennecke@superh.com>Joern Rennecke2-14/+45
include/gdb: * callback.h (host_callback_struct): Replace members fdopen and alwaysopen with fd_buddy. sim/common: * callback.c: Changed all users.
2004-06-242004-06-17 Alexandre Oliva <aoliva@redhat.com>Alexandre Oliva4-5/+15
* band.s, biand.s: imm3_abs16 is not available on h8300h. * bset.s: Likewise. Ditto for rn_abs32.
2004-06-15 * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_sizeAlan Modra3-5/+12
instead of bfd_get_section_size_before_reloc. (htab_dma_binary(bfd): Likewise. * hw_init.c (update_for_binary_section(bfd): Likewise.
2004-06-15 * interp.c (sim_prepare_for_program): Use bfd_get_section_sizeAlan Modra2-2/+8
instead of bfd_get_section_size_before_reloc.
2004-06-15 * sim-load.c (sim_load_file): Use bfd_get_section_sizeAlan Modra2-1/+6
instead of bfd_get_section_size_before_reloc.
2004-06-14ChangeLog editorial fixes.Andrew Cagney1-0/+1
2004-06-102004-06-10 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
Patch submitted by Nitin Yewale <NitinY@KPITCummins.com>. * compile.c (sim_resume): Corrected ANDC operation on EXR for H8S.
2004-05-18 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long beforeDaniel Jacobowitz2-2/+7
passing it to printf.
2004-05-18 * Makefile.in (stamp-xmloop, stamp-2mloop): Use -outfile-suffix.Daniel Jacobowitz2-7/+14
2004-05-12 * lib/sim-defs.exp: Remove stray semicolons.Ben Elliston2-1/+5
2004-05-122004-05-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>Chris Demetriou3-2/+8
* mips/interp.c (decode_coproc): Sign-extend the address retrieved from COP0_BADVADDR. * mips/sim-main.h (COP0_BADVADDR): Remove a cast.
2004-05-11 * configure.in (sim_fpu_cflags): Add -I../common.Daniel Jacobowitz3-2/+7
* configure: Regenerated.
2004-05-10 * callback.c: Update copyright dates.Daniel Jacobowitz6-10/+32
* 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-04-112004-04-11 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-7/+31
* 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-112004-04-10 Chris Demetriou <cgd@broadcom.com>Chris Demetriou6-0/+904
* 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-10im/mips/ChangeLog ]Chris Demetriou5-1/+137
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-102004-04-10 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-0/+374
* fpu64-ps.s: New file. * basic.exp: Run fpu64-ps.s.
2004-04-10(and adjust paths in last entry, for moveChris Demetriou1-2/+2
2004-04-10move entry from:Chris Demetriou2-9/+9
2004-03-29 Richard Sandiford <rsandifo@redhat.com> from ChangeLog into sim/mips/Changelog
2004-04-102004-04-09 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-62/+47
* 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-102004-04-09 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-21/+28
* sb1.igen (check_sbx): New function. (PABSDIFF.fmt, PABSDIFC.fmt, PAVG.fmt): Use check_sbx.
2004-03-29Fix date in last delta.Richard Sandiford2-2/+2
2004-03-29 * sim/mips/hilo-hazard-[123].s: New files.Richard Sandiford5-4/+107
* 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 * sim-main.h (MIPS_MACH_HAS_MT_HILO_HAZARD)Richard Sandiford3-13/+72
(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-10 * MAINTAINERS: Update my mail address.Ben Elliston2-1/+5
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.