git: bba06f0681bb - main - riscv: add QEMU marchid
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Nov 2026 18:06:22 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=bba06f0681bb8197f1cd11160fa489c1631f399c
commit bba06f0681bb8197f1cd11160fa489c1631f399c
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-11-09 18:01:46 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-11-09 18:06:18 +0000
riscv: add QEMU marchid
Globally allocated per:
https://github.com/riscv/riscv-isa-manual/blob/main/marchid.md
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
---
sys/riscv/include/cpu.h | 1 +
sys/riscv/riscv/identcpu.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/sys/riscv/include/cpu.h b/sys/riscv/include/cpu.h
index 05d3c4c834a5..fcd78c092018 100644
--- a/sys/riscv/include/cpu.h
+++ b/sys/riscv/include/cpu.h
@@ -80,6 +80,7 @@
#define MARCHID_UCB_BOOM MARCHID_OPENSOURCE(2)
#define MARCHID_UCB_SPIKE MARCHID_OPENSOURCE(5)
#define MARCHID_UCAM_RVBS MARCHID_OPENSOURCE(10)
+#define MARCHID_QEMU MARCHID_OPENSOURCE(42)
/* SiFive marchid values */
#define MARCHID_SIFIVE_U7 MARCHID_COMMERCIAL(7)
diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c
index 81e8afde8499..486176dc6333 100644
--- a/sys/riscv/riscv/identcpu.c
+++ b/sys/riscv/riscv/identcpu.c
@@ -125,6 +125,7 @@ static const struct marchid_entry global_marchids[] = {
{ MARCHID_UCB_BOOM, "UC Berkeley Boom" },
{ MARCHID_UCB_SPIKE, "UC Berkeley Spike" },
{ MARCHID_UCAM_RVBS, "University of Cambridge RVBS" },
+ { MARCHID_QEMU, "QEMU" },
MARCHID_END
};