Package ghidra.pcode.emu.jit.analysis
Class JitAnalysisContext
java.lang.Object
ghidra.pcode.emu.jit.analysis.JitAnalysisContext
A collection of state that is shared among several phases of the translation process.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJitAnalysisContext
(JitConfiguration config, JitPassage passage) Construct a new context, starting with the given configuration and source passage -
Method Summary
Modifier and TypeMethodDescriptionGet the JIT compiler configurationGet the endianness of the translation source, i.e., emulation target.Get the error message for a given p-code opGet the translation source (i.e., emulation target) languagegetOpEntry
(PcodeOp op) Check if the given p-code op is the first of an instruction.Get the source passage
-
Constructor Details
-
JitAnalysisContext
Construct a new context, starting with the given configuration and source passage- Parameters:
config
- the JIT compiler's configurationpassage
- the passage selected for translation
-
-
Method Details
-
getConfiguration
Get the JIT compiler configuration- Returns:
- the configuration
-
getPassage
Get the source passage- Returns:
- the passage
-
getLanguage
Get the translation source (i.e., emulation target) language- Returns:
- the language
-
getEndian
Get the endianness of the translation source, i.e., emulation target.- Returns:
- the endianness
-
getOpEntry
Check if the given p-code op is the first of an instruction.- Parameters:
op
- the op to check- Returns:
- the address-context pair
- See Also:
-
getErrorMessage
Get the error message for a given p-code op- Parameters:
op
- the p-code op generating the error- Returns:
- the message
- See Also:
-