Package ghidra.pcode.emu.x86
Class X86PcodeStateInitializer
java.lang.Object
ghidra.pcode.emu.x86.X86PcodeStateInitializer
- All Implemented Interfaces:
PcodeStateInitializer
,ExtensionPoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> void
initializeThread
(PcodeThread<T> thread) The thread's register state has just been initialized, and additional initialization is needed for Sleigh executionboolean
isApplicable
(Language language) Check if this initializer applies to the given languageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.pcode.emu.PcodeStateInitializer
initializeMachine
-
Constructor Details
-
X86PcodeStateInitializer
public X86PcodeStateInitializer()
-
-
Method Details
-
isApplicable
Description copied from interface:PcodeStateInitializer
Check if this initializer applies to the given language- Specified by:
isApplicable
in interfacePcodeStateInitializer
- Parameters:
language
- the language to check- Returns:
- true if it applies, false otherwise
-
initializeThread
Description copied from interface:PcodeStateInitializer
The thread's register state has just been initialized, and additional initialization is needed for Sleigh executionInitialization generally consists of setting "virtual" registers using data from the real ones. Virtual registers are those specified in the Sleigh, but which don't actually exist on the target processor. Often, they exist to simplify static analysis, but unfortunately cause a minor headache for dynamic execution.
- Specified by:
initializeThread
in interfacePcodeStateInitializer
- Type Parameters:
T
- the type of values in the machine state- Parameters:
thread
- the newly-initialized thread
-