[Libre-soc-bugs] [Bug 979] Implement C-based Power ISA decoder compiler

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Aug 29 20:08:14 BST 2023


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

--- Comment #2 from Dmitry Selyutin <ghostmansd at gmail.com> ---
With new visitors (https://bugs.libre-soc.org/show_bug.cgi?id=1094) we should
(mostly?) be ready to generate the huge major opcode table like binutils do.
Approximately the following steps:
1. Generate a huge table with instructions sorted by opcodes, along with the
operands.
2. Provide a way to extend this table with additional data we currently lack a
bit (e.g. type of operand, various flags, etc.).
3. Supply an additional manually written code which performs the lookup based
on the instruction.
4. Everything should be in C. I suggest we compile this code into standalone
library so that it can be reused by anything which needs instruction decoding.
I assume we'll need this functionality later for other activities as well.

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


More information about the libre-soc-bugs mailing list