mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-6369: Convert remaining uses of EmulatorHelper to PcodeEmulator.
This commit is contained in:
@@ -336,13 +336,13 @@ public class ModelingScript extends GhidraScript {
|
||||
cb.dataWritten(piece, space.getAddress(offset), size, val);
|
||||
}
|
||||
|
||||
public Expr get(long offset, int size, PcodeStateCallbacks cb) {
|
||||
public Expr get(long offset, int size, Reason reason, PcodeStateCallbacks cb) {
|
||||
// TODO: Handle overlaps / offcut gets and sets
|
||||
Expr expr = map.get(offset);
|
||||
if (expr == null) {
|
||||
byte[] aOffset =
|
||||
piece.getAddressArithmetic().fromConst(offset, space.getPointerSize());
|
||||
if (cb.readUninitialized(piece, space, aOffset, size) != 0) {
|
||||
if (cb.readUninitialized(piece, space, aOffset, size, reason) != 0) {
|
||||
return map.get(offset);
|
||||
}
|
||||
}
|
||||
@@ -402,7 +402,7 @@ public class ModelingScript extends GhidraScript {
|
||||
@Override
|
||||
protected Expr getFromSpace(ExprSpace space, long offset, int size, Reason reason,
|
||||
PcodeStateCallbacks cb) {
|
||||
return space.get(offset, size, cb);
|
||||
return space.get(offset, size, reason, cb);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user