2002-06-06 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / sim / mips / ChangeLog
index 5de700fd8fb2f881f048ae2496b66a564bab56e4..dff7b80707205f6b429191ebc3dc1eb4d6326ddc 100644 (file)
@@ -1,3 +1,111 @@
+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-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  Chris Demetriou  <cgd@broadcom.com>
+
+       * cp1.c: Add an FSF Copyright notice to this file.
+
+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-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-03  Chris Demetriou  <cgd@broadcom.com>
+
+       * cp1.c (Min, Max): Remove #if 0'd functions.
+       * sim-main.h (Min, Max): Remove.
+
+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  Chris Demetriou  <cgd@broadcom.com>
+
+       * cp1.c: Clean up comments which describe FP formats.
+        (FPQNaN_DOUBLE, FPQNaN_LONG): Generate using UNSIGNED64.
+
+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  Chris Demetriou  <cgd@broadcom.com>
+
+       * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
+
 2002-06-02  Chris Demetriou  <cgd@broadcom.com>
             Ed Satterthwaite  <ehs@broadcom.com>
 
This page took 0.027575 seconds and 4 git commands to generate.