[patch][rfc] CGEN Accurate Floating Point Support for SID
Dave Brolley
brolley@redhat.com
Tue Aug 2 20:21:00 GMT 2005
Hi,
I'm submitting this patch for approval to commit.
fp.cxx and fp.h have existed in the sid/component/cgen-cpu directory for
a while, but as far as I can tell, they have not been used. I'm working
on an internal port which requires simulation of accurate floating point
support, and so, I've cleaned up these files and created two new source
files, cgen-fpu.cxx and cgen-fpu.h, in sid/component/cgen-cpu which add
support for the semantic code which CGEN already generates to the
cgen-cpu components.
The two new sources are analogous to sim/common/cgen-accfp.c and
implement the fpu as a virtual class defining operations on objects of
type f as defined in fp.cxx and fp.h. Not all operations have been
implemented (only the ones I needed), but the remaining operations have
at least been prototyped and implementation should be straight forward
as the need for them arises (similar to cgen-ops.h).
The changes to fp.cxx and fp.h were mainly to virtualize the class in
order to allow for implementation-defined and non-standard behaviors
(tested by my internal port). Some clean up was also done and several
bugs were fixed.
Dave
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fp.sources.ChangeLog
URL: <http://sourceware.org/pipermail/sid/attachments/20050802/deb05de3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fp.sources.patch.txt
URL: <http://sourceware.org/pipermail/sid/attachments/20050802/deb05de3/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgen-fpu.h
Type: text/x-c-header
Size: 5827 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/sid/attachments/20050802/deb05de3/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cgen-fpu.cxx
URL: <http://sourceware.org/pipermail/sid/attachments/20050802/deb05de3/attachment.cxx>
More information about the Sid
mailing list