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 generators were failing when processing instructions using the new
schema format. Some instructions now use a 'format' field with 'opcodes'
instead of the traditional 'encoding' field with 'match' patterns.
Changes:
- Added build_match_from_format() function to convert format.opcodes to
match strings compatible with existing generator logic
- Added support for variable instruction widths (16-bit, 32-bit, 48-bit)
based on maximum bit position in opcode fields
- Enhanced encoding detection to handle both old and new schema formats
- Maintains full backward compatibility with existing instructions
Tested with both Go and C header generators - no changes to output format.
Signed-off-by: Afonso Oliveira <[email protected]>
0 commit comments