Skip to content

Commit 23d6a9c

Browse files
committed
update ckb-vm hacklog
1 parent 1f08d95 commit 23d6a9c

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

content/hacking/run-riscv-vm-test-suite.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ draft = false
2020
- [Run CKB-VM-Test-Suite](#run-ckb-vm-test-suite)
2121
- [Run Miri in CKB-VM](#run-miri-in-ckb-vm)
2222
- [Run Miri in CKB-VM-Test-Suite](#run-miri-in-ckb-vm-test-suite)
23+
- [Fix regex expressions](#fix-regex-expressions)
2324
- [References](#references)
2425

2526
</div>
@@ -29,7 +30,8 @@ draft = false
2930
## Install RISCV toolchain {#install-riscv-toolchain}
3031

3132
I spent a long time installing [RISCV GNU Toolchain](https://github.com/riscv/riscv-gnu-toolchain).
32-
Its instructions for macOS do not seem right, and I am not familiar with system-level programming.
33+
Its instructions for macOS seem to be incorrect,
34+
though, I am not familiar with system-level programming.
3335

3436
Follow the instructions from its GitHub.
3537

@@ -841,6 +843,26 @@ hello_miri_64
841843
```
842844
843845
846+
## Fix regex expressions {#fix-regex-expressions}
847+
848+
Fixed regex by replacing `+` with `*`.
849+
Now it works on both macOS and Linux.
850+
851+
Before:
852+
853+
```shell
854+
for i in $(find . -regex ".*/rv32u[imc]-u-[a-z0-9_]+" | grep -v "fence_i"); do
855+
...
856+
```
857+
858+
After:
859+
860+
```shell
861+
for i in $(find . -regex ".*/rv32u[imc]-u-[a-z0-9_]*" | grep -v "fence_i"); do
862+
...
863+
```
864+
865+
844866
## References {#references}
845867
846868
RISCV:

notes.org

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,8 +2277,8 @@ $ leo run
22772277
*** Install RISCV toolchain
22782278

22792279
I spent a long time installing [[https://github.com/riscv/riscv-gnu-toolchain][RISCV GNU Toolchain]].
2280-
Its instructions for macOS do not seem right, and I am not familiar with system-level programming.
2281-
2280+
Its instructions for macOS seem to be incorrect,
2281+
though, I am not familiar with system-level programming.
22822282

22832283
Follow the instructions from its GitHub.
22842284

@@ -3087,6 +3087,24 @@ hello_miri_64
30873087
+ exit
30883088
#+end_src
30893089

3090+
*** Fix regex expressions
3091+
3092+
Fixed regex by replacing ~+~ with ~*~.
3093+
Now it works on both macOS and Linux.
3094+
3095+
Before:
3096+
3097+
#+begin_src shell
3098+
for i in $(find . -regex ".*/rv32u[imc]-u-[a-z0-9_]+" | grep -v "fence_i"); do
3099+
...
3100+
#+end_src
3101+
3102+
After:
3103+
3104+
#+begin_src shell
3105+
for i in $(find . -regex ".*/rv32u[imc]-u-[a-z0-9_]*" | grep -v "fence_i"); do
3106+
...
3107+
#+end_src
30903108

30913109
*** References
30923110

0 commit comments

Comments
 (0)