LibX86: Run the instruction decoder in 32-bit mode by default

Let's assume a 32-bit execution environment unless otherwise specified.
This commit is contained in:
Andreas Kling 2020-04-11 13:23:59 +02:00
parent 8f503da93f
commit e5cde0082a
2 changed files with 2 additions and 2 deletions

View file

@ -319,7 +319,7 @@ public:
u8 cc() const { return m_has_sub_op ? m_sub_op & 0xf : m_op & 0xf; }
String to_string(u32 origin, bool x32) const;
String to_string(u32 origin, bool x32 = true) const;
private:
Instruction(InstructionStream&, bool o32, bool a32);

View file

@ -20,7 +20,7 @@ int main(int argc, char** argv)
auto insn = disassembler.next();
if (!insn.has_value())
break;
out() << String::format("%08x", offset) << " " << insn.value().to_string(offset, true);
out() << String::format("%08x", offset) << " " << insn.value().to_string(offset);
}
return 0;