Skip to content

Commit 1457ed3

Browse files
committed
scripts: sof-qemu-run: update ac30 qemu arguments and mtrace export
Update the QEMU invocation for ACE30 targets (e.g. PTL, WCL) to exactly match the default execution requirements. Remove the redundant `-cpu` argument and export `QEMU_ACE_MTRACE_FILE=/tmp/ace-mtrace.log` into the environment to ensure mailbox and mtrace logs are properly routed and captured by the emulator during simulation. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent 298fddb commit 1457ed3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/sof-qemu-run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ def main():
112112
qemu_bin = os.environ.get("QEMU_BIN_PATH", os.path.join(os.environ.get("SOF_WORKSPACE", os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))), "qemu", "build"))
113113
qemu_exe = os.path.join(qemu_bin, "qemu-system-xtensa")
114114
print(f"[sof-qemu-run] Bypassing west run explicitly for ACE30 target. Using QEMU: {qemu_exe}")
115+
os.environ["QEMU_ACE_MTRACE_FILE"] = "/tmp/ace-mtrace.log"
115116
fw_image = os.path.join(build_dir, "zephyr", "zephyr.ri")
116-
run_cmd = [qemu_exe, "-cpu", "ace30", "-machine", "adsp_ace30", "-kernel", fw_image, "-nographic"]
117+
run_cmd = [qemu_exe, "-machine", "adsp_ace30", "-kernel", fw_image, "-nographic"]
117118
else:
118119
run_cmd = [west_path, "-v", "build", "-d", build_dir, "-t", "run"]
119120

0 commit comments

Comments
 (0)