aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
2002-07-18Delete w65 directory.Andrew Cagney11-5658/+4
2002-07-17Index: sim/common/ChangeLogAndrew Cagney2-0/+69
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-17include/gdb:Joern Rennecke3-115/+170
* 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-16Obsolete fr30.Andrew Cagney27-25913/+21632
2002-07-15* sim-resume.c (sim_resume): Add local variable sig_to_deliver toAndrew Cagney2-6/+16
avoid possible longjmp problems with automatic variable siggnal.
2002-07-14From 2002-07-11 Momchil Velikov <velco@fadata.bg>:Andrew Cagney2-0/+7
* Make-common.in (installdirs): Make $(libdir) too, needed when installing libsim.a.
2002-07-14Obsolete the d30v.Andrew Cagney17-4249/+4238
2002-07-05Add checks to catch invaliud XScale MIA, MIAPH and MIAxy instructions.Nick Clifton2-68/+79
2002-06-242002-06-24 Richard Sandiford <rsandifo@redhat.com>Elena Zannoni2-3/+11
* 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-22* Makefile.in (INTL_SRC): Define.Andrew Cagney2-1/+12
(INTL_CFLAGS): Define. (INTL_DIR): Define. (STD_CFLAGS): Add INTL_CFLAGS.
2002-06-21Set correct value for ADP_Stopped_RunTimeErrorNick Clifton2-40/+41
2002-06-182002-06-18 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-2/+13
* 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* interp.c (sim_firmware_command): Initialize `address'.Andrew Cagney2-1/+8
2002-06-18 * interp.c (sim_resume): Fix setting of bus error forJoern Rennecke2-1/+6
instruction fetch.
2002-06-17* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.Andrew Cagney2-0/+3
2002-06-17* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.Andrew Cagney2-1/+5
2002-06-17* simops.c (trace_result): Fix printf formatting.Andrew Cagney2-1/+6
2002-06-17* sim-memopt.c: Include <unistd.h>.Andrew Cagney3-1/+11
(do_memopt_add): Fix printf format. * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2002-06-17* gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 andAndrew Cagney4-2/+13
``t'' to NULL. * igen.c (main): Add default case to switch. * gen-icache.c (print_icache_extraction): Ditto.
2002-06-17* Makefile.in (BUILD_CFLAGS): Remove -O0.Andrew Cagney2-1/+5
2002-06-172002-06-17 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+18
* psim.c (psim_options): Don't choke when gdb invokes us with the --architecture option, just ignore it.
2002-06-16Import current --enable-gdb-build-warnings.Andrew Cagney31-1063/+1529
2002-06-16* Makefile.in (autoconf-changelog autoheader-changelog): Let name,Andrew Cagney2-4/+14
id, date and host to be overriden by NAME, ID, DATE and HOST respectfully. Use ISO dates.
2002-06-15Fix for transfers across segments.Tom Rix2-2/+7
2002-06-142002-06-14 Chris Demetriou <cgd@broadcom.com>Chris Demetriou8-4/+475
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-14fix attribution in previous changelog entryChris Demetriou1-0/+1
2002-06-142002-06-13 Chris Demetriou <cgd@broadcom.com>Chris Demetriou4-13/+362
* 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-122002-06-12 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-41/+46
* mips.igen: Fix formatting of function calls in many FP operations.
2002-06-122002-06-12 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-4/+19
* 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-122002-06-12 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-10/+4
* mips.igen (X): Delete unused function.
2002-06-12Add the file include/gdb/sim-arm.h defining an enum that specifies theAndrew Cagney3-12/+91
register numbering used by the GDB<->SIM interface.
2002-06-12missed 2 in 2002. oops.Aldy Hernandez1-1/+1
2002-06-12002-06-09 Aldy Hernandez <aldyh@redhat.com>Aldy Hernandez2-0/+11
* sim-fpu.c (unpack_fpu): Initialize exponent for sim_fpu_class_zero. (i2fpu): Same. (sim_fpu_sqrt): Same.
2002-06-09Move include/callback.h and include/remote-sim.h to include/gdb/.Andrew Cagney47-76/+156
Update accordingly.
2002-06-08Fix name of enum used in cast (sim_fetch_register, sim_store_register).Andrew Cagney2-2/+7
2002-06-082002-06-07 Chris Demetriou <cgd@broadcom.com>Chris Demetriou4-74/+315
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-072002-06-07 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-43/+93
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-072002-06-07 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-39/+43
* 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-072002-06-07 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-21/+12
* cp1.c: Clean up formatting of a few comments. (value_fpr): Reformat switch statement.
2002-06-072002-06-06 Chris Demetriou <cgd@broadcom.com>Chris Demetriou5-311/+464
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-06* Makefile.in (ChangeLog): New makefile variable.Andrew Cagney3-5/+19
* README-HACKING: Mention the ChangeLog makefile variable.
2002-06-06* writecode.c (lookup_inst): Generate inverse table on-the-fly.Andrew Cagney4-11368/+39
(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-042002-06-04 Chris Demetriou <cgd@broadcom.com>Chris Demetriou4-28/+40
* 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-042002-06-04 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-0/+27
* cp1.c: Add an FSF Copyright notice to this file.
2002-06-042002-06-04 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-407/+130
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-042002-06-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-30/+42
* 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-042002-06-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou3-146/+5
* cp1.c (Min, Max): Remove #if 0'd functions. * sim-main.h (Min, Max): Remove.
2002-06-032002-06-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou4-34/+40
* cp1.c: fix formatting of switch case and default labels. * interp.c: Likewise. * sim-main.c: Likewise.
2002-06-032002-06-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-24/+30
* cp1.c: Clean up comments which describe FP formats. (FPQNaN_DOUBLE, FPQNaN_LONG): Generate using UNSIGNED64.
2002-06-032002-06-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou9-19/+316
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.