[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Jun 22 19:42:54 BST 2023


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

--- Comment #229 from Dmitry Selyutin <ghostmansd at gmail.com> ---
I've refactored extras command. Now it's pure classes-based and demonstrates
some powerful tricks with visitors. The output is perhaps not that pretty, but
now we don't cheat and, what's more important, demonstrate how to use visitors.

$ pysvp64db extras sv.ldu
in1 RA0
in2 CONST_DS
in3 NONE
out RT
cr_in NONE
cr_in2 NONE
cr_out NONE
in1 RA0
in2 NONE
in3 NONE
out RT
out RA
cr_in NONE
cr_in2 NONE
cr_out NONE
EXTRA0 d:RT
EXTRA1 d:RA
EXTRA1 s:RA

Here's the relevant commit:
https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=bf208c7a6548cf6ae6ce33977a2fb8e3a463114a.
The implementation is somewhat less obvious than when we cheat, but is
interesting for demonstration purposes.

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


More information about the libre-soc-bugs mailing list