162306a36Sopenharmony_ci2003-03-22  Ralph Siemsen <ralphs@netwinder.org>
262306a36Sopenharmony_ci	* Reformat all but softfloat files to get a consistent coding style.
362306a36Sopenharmony_ci	  Used "indent -kr -i8 -ts8 -sob -l132 -ss" and a few manual fixups.
462306a36Sopenharmony_ci	* Removed dead code and fixed function protypes to match definitions.
562306a36Sopenharmony_ci	* Consolidated use of (opcode && MASK_ARITHMETIC_OPCODE) >> 20.
662306a36Sopenharmony_ci	* Make 80-bit precision a compile-time option. (1%)
762306a36Sopenharmony_ci	* Only initialize FPE state once in repeat-FP situations. (6%)
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci2002-01-19  Russell King <rmk@arm.linux.org.uk>
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci	* fpa11.h - Add documentation
1262306a36Sopenharmony_ci	          - remove userRegisters pointer from this structure.
1362306a36Sopenharmony_ci	          - add new method to obtain integer register values.
1462306a36Sopenharmony_ci	* softfloat.c - Remove float128
1562306a36Sopenharmony_ci	* softfloat.h - Remove float128
1662306a36Sopenharmony_ci	* softfloat-specialize - Remove float128
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	* The FPA11 structure is not a kernel-specific data structure.
1962306a36Sopenharmony_ci	  It is used by users of ptrace to examine the values of the
2062306a36Sopenharmony_ci	  floating point registers.  Therefore, any changes to the
2162306a36Sopenharmony_ci	  FPA11 structure (size or position of elements contained
2262306a36Sopenharmony_ci	  within) have to be well thought out.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	* Since 128-bit float requires the FPA11 structure to change
2562306a36Sopenharmony_ci	  size, it has been removed.  128-bit float is currently unused,
2662306a36Sopenharmony_ci	  and needs various things to be re-worked so that we won't
2762306a36Sopenharmony_ci	  overflow the available space in the task structure.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci	* The changes are designed to break any patch that goes on top
3062306a36Sopenharmony_ci	  of this code, so that the authors properly review their changes.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci1999-08-19  Scott Bambrough  <scottb@netwinder.org>
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci	* fpmodule.c - Changed version number to 0.95
3562306a36Sopenharmony_ci	* fpa11.h - modified FPA11, FPREG structures
3662306a36Sopenharmony_ci	* fpa11.c - Changes due to FPA11, FPREG structure alterations.
3762306a36Sopenharmony_ci	* fpa11_cpdo.c - Changes due to FPA11, FPREG structure alterations.
3862306a36Sopenharmony_ci	* fpa11_cpdt.c - Changes due to FPA11, FPREG structure alterations.
3962306a36Sopenharmony_ci	* fpa11_cprt.c - Changes due to FPA11, FPREG structure alterations.
4062306a36Sopenharmony_ci	* single_cpdo.c - Changes due to FPA11, FPREG structure alterations.
4162306a36Sopenharmony_ci	* double_cpdo.c - Changes due to FPA11, FPREG structure alterations.
4262306a36Sopenharmony_ci	* extended_cpdo.c - Changes due to FPA11, FPREG structure alterations.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci	* I discovered several bugs.  First and worst is that the kernel
4562306a36Sopenharmony_ci	  passes in a pointer to the FPE's state area.	This is defined
4662306a36Sopenharmony_ci	  as a struct user_fp (see user.h).  This pointer was cast to a
4762306a36Sopenharmony_ci	  FPA11*.  Unfortunately FPA11 and user_fp are of different sizes;
4862306a36Sopenharmony_ci	  user_fp is smaller.  This meant that the FPE scribbled on things
4962306a36Sopenharmony_ci	  below its area, which is bad, as the area is in the thread_struct
5062306a36Sopenharmony_ci	  embedded in the process task structure.  Thus we were scribbling
5162306a36Sopenharmony_ci	  over one of the most important structures in the entire OS.
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci	* user_fp and FPA11 have now been harmonized.  Most of the changes
5462306a36Sopenharmony_ci	  in the above code were dereferencing problems due to moving the
5562306a36Sopenharmony_ci	  register type out of FPREG, and getting rid of the union variable
5662306a36Sopenharmony_ci	  fpvalue.
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci	* Second I noticed resetFPA11 was not always being called for a
5962306a36Sopenharmony_ci	  task.  This should happen on the first floating point exception
6062306a36Sopenharmony_ci	  that occurs.	It is controlled by init_flag in FPA11.  The
6162306a36Sopenharmony_ci	  comment in the code beside init_flag state the kernel guarantees
6262306a36Sopenharmony_ci	  this to be zero.  Not so.  I found that the kernel recycles task
6362306a36Sopenharmony_ci	  structures, and that recycled ones may not have init_flag zeroed.
6462306a36Sopenharmony_ci	  I couldn't even find anything that guarantees it is zeroed when
6562306a36Sopenharmony_ci	  when the task structure is initially allocated.  In any case
6662306a36Sopenharmony_ci	  I now initialize the entire FPE state in the thread structure to
6762306a36Sopenharmony_ci	  zero when allocated and recycled.  See alloc_task_struct() and
6862306a36Sopenharmony_ci	  flush_thread() in arch/arm/process.c.  The change to
6962306a36Sopenharmony_ci	  alloc_task_struct() may not be necessary, but I left it in for
7062306a36Sopenharmony_ci	  completeness (better safe than sorry).
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ci1998-11-23  Scott Bambrough  <scottb@netwinder.org>
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci	* README.FPE - fix typo in description of lfm/sfm instructions
7562306a36Sopenharmony_ci	* NOTES - Added file to describe known bugs/problems
7662306a36Sopenharmony_ci	* fpmodule.c - Changed version number to 0.94
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci1998-11-20  Scott Bambrough  <scottb@netwinder.org>
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci	* README.FPE - fix description of URD, NRM instructions
8162306a36Sopenharmony_ci	* TODO - remove URD, NRM instructions from TODO list
8262306a36Sopenharmony_ci	* single_cpdo.c - implement URD, NRM
8362306a36Sopenharmony_ci	* double_cpdo.c - implement URD, NRM
8462306a36Sopenharmony_ci	* extended_cpdo.c - implement URD, NRM
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci1998-11-19  Scott Bambrough  <scottb@netwinder.org>
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ci	* ChangeLog - Added this file to track changes made.
8962306a36Sopenharmony_ci	* fpa11.c - added code to initialize register types to typeNone
9062306a36Sopenharmony_ci	* fpa11_cpdt.c - fixed bug in storeExtended (typeExtended changed to
9162306a36Sopenharmony_ci	  typeDouble in switch statement)
92