LoginSignup
0
0

More than 5 years have passed since last update.

SweRV ISS by Western Digital (2)

Last updated at Posted at 2019-01-15

久々にISSのgit cloneと実行をさせたら動きませんでした。
記事(1)で記載した頃からISSの仕様が変わっているようです。

新しい実行方法

$./whisper --newlib test3
hello world
Target program exited with code 0
Retired 1853 instructions in 0.00s 11954838 inst/s

ログ出力
$ ../whisper --newlib --log test3
#1 0 0001008c 00004197 r 03 0001408c auipc x3, 0x4
#2 0 00010090 fb418193 r 03 00014040 addi x3, x3, -0x4c
#3 0 00010094 81418513 r 0a 00013854 addi x10, x3, -0x7ec
#4 0 00010098 86c18613 r 0c 000138ac addi x12, x3, -0x794
#5 0 0001009c 40a60633 r 0c 00000058 sub x12, x12, x10
#6 0 000100a0 00000593 r 0b 00000000 addi x11, x0, 0x0
#7 0 000100a4 278000ef r 01 000100a8 jal x1, 0x278
#8 0 0001031c 00f00313 r 06 0000000f addi x6, x0, 0xf
#9 0 00010320 00050713 r 0e 00013854 addi x14, x10, 0x0
#10 0 00010324 02c37e63 r 00 00000000 bgeu x6, x12, 0x3c
#11 0 00010328 00f77793 r 0f 00000004 andi x15, x14, 0xf
#12 0 0001032c 0a079063 r 00 00000000 bne x15, x0, 0xa0
#13 0 000103cc 00279693 r 0d 00000010 slli x13, x15, 0x2
#14 0 000103d0 00000297 r 05 000103d0 auipc x5, 0x0
#15 0 000103d4 005686b3 r 0d 000103e0 add x13, x13, x5
(略)

インタラクティブモード
$./whisper --interactive test3
whisper> s
#1 0 0001008c 00004197 r 03 0001408c auipc x3, 0x4
whisper> s
#2 0 00010090 fb418193 r 03 00014040 addi x3, x3, -0x4c
whisper> s
#3 0 00010094 81418513 r 0a 00013854 addi x10, x3, -0x7ec
whisper> s 10
#4 0 00010098 86c18613 r 0c 000138ac addi x12, x3, -0x794
#5 0 0001009c 40a60633 r 0c 00000058 sub x12, x12, x10
#6 0 000100a0 00000593 r 0b 00000000 addi x11, x0, 0x0
#7 0 000100a4 278000ef r 01 000100a8 jal x1, 0x278
#8 0 0001031c 00f00313 r 06 0000000f addi x6, x0, 0xf
#9 0 00010320 00050713 r 0e 00013854 addi x14, x10, 0x0
#10 0 00010324 02c37e63 r 00 00000000 bgeu x6, x12, 0x3c
#11 0 00010328 00f77793 r 0f 00000004 andi x15, x14, 0xf
#12 0 0001032c 0a079063 r 00 00000000 bne x15, x0, 0xa0
#13 0 000103cc 00279693 r 0d 00000010 slli x13, x15, 0x2

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0