From 469bcfa4636878af3c2a1ea212216b62a7f72c43 Mon Sep 17 00:00:00 2001 From: Shengwen Cheng Date: Thu, 19 Oct 2023 21:45:59 +0800 Subject: [PATCH] README.md: Add virtio-gpu related information --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 314881e..3444ab2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,10 @@ A minimalist RISC-V system emulator capable of running Linux the kernel and corr - UART: 8250/16550 - PLIC (platform-level interrupt controller): 32 interrupts, no priority - Standard SBI, with the timer extension -- VirtIO: virtio-blk acquires disk image from the host, and virtio-net is mapped as TAP interface +- VirtIO: + - virtio-net: Mapped with TAP interface to the host + - virtio-blk: Acquires disk image from the host to the guest + - virtio-gpu: Currently supports 2D rendering mode with SDL as front-end ## Prerequisites @@ -37,6 +40,28 @@ For macOS, use the following command: $ brew install e2fsprogs ``` +### SDL2 Installation + +``` +git clone https://github.com/libsdl-org/SDL.git -b SDL2 +cd SDL +mkdir build +cd build +../configure +make +sudo make install +``` + +### Pixman Installation + +``` +git clone https://github.com/libpixman/pixman.git +cd pixman/ +./autogen.sh +make -j$(nproc) +sudo make install +``` + ## Build and Run Build the emulator: