[Libre-soc-bugs] [Bug 1088] 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
Wed May 24 02:19:31 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1088

Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |programmerjake at gmail.com

--- Comment #1 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from bug #1087 comment #6)
> done.
> 
> +        # write FPSCR
> +        if name in ['FPSCR', ]:
> +            log("write FPSCR 0x%x" % (output.value))
> +            self.FPSCR.eq(output)
> +            return

assigning to FPSCR from the pseudocode function's return value generally does
nothing at all because FPSCR is a python class and is passed by reference and
pseudocode generally only assigns to attributes (directly modifying the FPSCR
register in the process) rather than the whole FPSCR variable.

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


More information about the libre-soc-bugs mailing list