LibX86: When there are multiple REPZ/REPNZ prefixes, the last one wins

This commit is contained in:
Andreas Kling 2020-04-11 14:04:37 +02:00
parent 1924112d7d
commit 4eceea7c62
Notes: sideshowbarker 2024-07-19 07:43:24 +09:00

View file

@ -896,8 +896,6 @@ Instruction::Instruction(InstructionStream& stream, bool o32, bool a32)
continue;
}
if (opbyte == Prefix::REPZ || opbyte == Prefix::REPNZ) {
// FIXME: What should we do here? Respect the first or last prefix?
ASSERT(!m_rep_prefix);
m_rep_prefix = opbyte;
continue;
}