Skip to content

Commit 1b95941

Browse files
Add rvv check QEMU to lfs
1 parent 5b2209a commit 1b95941

9 files changed

Lines changed: 13 additions & 26 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ tftp/Image_signed.gz filter=lfs diff=lfs merge=lfs -text
66
tftp/Image_vf2_signed.gz filter=lfs diff=lfs merge=lfs -text
77
tftp/Image-vf2.gz filter=lfs diff=lfs merge=lfs -text
88
tftp/qemu.dtb filter=lfs diff=lfs merge=lfs -text
9+
tftp/qemu-system-riscv64 filter=lfs diff=lfs merge=lfs -text

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,7 @@ jobs:
6363
- run: |
6464
git lfs pull
6565
BSP=qemu_vector make
66-
cd tftp
67-
if [ ! -f ./qemu_bin/bin/qemu-system-riscv64 ]; then
68-
git clone https://github.com/qemu/qemu.git
69-
mkdir qemu_bin
70-
cd qemu
71-
./configure --target-list=riscv64-softmmu --prefix=$(pwd)../qemu_bin --cross-prefix=aarch64-linux-gnu-
72-
make -j$(nproc) && make install
73-
fi
74-
cd ..
75-
timeout 5m tftp/qemu_vector_test.sh
66+
timeout 5m tftp/qemu_test.sh
7667
7768
# hyperfine:
7869
# needs: vf2_tftp

.github/workflows/pull.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,7 @@ jobs:
6363
- run: |
6464
git lfs pull
6565
BSP=qemu_vector make
66-
cd tftp
67-
if [ ! -f ./qemu_bin/bin/qemu-system-riscv64 ]; then
68-
git clone https://github.com/qemu/qemu.git
69-
mkdir qemu_bin
70-
cd qemu
71-
./configure --target-list=riscv64-softmmu --prefix=$(pwd)../qemu_bin --cross-prefix=aarch64-linux-gnu-
72-
make -j$(nproc) && make install
73-
fi
74-
cd ..
75-
timeout 5m tftp/qemu_vector_test.sh
66+
timeout 5m tftp/qemu_test.sh
7667
7768
# hyperfine:
7869
# needs: vf2_tftp

tftp/Image_signed.gz

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:026b17954087189fed6636d4fca2743d3c84bcc6c562c308427ae891e1847e5e
3-
size 4308281
2+
oid sha256:65f0355d8c3e0da4a4cf00d991639440890a65fe5304e73460497e1a65eec757
3+
size 4308279

tftp/Image_vf2_signed.gz

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:116ef322644b2e1b8b94de141254c139c34971e85e69d431f943d7297290d88f
3-
size 8493820
2+
oid sha256:324951ca6adf0281a5e32b1fd6e2226ae660750f8beee2ee049af304d36aa9ca
3+
size 8493825

tftp/private_key.pem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
䒂rqncc;؅lV�9�-e���J�^j
1+
���5̾����[�������I�I�y

tftp/public_key.pem

0 Bytes
Binary file not shown.

tftp/qemu-system-riscv64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:71080a18aec60840212692444498a3c8c77362013b09486d6b1fb211f1051128
3+
size 81994488

tftp/qemu_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ cp ./bootloader /tftpboot/boot
2626
(cd /tftpboot/boot && gzip --decompress rootfs.cpio.gz)
2727

2828
printf -v QEMU_CMDLINE '%s' 'qemu-system-riscv64 -M virt ' \
29-
'-cpu rv64 -smp 1 -m 512 -nographic ' \
29+
'-cpu rv64,v=true,vlen=1024,rvv_ma_all_1s=true,rvv_ta_all_1s=true,zvbb=true,zvbc=true,zvknha=true '\
30+
'-smp 1 -m 512 -nographic ' \
3031
'-display none -serial pipe:/tmp/guest -s ' \
3132
'-netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no ' \
3233
'-device e1000,netdev=mynet0,mac=52:55:00:d1:55:01 ' \

0 commit comments

Comments
 (0)