From a40a88657284b567429fd3db2b9da5741ad714e1 Mon Sep 17 00:00:00 2001 From: "dylan.frei" <dylan.frei@etu.hesge.ch> Date: Mon, 2 Sep 2024 17:14:08 +0200 Subject: [PATCH] Added patch and executable for qemu-hr from qemu-avr32 --- README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6d1c72c..d6e6e83 100644 --- a/README.md +++ b/README.md @@ -27,20 +27,36 @@ their implementation possible. - bin2vhdl program is provided with its Makefile - Hepia-RISC .circ file is provided in hepiariscv2/ - qemu-hr executable is provided in qemu-hr/ -- If you wish to rebuild qemu, the sources are provided in qemu-hr/ +- If you wish to rebuild qemu from source, a patch is provided in qemu-hr/ ### Compiling qemu-hr from source -Enter the qemu-hr sources and build using the qemu build system : +qemu-hr implementation is based on the qemu-avr32 implementation : ``` +git clone https://github.com/flogosec/qemu-avr32.git +mv qemu-avr32 qemu-hr +``` + +Apply provided patch : + +``` +cp qemu-hr.patch qemu-hr/ cd qemu-hr +git apply qemu-hr.patch +``` + +Build qemu-hr using the qemu build system : + +``` mkdir build cd build -../configure +../configure --target-list=hr-softmmu make ``` +For more information on the required dependencies, please review the official documentation at https://wiki.qemu.org/Hosts/Linux + ## Usage ### customasm @@ -95,4 +111,4 @@ Project done as Bachelor Thesis by Dylan Frei under superivision of Florent Glü - HRv2 implementation : complete - QEMU implementation : complete -- LLVM implementation : TODO \ No newline at end of file +- LLVM implementation : TODO -- GitLab