[Libre-soc-bugs] [Bug 898] binutils svp64 objdump support

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Aug 21 11:37:22 BST 2022


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

--- Comment #11 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #10)

>     class Suffix(WordInstruction):
>         pass
> 
>     prefix: Prefix = range(0, 32)
>     suffix: Suffix = range(32, 64)
>     major: _Field = Suffix.major.remap(suffix)
> 
> Looks somewhat verbose to me, but actually expresses what happens under the
> hood. The major field is a new field, made from same field of the Suffix
> class, but remapped with respect to how suffix is actually mapped.

nice.

remember that you have to decode the suffix (partially), identifying
at the bare minimum the type of the operation (LDST/ALU/BRANCH/CROP)
before you can proceed to decoding either the EXTRA2/3 registers
or the Mode.

this means decoding MAJOR then XO.  no other information is needed
beyond that intermediary point for the purposes of getting the
Function (LDST/ALU/BRANCH/CROP)

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


More information about the libre-soc-bugs mailing list