feat(qemu): add QEMU workload build and run support - #60
Open
rezado wants to merge 4 commits into
Open
Conversation
# Conflicts: # Makefile # README.md # dts/README.md # scripts/build-firmware-linux.sh # scripts/build-sbi.sh # scripts/export-linux-debug-artifacts.sh # workloads/linux/spec2006/rules.mk # workloads/linux/spec2017/rules.mk
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
SPEC2017 QEMU builds need adequate memory profiles or explicit workload restrictions before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds build and runtime support for Linux workloads on QEMU’s nemu machine.
Changes:
- Adds QEMU-specific DTS, firmware outputs, and runner validation.
- Extends CoreMark and SPEC workflows for QEMU.
- Aligns DTB placement and QEMU device configuration.
File summaries
| File | Description |
|---|---|
workloads/linux/spec2017/rules.mk |
Adds QEMU firmware rules; memory profiles require correction. |
workloads/linux/spec2017/README.md |
Updates DTS examples. |
workloads/linux/spec2006/rules.mk |
Adds QEMU-aware firmware rules. |
workloads/linux/spec2006/README.md |
Documents QEMU workflows. |
workloads/linux/coremark/README.md |
Documents CoreMark QEMU builds. |
scripts/run-qemu.sh |
Validates and runs QEMU workloads. |
scripts/generate-xiangshan-multihart-dts.py |
Generates QEMU-compatible multi-hart DTS files. |
scripts/export-linux-debug-artifacts.sh |
Exports platform-specific firmware artifacts. |
scripts/build-sbi.sh |
Aligns the single-hart DTB address. |
scripts/build-gcpt.sh |
Configures the checkpoint serial port. |
scripts/build-firmware-linux.sh |
Supports platform-specific firmware outputs. |
README.md |
Documents QEMU usage and layouts. |
Makefile |
Adds platform-aware workload builds. |
dts/xiangshan-qemu-nemu-mem2g.dts.in |
Defines the single-hart QEMU topology. |
dts/xiangshan-fpga-noAIA-32hart-mem64g.dts.in |
Aligns the 32-hart QEMU devices. |
dts/xiangshan-fpga-noAIA-2hart-mem8g-novec.dts.in |
Updates the 8 GiB QEMU profile. |
dts/xiangshan-fpga-noAIA-2hart-mem16g-novec.dts.in |
Updates the 16 GiB QEMU profile. |
dts/README.md |
Documents QEMU DTS conventions. |
Review details
- Files reviewed: 20/20 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Select 8 GiB and 24 GiB QEMU DTS profiles for rate and speed cases, and retain the existing per-mode memory validation. Keep single-hart GCPT and OpenSBI configuration on the concrete 2 GiB QEMU template.
Member
|
what is the difference between QEMU and NEMU workloads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add support for building and running Linux workloads on the QEMU
nemumachine.Changes
0x310b0000.scripts/run-qemu.shwith QEMU machine/device contract validation.fw_payload.binfw_payload.qemu.binbuild/images/...directories.0x801c0000.