diff options
author | Anup Patel <anup@brainfault.org> | 2021-12-14 19:18:32 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-04-20 11:24:35 +0530 |
commit | 191634d2854dfed448fc323195f9b65c305e2d77 (patch) | |
tree | 47193b8ed63049f264211a87e9402c82660c7f85 /riscv/sim.h | |
parent | 5a433081f4ce1a49ee83d1a81cf4922e7542a20c (diff) | |
download | spike-191634d2854dfed448fc323195f9b65c305e2d77.zip spike-191634d2854dfed448fc323195f9b65c305e2d77.tar.gz spike-191634d2854dfed448fc323195f9b65c305e2d77.tar.bz2 |
Add ns16550 serial device emulation
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>
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/sim.h b/riscv/sim.h index 91b25c2..a09c6e5 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -83,6 +83,7 @@ private: std::unique_ptr<rom_device_t> boot_rom; std::unique_ptr<clint_t> clint; std::unique_ptr<plic_t> plic; + std::unique_ptr<ns16550_t> ns16550; bus_t bus; log_file_t log_file; |