示例#1
0
 public override ProcessorState Clone()
 {
     var state = new ArmProcessorState(arch);
     state.isValid = this.isValid;
     state.regData = (uint[])regData.Clone();
     return state;
 }
示例#2
0
 public ArmRewriter(Arm32ProcessorArchitecture arch, EndianImageReader rdr, ArmProcessorState state, Frame frame, IRewriterHost host)
 {
     this.arch   = arch;
     this.instrs = CreateInstructionStream(rdr);
     this.frame  = frame;
     this.host   = host;
 }
示例#3
0
        public override ProcessorState Clone()
        {
            var state = new ArmProcessorState(arch);

            state.isValid = this.isValid;
            state.regData = (uint[])regData.Clone();
            return(state);
        }
示例#4
0
 public ThumbRewriter(ThumbProcessorArchitecture arch, EndianImageReader rdr, ArmProcessorState state, Frame frame, IRewriterHost host)
 {
     this.instrs           = CreateInstructionStream(rdr);
     this.frame            = frame;
     this.host             = host;
     this.itState          = 0;
     this.itStateCondition = ArmCodeCondition.AL;
 }
示例#5
0
 internal ArmRewriter(Dictionary <int, RegisterStorage> regs, EndianImageReader rdr, ArmProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.regs   = regs;
     this.rdr    = rdr;
     this.binder = binder;
     this.host   = host;
 }
示例#6
0
 public void Setup()
 {
     arch = new ThumbProcessorArchitecture();
     state = new ArmProcessorState(arch);
 }
示例#7
0
        public override ProcessorState Clone()
        {
            var state = new ArmProcessorState(this);

            return(state);
        }
示例#8
0
 public ArmProcessorState(ArmProcessorState that) : base(that)
 {
     this.arch    = that.arch;
     this.regData = new Dictionary <int, ulong>(that.regData);
     this.pc      = that.pc;
 }
示例#9
0
 public ThumbRewriterNew(Dictionary <int, RegisterStorage> regs, INativeArchitecture nArch, EndianImageReader rdr, ArmProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.regs   = regs;
     this.nArch  = nArch;
     this.rdr    = rdr;
     this.binder = binder;
     this.host   = host;
 }