mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibX86: When there are multiple REPZ/REPNZ prefixes, the last one wins
This commit is contained in:
parent
1924112d7d
commit
4eceea7c62
1 changed files with 0 additions and 2 deletions
|
@ -896,8 +896,6 @@ Instruction::Instruction(InstructionStream& stream, bool o32, bool a32)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (opbyte == Prefix::REPZ || opbyte == Prefix::REPNZ) {
|
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;
|
m_rep_prefix = opbyte;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue