The QEMU RISC-V PC/AT port was originally cloned from https://github.com/riscv/riscv-qemu. In order to support PC/AT platforms and also compliant with RISC-V MMIO mechanism, I added some PC/AT peripherals and modified those I/O based devices to MMIO devices, such as CMOS, PCI, VGA, ACPI and etc. QEMU RISC-V PC/AT port is a special version which support MMIO PC/AT devices. RISC-V PC/AT board is only used to emulate RISC-V UEFI port on EDKII. This version of QEMU was diverged from official RISC-V QEMU (https://github.com/riscv/riscv-qemu). It's hard to sync-up mine with the official one because lot of changes from official RISC-V QEMU and my changes for PC/AT in the past 8 months. One thing sad is I missed the original revision of official RISC-V QEMU. I will have to spend some time to migrate the changes from these two repositories.
#Prerequisites:
- $ sudo apt-get install gcc libc6-dev pkg-config bridge-utils uml-utilities zlib1g-dev libglib2.0-dev autoconf automake libtool libsdl1.2-dev
#Build:
- $ ./configure --target-list=riscvpcat-softmmu
- $ make
#Run QEMU:
- Change working directory to RiscVQeumPcat/riscvpcat-softmmu/
- $./qemu-system-riscvpcat -bios YOURBIOSIMAGE -usb -usbdevice keyboard
#YOUBIOSIMAGE:
- Built from EDK2 open source RiscVVirtPkg/RiscVVirt64.dsc package.