You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add backward compatibility for new instruction schema format
UDB currently allows for 2 schemas for instructions with the on-going
sub-type development. Some instructions now use a 'format' field with
'opcodes' instead of the traditional 'encoding' field with 'match' and
'variables'. This caused generators to fail when processing these
instructions as they couldn't extract the bit pattern matching information.
Changes:
- Added build_match_from_format() function to convert format.opcodes
to match strings compatible with existing generator logic
- Enhanced encoding detection in load_instruction() to handle both
old schema (encoding.match) and new schema (format.opcodes)
- Maintains full backward compatibility with existing instructions
- No functional changes to generated output format
The fix ensures generators can process the complete UDB instruction
set regardless of which schema format individual instructions use.
Signed-off-by: Afonso Oliveira <[email protected]>
0 commit comments