Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ configure_file(config.h.in config.h)

set(XT_PREFIXES ${RISCV_TOOL_PREFIX})
if(NOT XT_PREFIXES)
find_program(GCC_TEST riscv32-unknown-linux-gnu-gcc)
if (GCC_TEST)
find_program(GCC_TEST_32 riscv32-unknown-linux-gnu-gcc)
find_program(GCC_TEST_64 riscv64-unknown-elf-gcc)
if (GCC_TEST_32)
set(XT_PREFIXES riscv32-unknown-linux-gnu-
${XT_PREFIXES})
else ()
elseif (GCC_TEST_64)
set(XT_PREFIXES riscv64-unknown-elf-
${XT_PREFIXES})
else ()
set(XT_PREFIXES riscv64-elf-
${XT_PREFIXES})
endif()
endif()

Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ SPDX-License-Identifier: GPL-3.0-or-later
mkdir -p build && cd build && cmake .. && make && sudo make install
```

#### Compilare l'emulatore su Arch Linux
Installazione delle dipendenze:
```bash
sudo pacman -S riscv64-elf-gcc boost
```
Clonazione e compilazione di uriscv:
```bash
git clone https://github.com/virtualsquare/uriscv
cd uriscv
mkdir -p build && cd build && cmake .. && make && sudo make install
```

### Eseguire l'emulatore
```bash
uriscv-cli
Expand Down