mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
LibX86: Don't build_opcode_table_if_needed() every instruction decode
Instead, just do this once at startup. :^)
This commit is contained in:
parent
2f81c20002
commit
7ea36f5ed0
2 changed files with 1 additions and 10 deletions
|
@ -505,8 +505,6 @@ public:
|
|||
private:
|
||||
Instruction(InstructionStream&, bool o32, bool a32);
|
||||
|
||||
static void build_opcode_tables_if_needed();
|
||||
|
||||
String to_string_internal(u32 origin, const SymbolProvider*, bool x32) const;
|
||||
|
||||
const char* reg8_name() const;
|
||||
|
@ -788,7 +786,6 @@ ALWAYS_INLINE u32 MemoryOrRegisterReference::read32(CPU& cpu, const Instruction&
|
|||
|
||||
ALWAYS_INLINE Instruction Instruction::from_stream(InstructionStream& stream, bool o32, bool a32)
|
||||
{
|
||||
build_opcode_tables_if_needed();
|
||||
return Instruction(stream, o32, a32);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue