Commit 17b8bfa
committed
[libcpu][risc-v] Refactor the RISC-V architecture port
Introduce an opt-in unified RISC-V common layer for RV32 and RV64 while keeping existing BSPs on the legacy implementation during migration.
- use ARCH_RISCV and ARCH_CPU_64BIT for architecture and XLEN selection
- unify context, trap, MMU, cache, timer, SBI, SMP and ISA handling
- add PLIC, CLIC, ACLINT, APLIC and IMSIC support
- map physical hart IDs to contiguous logical CPU IDs
- add T-Head vendor overrides while preserving legacy ports
- migrate qemu-virt64-riscv with RV32 and RV64 support
- update clock_time, MM, LWP, OFW, PCI and Rust integration
Existing BSPs continue using legacy_common or common64 unless they select RT_USING_RISCV_NEW_COMMON.
Signed-off-by: GuEe-GUI <2991707448@qq.com>1 parent 991f0ff commit 17b8bfa
170 files changed
Lines changed: 14879 additions & 3489 deletions
File tree
- .github/workflows
- bsp/qemu-virt64-riscv
- applications
- driver
- components
- drivers
- clock_time
- arch/risc-v
- core
- ofw
- pci
- lwp/arch/risc-v/rv64
- mm
- utest
- libcpu
- risc-v
- common64
- common
- hwcache
- include
- pic
- serial
- vector
- rvv-1.0
- legacy-t-head
- c906
- asm
- c908
- asm
- legacy_common
- t-head
- c908/asm
- virt64
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
339 | 351 | | |
340 | 352 | | |
341 | 353 | | |
| |||
0 commit comments