Phase A: DSP FFT plan ID (radix 2/3/5, 1/N inv scale), dispatch-kernel dumps

This commit is contained in:
2026-08-16 20:38:30 +03:00
parent de7d0431d0
commit 72c1fec3d0
6 changed files with 1028 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
import ghidra.app.script.GhidraScript;
import ghidra.program.model.symbol.Reference;
import ghidra.program.model.symbol.ReferenceIterator;
import ghidra.program.model.address.Address;
import ghidra.program.model.address.AddressSpace;
import java.io.PrintWriter;
public class SearchRefs extends GhidraScript {
@Override
public void run() throws Exception {
String[] targets = {"180008140","180039aa0","181c5cd10","18003f1a0","18003f600"};
AddressSpace as = currentProgram.getAddressFactory().getDefaultAddressSpace();
PrintWriter pw = new PrintWriter(new java.io.BufferedWriter(
new java.io.FileWriter("/home/m/re-tools/xrefs.txt")));
for (String ts : targets) {
long ta = Long.parseLong(ts,16);
Address t = as.getAddress(ta);
pw.println("### TARGET " + ts);
ReferenceIterator it = currentProgram.getReferenceManager().getReferencesTo(t);
int n=0;
while (it.hasNext() && n<200) {
Reference r = it.next();
pw.println(" from " + r.getFromAddress() + " type=" + r.getReferenceType());
n++;
}
}
pw.close();
println("XREFS_DONE");
}
}