git: 12367f1429f1 - main - riscv: add Sifive p550/p650 identification
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Apr 2025 16:07:09 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=12367f1429f1395724c9ae702dfa64118b94581b
commit 12367f1429f1395724c9ae702dfa64118b94581b
Author: Meng Zhuo <mengzhuo@iscas.ac.cn>
AuthorDate: 2025-04-22 06:35:56 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-04-22 16:07:09 +0000
riscv: add Sifive p550/p650 identification
Reviewed-by: Warner Losh <imp@FreeBSD.org>
Pull-Request: https://github.com/freebsd/freebsd-src/pull/1674
---
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 a204b21a4a74..13a9f1ca0603 100644
--- a/sys/riscv/include/cpu.h
+++ b/sys/riscv/include/cpu.h
@@ -80,6 +80,7 @@
/* SiFive marchid values */
#define MARCHID_SIFIVE_U7 MARCHID_COMMERCIAL(7)
+#define MARCHID_SIFIVE_P5 MARCHID_COMMERCIAL(8)
/*
* MMU virtual-addressing modes. Support for each level implies the previous,
diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c
index c76732b2ef46..af71cc2f89f0 100644
--- a/sys/riscv/riscv/identcpu.c
+++ b/sys/riscv/riscv/identcpu.c
@@ -126,6 +126,7 @@ static const struct marchid_entry global_marchids[] = {
static const struct marchid_entry sifive_marchids[] = {
{ MARCHID_SIFIVE_U7, "6/7/P200/X200-Series Processor" },
+ { MARCHID_SIFIVE_P5, "P550/P650 Processor" },
MARCHID_END
};