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
The Form of several Zbb instructions is incorrect. This is the list of affected instructions:
clz
ctz
cpop
sext.b
sext.h
These instructions use the ISH Form, but they should use the ISHW Form instead. However, making this fix causes a failure that says that the clz instruction is incompatible with the slli instruction. Both of these instructions use the value 0x13 as their opcode value and the value 0x1 for their func3 value. When traversing the decode tree, Mavis expects instructions with the same value for a particular field to define the same fields. For the ISH Form, the next field is func6 while for the ISHW Form the next field is func7. So the error occurs because Mavis doesn't know how to compare a func6 field with a func7 field.
BTW the order the fields are evaluated is defined in a Form's opcode_fields:
I've solved problems like this in the past by breaking up fields into subfields. So the ISHW field func7 might become func6 and func1 so that func6 can be compared against the ISH func6.
The text was updated successfully, but these errors were encountered:
The Form of several Zbb instructions is incorrect. This is the list of affected instructions:
clz
ctz
cpop
sext.b
sext.h
These instructions use the ISH Form, but they should use the ISHW Form instead. However, making this fix causes a failure that says that the
clz
instruction is incompatible with theslli
instruction. Both of these instructions use the value0x13
as theiropcode
value and the value0x1
for theirfunc3
value. When traversing the decode tree, Mavis expects instructions with the same value for a particular field to define the same fields. For the ISH Form, the next field isfunc6
while for the ISHW Form the next field isfunc7
. So the error occurs because Mavis doesn't know how to compare afunc6
field with afunc7
field.BTW the order the fields are evaluated is defined in a Form's
opcode_fields
:I've solved problems like this in the past by breaking up fields into subfields. So the ISHW field
func7
might becomefunc6
andfunc1
so thatfunc6
can be compared against the ISHfunc6
.The text was updated successfully, but these errors were encountered: