[Libre-soc-bugs] [Bug 898] binutils svp64 objdump support
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sun Aug 21 20:47:22 BST 2022
https://bugs.libre-soc.org/show_bug.cgi?id=898
--- Comment #14 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #12)
> Yet another day of banging my head towards metaclasses wall, but again, a
> success story!
>
> 1. We now have a really pretty print!
in which universe? :)
fascinatingly it looks like it's repr()able
> print(some_insn)
> SVP64Instruction(0x54027a47d68f215, major=0x1f, prefix={0x54027a4,
> insn=0x54027a4, major=0x1, pid=0x3, rm={0x27a4, spr=0x27a4, mmode=0x0,
> mask=0x0, elwidth=0x0, ewsrc=0x0, subvl=0x0, extra=0x13d, mode=0x4,
ahh, that's really handy.
> 2. We now have a clear syntax to remap some field, as long as it is wrapped
> with a class.
making some of these optional is probably not a good ides
except by an inheriting class. or... maybe,i dunno.
> class RM(Fields):
> elwidth: Field = range(4, 6)?
pack/unpack bits need to be added here.
pack bit 4
Unpack bit 5
> 3. Any proper field intended to be inherited should declare a magic field
> which describes how the field is mapped in overall
can you give an example how that works? like an amoeba
this has grown to a multicellular organism :)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list