Class PcodeEmit
java.lang.Object
ghidra.app.plugin.processors.sleigh.PcodeEmit
- Direct Known Subclasses:
PcodeEmitObjects,PcodeEmitPacked
Class for converting ConstructTpl into a pcode ops given
a particular InstructionContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPcode emitter constructor for empty or unimiplemented instructionsPcodeEmit(ParserWalker walk, InstructionContext ictx, int fallOffset, PcodeOverride override) Pcode emitter constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(ConstructTpl construct, int secnum) intabstract voidNow that we have seen all label templates and references convert the collected references into full relative addresses
-
Field Details
-
incache
-
labeldef
-
numOps
protected int numOps
-
-
Constructor Details
-
PcodeEmit
protected PcodeEmit()Pcode emitter constructor for empty or unimiplemented instructions -
PcodeEmit
public PcodeEmit(ParserWalker walk, InstructionContext ictx, int fallOffset, PcodeOverride override) Pcode emitter constructor- Parameters:
walk- is the ParserWalker state for the tree that needs to be walked to generate pcodeictx- is the InstructionContext interface to resolve requests for contextfallOffset- default instruction fall offset (i.e., instruction length including delay slotted instructions)override- required if pcode overrides are to be utilized
-
-
Method Details
-
getStartAddress
-
getFallOffset
public int getFallOffset() -
getWalker
-
resolveRelatives
public abstract void resolveRelatives()Now that we have seen all label templates and references convert the collected references into full relative addresses -
build
public void build(ConstructTpl construct, int secnum) throws UnknownInstructionException, MemoryAccessException, IOException
-