Skip to content

Commit 200f34c

Browse files
committed
Miscellaneous changes
1 parent b940fd2 commit 200f34c

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/workflows/build-artifact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
make artifact ENABLE_PREBUILT=0
5757
mkdir -p /tmp/rv32emu-prebuilt
5858
mv build/linux-x86-softfp build/riscv32 /tmp/rv32emu-prebuilt
59-
- name: Buile Sail model
59+
- name: Build Sail model
6060
run: |
6161
cd /tmp
6262
opam init -y --disable-sandboxing

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ EXPECTED_pi = 3.1415926535897932384626433832795028841971693993751058209749445923
247247
check-hello: $(BIN)
248248
$(Q)$(PRINTF) "Running hello.elf ..."; \
249249
if [ "$(shell $(BIN) $(OUT)/hello.elf | uniq)" = "$(strip $(EXPECTED_hello)) inferior exit code 0" ]; then \
250-
$(call notice, [OK]); \
251-
else \
252-
$(PRINTF) "Failed.\n"; \
253-
exit 1; \
254-
fi;
250+
$(call notice, [OK]); \
251+
else \
252+
$(PRINTF) "Failed.\n"; \
253+
exit 1; \
254+
fi;
255255

256256
check: $(BIN) check-hello artifact
257257
$(Q)$(foreach e,$(CHECK_ELF_FILES),\

docs/prebuilt.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Prebuilt Binaries
22

3-
The prebuilt binaries for [rv32emu](https://github.com/sysprog21/rv32emu) are prepared primarily because the [RISC-V Sail Model](https://github.com/riscv/sail-riscv) executable is required for the [RISC-V Architecture Test](https://github.com/riscv-non-isa/riscv-arch-test), and selected RISC-V ELF files are useful for ISA simulation validation and testing. Some of these prebuilt binaries are stored in [rv32emu-prebuilt](https://github.com/sysprog21/rv32emu-prebuilt). During testing or benchmarking, these binaries are automatically downloaded into the `build/linux-x86-softfp/` and `build/riscv32/` directories by default. The RISC-V binaries are compiled using the [xPack RISC-V GCC toolchain](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack) with the options `-march=rv32im -mabi=ilp32`.
3+
The prebuilt binaries for [rv32emu](https://github.com/sysprog21/rv32emu) are prepared primarily because the [RISC-V Sail Model](https://github.com/riscv/sail-riscv) executable is required for the [RISC-V Architecture Test](https://github.com/riscv-non-isa/riscv-arch-test), and selected RISC-V ELF files are useful for ISA simulation validation and testing.
4+
Some of these prebuilt binaries are stored in [rv32emu-prebuilt](https://github.com/sysprog21/rv32emu-prebuilt).
5+
During testing or benchmarking, these binaries are automatically downloaded into the `build/linux-x86-softfp/` and `build/riscv32/` directories by default.
6+
The RISC-V binaries are compiled using the [xPack RISC-V GCC toolchain](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack) with the options `-march=rv32im -mabi=ilp32`.
7+
The x86 binaries are compiled by GCC with `-m32 -mno-sse -mno-sse2 -msoft-float` options and use [ieeelib](https://github.com/sysprog21/ieeelib) as the soft-fp library.
48

59
To fetch the prebuilt binaries manually, run:
610

mk/artifact.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ SHELL_HACK := $(shell mkdir -p $(BIN_DIR)/linux-x86-softfp $(BIN_DIR)/riscv32)
3636
ifeq ($(call has, PREBUILT), 1)
3737
LATEST_RELEASE := $(shell wget -q https://api.github.com/repos/sysprog21/rv32emu-prebuilt/releases/latest -O- | grep -Po '(?<="tag_name": ").+(?=",)')
3838
else
39+
# Since rv32emu only supports the dynamic binary translation of integer instruction in tiered compilation currently,
40+
# we disable the hardware floating-point and the related SIMD operation of x86.
3941
CFLAGS := -m32 -mno-sse -mno-sse2 -msoft-float -O2 -L$(BIN_DIR)
4042
LDFLAGS := -lsoft-fp -lm
4143

0 commit comments

Comments
 (0)