[Libre-soc-bugs] [Bug 1221] weird ISAcaller bug, _RA not present

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Nov 29 01:17:33 GMT 2023


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

--- Comment #2 from Jacob Lifshay <programmerjake at gmail.com> ---
from going through it with a debugger, it looks like _RA was just never
implemented for svp64 instructions with elwid!=64:
https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/decoder/isa/caller.py;h=96833c598b76aacbf9d8cacdbdc6a3ac1ba1928b;hb=2eb5abb845808c436797f3a5449f847fefdacca8#l2531

so, it looks like GPR.getz doesn't have the information necessary to pick the
right register, so, luke, what do you think of changing (RA|0) to translate to
GPR.getz(_RA, RA) so getz can just return the second input if the first is
non-zero?

we can then pass in the original register number (with the SVP64 extension
bits) in _RA. This would *not* point to a sub-register (that can be added later
if necessary).

this seems like the simplest alternative.

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


More information about the libre-soc-bugs mailing list