[Libre-soc-bugs] [Bug 845] binutils: drop svmagic and deal with the prefix instead

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jul 31 22:22:51 BST 2022


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

--- Comment #6 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
 739         Subdecoder(pattern=22, opcodes=get_csv("minor_22.csv"),
 740                    opint=False, bitsel=(0, 11), suffix=None,
subdecoders=[]),

  20 0110001110-,ALU,OP_CPROP,
  21 ------10001,ALU,OP_BMASK,
  22 -----00011-,ALU,OP_FMVIS,
  23 -----01011-,ALU,OP_FISHMV,

so here you can parse the minor_22.cvs bitpattern -------10001
and go "oh, bitsel starts from 0 to 11 but actually we are only
interested in 0...4 because the rest is '-'s.  so actually
this turns into [0:4] == 0b10001

and for fmvis that would be:

"oh, "-----00011-" bitpattern starts at 1 so actually we want
1...5 this turns [1:5] == 0b00011

something like that.

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


More information about the libre-soc-bugs mailing list