summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/harness/package_sim.py
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-02 11:44:31 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-02 11:44:31 -0400
commit1c99bfbeffff04529f6f669601fdf835a73778da (patch)
tree5867bab46e5848541df36c703f6fd8d6d0256e54 /debug/risc-v-gsp-rm-vm/harness/package_sim.py
parent2fd653044127a665e4677a2cdfb58120d7b3e16b (diff)
downloadopen-iov-1c99bfbeffff04529f6f669601fdf835a73778da.tar.gz
open-iov-1c99bfbeffff04529f6f669601fdf835a73778da.zip
rename (cosmetic): green-eye -> risc-v-gsp-rm-debugger in user-facing names, docs, CLI, launcher and CI workflow; internal greeneye package/module identifiers unchanged (includes in-flight greeneye module edits present in the tree)
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/harness/package_sim.py')
-rw-r--r--debug/risc-v-gsp-rm-vm/harness/package_sim.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/debug/risc-v-gsp-rm-vm/harness/package_sim.py b/debug/risc-v-gsp-rm-vm/harness/package_sim.py
index 28f54c4..98484c3 100644
--- a/debug/risc-v-gsp-rm-vm/harness/package_sim.py
+++ b/debug/risc-v-gsp-rm-vm/harness/package_sim.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Package the native green-eye simulator together with injected code.
+"""Package the native risc-v-gsp-rm-debugger simulator together with injected code.
Builds a self-contained trial directory (or deterministic ``.tar.gz``):
@@ -240,7 +240,7 @@ def write_deterministic_tar(out_dir: str, tar_path: str) -> str:
# -- request/build ----------------------------------------------------------
RUN_SH = """#!/bin/sh
-# green-eye trial runner (generated by harness/package_sim.py; inspect before use).
+# risc-v-gsp-rm-debugger trial runner (generated by harness/package_sim.py; inspect before use).
# Usage: ./run.sh [scenario args] Environment: GREENEYE_HOME overrides the tool root.
set -eu
here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
@@ -252,7 +252,7 @@ else
root=$(dirname "$root")
done
if [ ! -f "$root/greeneye/__init__.py" ]; then
- echo "run.sh: green-eye tool root not found; set GREENEYE_HOME" >&2
+ echo "run.sh: risc-v-gsp-rm-debugger tool root not found; set GREENEYE_HOME" >&2
exit 3
fi
fi
@@ -286,11 +286,11 @@ def _readme_text(
preinject: dict | None,
) -> str:
lines = [
- "# green-eye trial package",
+ "# risc-v-gsp-rm-debugger trial package",
"",
"Generated by `harness/package_sim.py` (`greeneye-trial/1`). This package",
"bundles a target, an injected service blob and a pre-scripted scenario",
- "that runs on the deterministic native RV64 simulator in the green-eye",
+ "that runs on the deterministic native RV64 simulator in the risc-v-gsp-rm-debugger",
"tool tree. It needs no QEMU, no GPU and no guest.",
"",
"## Contents",
@@ -309,7 +309,7 @@ def _readme_text(
"./run.sh --budget 200000",
"```",
"",
- "Requires Python 3.10+ and the green-eye tool tree. `run.sh` finds the",
+ "Requires Python 3.10+ and the risc-v-gsp-rm-debugger tool tree. `run.sh` finds the",
"tree by walking up from this directory; set `GREENEYE_HOME=/path/to/risc-v-gsp-rm-vm`",
"if the package was moved. Exit code 0 means the assertions passed (or an",
"image package produced its documented blocked status), 1 means an",
@@ -651,7 +651,7 @@ def run_package(out: str, *, timeout: float = DEFAULT_RUN_TIMEOUT, args: list[st
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(
prog="python3 harness/package_sim.py",
- description="Build a self-contained green-eye trial package (simulator + injected service).",
+ description="Build a self-contained risc-v-gsp-rm-debugger trial package (simulator + injected service).",
)
parser.add_argument("--target", choices=("demo", "image"), default="demo",
help="demo uproc (default) or a real .fwimage")
@@ -702,7 +702,7 @@ def main(argv: list[str] | None = None) -> int:
# -- generated scenario -----------------------------------------------------
BUILTIN_SCENARIO = r'''#!/usr/bin/env python3
-"""Pre-scripted green-eye trial scenario (generated by harness/package_sim.py).
+"""Pre-scripted risc-v-gsp-rm-debugger trial scenario (generated by harness/package_sim.py).
Boots the packaged target on the native simulator, loads and registers the
injected service, invokes it directly and through the firmware mailbox, runs
@@ -725,7 +725,7 @@ SUM_A0 = 0x10
SUM_A1 = 0x20
EXPECTED_PING = PING_ARG ^ 0xBEEF
EXPECTED_SUM = SUM_A0 + SUM_A1
-UART_BANNER = "GREEN-EYE UPROC DEMO v1"
+UART_BANNER = "RISC-V GSP-RM DEBUGGER UPROC DEMO v1"
UART_SELFTEST = "SELFTEST DONE"
@@ -790,7 +790,7 @@ def hexv(value):
def render_md(manifest, data):
target = data.get("target", {})
- lines = ["# green-eye trial results", ""]
+ lines = ["# risc-v-gsp-rm-debugger trial results", ""]
lines.append(f"- status: **{data.get('status')}**")
lines.append(f"- target: `{target.get('file', '?')}` ({target.get('kind', '?')})")
service = data.get("service")
@@ -1117,7 +1117,7 @@ def run_image(pkg, manifest, budget=None):
def main(argv=None):
- parser = argparse.ArgumentParser(description="Run a packaged green-eye trial.")
+ parser = argparse.ArgumentParser(description="Run a packaged risc-v-gsp-rm-debugger trial.")
parser.add_argument("--package", default=os.path.dirname(os.path.abspath(__file__)))
parser.add_argument("--budget", type=int, default=None,
help="image probe budget in instructions (default from manifest)")