aboutsummaryrefslogtreecommitdiff
path: root/riscv/platform.h
AgeCommit message (Collapse)AuthorFilesLines
2023-03-30Fix --bootargs default value in spike usage help() functionJulien Olivain1-0/+1
Commit 191634d285 changed the default kernel boot args from "console=hvc0 earlycon=sbi" to "console=ttyS0 earlycon", but didn't updated the spike usage help() function. This commit introduces a new macro DEFAULT_KERNEL_BOOTARGS in order to have a single definition. This macro is used everywhere in dts.cc and spike.cc help() function. Signed-off-by: Julien Olivain <ju.o@free.fr>
2022-04-20Add ns16550 serial device emulationAnup Patel1-0/+5
The ns16550 is a widely use serial device so we add a simplified ns16550 device emulation which is good enough for Linux, OpenSBI, and hypervisors to use as console. Signed-off-by: Anup Patel <anup@brainfault.org>
2022-04-20Add PLIC emulationAnup Patel1-0/+4
We need an interrupt controller in Spike which will allow us to emulate more real-world devices such as UART, VirtIO net, VirtIO block, etc. The RISC-V PLIC (or SiFive PLIC) is the commonly used interrupt controller in existing RISC-V platforms so this patch adds PLIC emulation for Spike. Signed-off-by: Anup Patel <anup@brainfault.org>
2021-06-06fix typo. (#723)Jiuyang Liu1-1/+1
2021-06-04encoding: udpate and move platform-related define outChih-Min Chao1-0/+11
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>