[Libre-soc-isa] [Bug 1087] change ISACaller and correct bug introduced in parser.py where it bypasses FPSCR as a local parameter and a return result

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun May 21 21:09:21 BST 2023


--- Comment #12 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #11)
> (In reply to Jacob Lifshay from comment #10)
> > this bug is not motivated by how the simulator works, but by how the
> > PowerISA spec has decided to setup state in preparation for fp traps. we
> > need to match the PowerISA spec.
> yes? and that's being done, yes? i see no difference between this
> (xscvdpsxds)
> and this (fcvttg):
> i see no difference between those in any way.

yes, because the places that we must change are all our other fp instructions
(fptrans, fft ops, etc.).

e.g. fatan2s needs to be changed to something like:

result <- DOUBLE(bfp32_ATAN2(SINGLE((FRA)), SINGLE((FRB))))
if FPSCR.FEX = 0 then # computed as vex_flag in fcvt*
    FRT <- result
    # don't write FRT
    # do other trap setup -- TBD

ops like fmv don't need to change since they never cause fp traps.

additionally, fcvt* might change to always write [F]RT (since that simplifies
hardware and can't overwrite the input, unlike basically all other fp ops) but
that change isn't technically necessary.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Libre-SOC-ISA mailing list