Package ghidra.pcode.emu.jit
Class JitThreadBytesPcodeExecutorState
java.lang.Object
ghidra.pcode.emu.ThreadPcodeExecutorState<byte[]>
ghidra.pcode.emu.jit.JitThreadBytesPcodeExecutorState
- All Implemented Interfaces:
JitBytesPcodeExecutorState,PcodeExecutorState<byte[]>,PcodeExecutorStatePiece<byte[],byte[]>
public class JitThreadBytesPcodeExecutorState
extends ThreadPcodeExecutorState<byte[]>
implements JitBytesPcodeExecutorState
The equivalent to
ThreadPcodeExecutorState that multiplexes shared and local state for
the JIT-accelerated p-code emulator-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.pcode.exec.PcodeExecutorStatePiece
PcodeExecutorStatePiece.Reason -
Field Summary
Fields inherited from class ghidra.pcode.emu.ThreadPcodeExecutorState
arithmetic, localState, sharedState -
Constructor Summary
ConstructorsConstructorDescriptionJitThreadBytesPcodeExecutorState(JitDefaultBytesPcodeExecutorState sharedState, JitDefaultBytesPcodeExecutorState localState) Construct a new thread state -
Method Summary
Modifier and TypeMethodDescriptiongetForSpace(AddressSpace space) For generated code to side-step the space lookupGet the thread-local stateGet the shared stateMethods inherited from class ghidra.pcode.emu.ThreadPcodeExecutorState
clear, fork, getArithmetic, getConcreteBuffer, getLanguage, getRegisterValues, getVar, getVar, isThreadLocalSpace, setVar, setVarMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.pcode.exec.PcodeExecutorState
fork, getAddressArithmetic, pairedMethods inherited from interface ghidra.pcode.exec.PcodeExecutorStatePiece
checkRange, clear, getArithmetic, getConcreteBuffer, getLanguage, getRegisterValues, getVar, getVar, getVar, getVar, getVar, quantizeOffset, setVar, setVar, setVar, setVar, setVar
-
Constructor Details
-
JitThreadBytesPcodeExecutorState
public JitThreadBytesPcodeExecutorState(JitDefaultBytesPcodeExecutorState sharedState, JitDefaultBytesPcodeExecutorState localState) Construct a new thread state- Parameters:
sharedState- the shared portion (e.g., ram space)localState- the local portion (i.e., register, unique spaces)
-
-
Method Details
-
getLocalState
Description copied from class:ThreadPcodeExecutorStateGet the thread-local state- Overrides:
getLocalStatein classThreadPcodeExecutorState<byte[]>- Returns:
- the thread-local state
-
getForSpace
public JitBytesPcodeExecutorStatePiece.JitBytesPcodeExecutorStateSpace getForSpace(AddressSpace space) Description copied from interface:JitBytesPcodeExecutorStateFor generated code to side-step the space lookup- Specified by:
getForSpacein interfaceJitBytesPcodeExecutorState- Parameters:
space- the address space- Returns:
- the state space