summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py')
-rw-r--r--debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py b/debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py
index 04dd001..dc5949e 100644
--- a/debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py
+++ b/debug/risc-v-gsp-rm-vm/harness/value_demos/s06_inject_service.py
@@ -76,7 +76,8 @@ def run() -> dict:
C.write_json(os.path.join(out, "inject.json"), payload)
return payload
- session = ge.launch(kernel=C.DEMO_ELF, backend=backend, record=os.path.join(out, "session"), name="vd-s06")
+ session_dir = C.session_dir(out)
+ session = ge.launch(kernel=C.DEMO_ELF, backend=backend, record=session_dir, name="vd-s06")
try:
ctrl = session.symbols.lookup("gsp_ctrl")
session.run(duration=0.25)
@@ -96,7 +97,7 @@ def run() -> dict:
"remote": {"ping": remote_ping, "sum": remote_sum},
"via_firmware": {"ping": via_fw_ping, "sum": via_fw_sum},
"mailbox_command": C.INJECT_CMD_BASE + C.SERVICE_SLOT,
- "session": os.path.relpath(os.path.join(out, "session"), C.TOOL_ROOT),
+ "session": os.path.relpath(session_dir, C.TOOL_ROOT),
"question": "load/register/invoke a service blob end-to-end, both routes",
"answer": (
f"service loaded at {service.load_addr:#x}, slot {service.slot} "