[VENTUS][fix] Modify the disassembly result of a compress instruction error
Modify the disassembly result of a compress instruction error.
This commit is contained in:
parent
279251d31d
commit
408ed74df2
|
@ -384,7 +384,9 @@ DecodeStatus RISCVDisassembler::getInstruction(MCInst &MI, uint64_t &Size,
|
||||||
DecodeStatus Result;
|
DecodeStatus Result;
|
||||||
|
|
||||||
// It's a 32 bit instruction if bit 0 and 1 are 1.
|
// It's a 32 bit instruction if bit 0 and 1 are 1.
|
||||||
if ((Bytes[0] & 0x3) == 0x3) {
|
// FIXME: Ventus does not support 16-bit instructions, but the judgment
|
||||||
|
// conditions here should be more perfect.
|
||||||
|
if (1) {
|
||||||
if (Bytes.size() < 4) {
|
if (Bytes.size() < 4) {
|
||||||
Size = 0;
|
Size = 0;
|
||||||
return MCDisassembler::Fail;
|
return MCDisassembler::Fail;
|
||||||
|
|
Loading…
Reference in New Issue