arch/risc-v/k210: Remove QEMU support#18577
Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom Mar 23, 2026
Merged
Conversation
lupyuen
approved these changes
Mar 22, 2026
Member
|
Sorry the CI Builds won't start until the PR below is merged. Please hang on :-) |
Member
|
@no1wudi Can you Rebase With Master Branch to trigger a rebuild? Thanks! |
Remove the CONFIG_K210_WITH_QEMU option and associated conditional code paths. The reasons for removal are: * Simplifies code path for real hardware by removing QEMU workarounds * The current QEMU target uses sifive_u machine, which is not designed for K210 emulation * For RISC-V QEMU simulation, the qemu-rv (rv-virt) target is a better choice * Renode can be used as an alternative for K210 simulation if needed Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Contributor
Author
OK |
xiaoxiang781216
approved these changes
Mar 22, 2026
acassis
approved these changes
Mar 22, 2026
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
Remove the
CONFIG_K210_WITH_QEMUoption and associated conditional code paths from the K210 architecture support. The reasons for removal are:sifive_umachine, which is not designed for K210 emulationqemu-rv(rv-virt) target is a better choiceImpact
CONFIG_K210_WITH_QEMUto run K210 code on QEMU's sifive_u machineCONFIG_K210_WITH_QEMUconfig optionTesting
Build Host: Ubuntu 22.04, x86_64, GCC
Target: k210:maix-bit:nsh
Verified that the K210 real hardware configurations still compile correctly without the QEMU conditional code.
Build output: