From 32b551d43781dc7b8ac4587ca2ba1554b0cbd5e5 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sat, 3 Oct 2026 14:05:38 -0400 Subject: vgsp: host CUDA bridge + sema release recovery; greeneye simulator wave - kernel: gsp_cuda_bridge (QMD launch capture, debugfs job/out/done, param+output resolution cached from inline writes), sema drain fixes (never hold/starve a channel), GR ring autopin + counter autoreg, per-page push reads, counter-derive gate; module builds clean - tools/cuda-bridge: CUDA driver-API daemon executing mail/vadd kernels on the physical GPU, CUBB2/CBD2 v2 protocol, layout check + self-tests - tools/guest-diag + tools/cuda-ab: scanner/pin fixes, victory push-only mode - debug/risc-v-gsp-rm-vm: Phase S simulator wave (GSP device model, boot ladder, triage/re-demo harnesses, docs 30-41), GPGPU-sim scaffolding - STATE-CURRENT/docs updates --- .../gsp-fwimage-570.144/scripts/ScanBranches.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tools/ghidra/gsp-fwimage-570.144/scripts/ScanBranches.java (limited to 'tools/ghidra/gsp-fwimage-570.144/scripts/ScanBranches.java') diff --git a/tools/ghidra/gsp-fwimage-570.144/scripts/ScanBranches.java b/tools/ghidra/gsp-fwimage-570.144/scripts/ScanBranches.java new file mode 100644 index 0000000..cff36f0 --- /dev/null +++ b/tools/ghidra/gsp-fwimage-570.144/scripts/ScanBranches.java @@ -0,0 +1,34 @@ +import ghidra.app.script.GhidraScript; +import ghidra.program.model.address.Address; +import ghidra.program.model.listing.Instruction; +import ghidra.program.model.listing.Listing; +import ghidra.program.model.symbol.FlowType; + +public class ScanBranches extends GhidraScript { + @Override + protected void run() throws Exception { + Listing listing = currentProgram.getListing(); + String[] args = getScriptArgs(); + Address start = toAddr(args[0]); + Address end = toAddr(args[1]); + Address target = toAddr(args[2]); + Address cur = start; + int n = 0; + while (cur.compareTo(end) < 0 && n < 20000) { + Instruction insn = listing.getInstructionAt(cur); + if (insn == null) { + try { disassemble(cur); } catch (Exception e) { println("stop at " + cur + ": " + e); break; } + insn = listing.getInstructionAt(cur); + } + if (insn == null) { println("no insn at " + cur); break; } + for (Address a : insn.getFlows()) { + if (a.equals(target)) { + println("TARGET HIT: " + insn.getAddress() + ": " + insn.toString()); + } + } + cur = insn.getMaxAddress().add(1); + n++; + } + println("scanned " + n + " instructions from " + start + " to " + cur); + } +} -- cgit v1.2.3