Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 782 Bytes

README.md

File metadata and controls

58 lines (48 loc) · 782 Bytes

swtest-riscv

RISC-V版xv6のswtchの動作を理解するためのサンプルコード

必要なもの

macOSの場合,以上はHomebrewを使って簡単にインストールできる.

$ brew tap riscv/riscv
$ brew install riscv-tools

ビルド方法

$ make

実行方法

$ make run-swtest
foo: 0
bar: 0
baz: 0
foo: 1
bar: 2
baz: 3
foo: 2
bar: 4
baz: 6
foo: 3
bar: 6
baz: 9
...
$ make run-schtest
foo: 0
bar: 0
baz: 0
foo: 1
bar: 2
baz: 3
foo: 2
bar: 4
baz: 6
foo: 3
bar: 6
baz: 9
...