[Libre-soc-bugs] [Bug 1226] are special_sprs tests in caller.py backwards?

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Dec 1 00:14:53 GMT 2023


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

Jacob Lifshay <programmerjake at gmail.com> changed:

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

--- Comment #2 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #1)
> you found that it does indeed matter.
> uninitialised registers matter.

well, even if the register is initialized using mtspr it still breaks.

This makes it very annoying when trying to run ELF files since you have to
manually specify *all* SPRs your ELF file might touch.

I think this isn't a good default in that case, especially considering people
will want to run arbitrary ELF files using something like pypowersim and not
have to figure out exactly which SPRs they have to set first.

I came up with a short test that reproduces the problem (as well as actually
running the spr tests and adding expectedstate while I was at it):
https://git.libre-soc.org/?p=openpower-isa.git;a=shortlog;h=605608bae9626e3a9a034cd0a55eec317db9c2ee

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


More information about the libre-soc-bugs mailing list