<div dir="ltr"><div dir="ltr"><div>But I am not able to run:</div><div><div><pre><font size="4"><code>qemu-system-riscv64 -no-reboot -nographic -machine virt -m 256M -kernel hello.exe<br></code></font></pre></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 9, 2019 at 2:53 PM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com">vaibhavgupta40@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I was able to run rv32imac using</div><div><pre><font size="4"><code>qemu-system-riscv32 -no-reboot -nographic -machine virt -m 256M -kernel hello.exe</code></font></pre></div></div></blockquote><div>When I configured rv32imac BSP with RISCV_ENABLE_HTIF_SUPPORT=1, This command prevents qemu from quitting properly I guess.</div><div>As after showing output, cursor still blinks and I quit it using 'pkill -9 qemu'.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 6, 2019 at 9:04 PM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank">vaibhavgupta40@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Awesome, thanks! <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 6, 2019 at 8:50 PM Hesham Almatary <<a href="mailto:hesham.almatary@cl.cam.ac.uk" target="_blank">hesham.almatary@cl.cam.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Vaibhav,<br>
<br>
* I recommend you use rv64* because of a potential 32-bit HTIF issue on Spike.<br>
* Make sure you install Spike correctly [1] and it's in your path or<br>
also qemu-system-riscv* instead.<br>
* If you're building RTEMS for Spike (i.e., rv*_spike), make sure to<br>
add RISCV_ENABLE_HTIF_SUPPORT to your configure line [2] when you<br>
build RTEMS.<br>
* It might be easier to try rv64* on QEMU (i.e., no Spike) instead.<br>
<br>
[1] <a href="https://github.com/riscv/riscv-isa-sim" rel="noreferrer" target="_blank">https://github.com/riscv/riscv-isa-sim</a><br>
[2] <a href="https://docs.rtems.org/branches/master/user/bsps/bsps-riscv.html" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/bsps/bsps-riscv.html</a><br>
<br>
On Tue, 6 Aug 2019 at 14:52, Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank">vaibhavgupta40@gmail.com</a>> wrote:<br>
><br>
> I am getting following error:<br>
> .<br>
> .<br>
> $ rtems-test --rtems-bsp=rv32imac_spike --rtems-tools=$HOME/development/rtems/5 ~/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples<br>
><br>
> RTEMS Testing - Tester, 5.0.not_released<br>
>  Command Line: /home/varodek/development/rtems/5/bin/rtems-test --rtems-bsp=rv32imac_spike --rtems-tools=/home/varodek/development/rtems/5 /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples<br>
>  Host: Linux varodek 5.0.9-arch1-1-ARCH #1 SMP PREEMPT Sat Apr 20 15:00:46 UTC 2019 x86_64<br>
>  Python: 3.7.3 (default, Mar 26 2019, 21:43:19) [GCC 8.2.1 20181127]<br>
> Host: Linux-5.0.9-arch1-1-ARCH-x86_64-with-arch (Linux varodek 5.0.9-arch1-1-ARCH #1 SMP PREEMPT Sat Apr 20 15:00:46 UTC 2019 x86_64 )<br>
> [ 2/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: capture.exe<br>
> [ 3/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: cdtest.exe<br>
> [ 4/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: cxx_iostream.exe<br>
> [ 1/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: base_sp.exe<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/capture.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/capture.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/cxx_iostream.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/cxx_iostream.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/cdtest.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/cdtest.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/base_sp.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/base_sp.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> warning: switched to dry run due to errors<br>
> [ 1/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: base_sp.exe<br>
> Result: invalid    Time: 0:00:00.032377 base_sp.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/base_sp.exe<br>
> [ 2/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: capture.exe<br>
> Result: invalid    Time: 0:00:00.037950 capture.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/capture.exe<br>
> [ 3/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: cdtest.exe<br>
> Result: invalid    Time: 0:00:00.038061 cdtest.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/cdtest.exe<br>
> [ 4/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | riscv32/rv32imac: cxx_iostream.exe<br>
> Result: invalid    Time: 0:00:00.034353 cxx_iostream.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/cxx_iostream.exe<br>
> [ 7/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: minimum.exe<br>
> [ 8/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: nsecs.exe<br>
> [ 5/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: fileio.exe<br>
> [ 6/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: hello.exe<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/minimum.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/minimum.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/nsecs.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/fileio.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/nsecs.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/fileio.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> warning: switched to dry run due to errors<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/hello.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/hello.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> [ 5/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: fileio.exe<br>
> Result: invalid    Time: 0:00:00.009235 fileio.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/fileio.exe<br>
> [ 6/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: hello.exe<br>
> Result: invalid    Time: 0:00:00.005886 hello.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/hello.exe<br>
> [ 7/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: minimum.exe<br>
> [ 8/11] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:4  W:0  | riscv32/rv32imac: nsecs.exe<br>
> Result: invalid    Time: 0:00:00.011045 nsecs.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/nsecs.exe<br>
> [ 9/11] p:1  f:0  u:0  e:0  I:0  B:0  t:0  i:7  W:0  | riscv32/rv32imac: paranoia.exe<br>
> [10/11] p:1  f:0  u:0  e:0  I:0  B:0  t:0  i:7  W:0  | riscv32/rv32imac: ticker.exe<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/paranoia.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/paranoia.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/ticker.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/ticker.exe: exit-code:2<br>
> [11/11] p:1  f:0  u:0  e:0  I:0  B:0  t:0  i:8  W:0  | riscv32/rv32imac: unlimited.exe<br>
> warning: switched to dry run due to errors<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/unlimited.exe: exit-code:2<br>
> error: spike.cfg:58: execute failed: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/unlimited.exe: exit-code:2<br>
> warning: switched to dry run due to errors<br>
> [ 9/11] p:1  f:0  u:0  e:0  I:0  B:0  t:0  i:7  W:0  | riscv32/rv32imac: paranoia.exe<br>
> Result: invalid    Time: 0:00:00.011650 paranoia.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/paranoia.exe<br>
> [10/11] p:1  f:0  u:0  e:0  I:0  B:0  t:0  i:7  W:0  | riscv32/rv32imac: ticker.exe<br>
> Result: invalid    Time: 0:00:00.009872 ticker.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/ticker.exe<br>
> [11/11] p:1  f:0  u:0  e:0  I:0  B:0  t:0  i:8  W:0  | riscv32/rv32imac: unlimited.exe<br>
> Result: invalid    Time: 0:00:00.002352 unlimited.exe<br>
> =>  run: spike --isa=RV32IMAC /home/varodek/development/rtems/kernel/rv32imac/riscv-rtems5/c/rv32imac/testsuites/samples/unlimited.exe<br>
><br>
> Passed:         1<br>
> Failed:         0<br>
> User Input:     0<br>
> Expected Fail:  0<br>
> Indeterminate:  0<br>
> Benchmark:      0<br>
> Timeout:        0<br>
> Invalid:       10<br>
> Wrong Version:  0<br>
> Wrong Build:    0<br>
> Wrong Tools:    0<br>
> -----------------<br>
> Total:         11<br>
> Invalid:<br>
>  capture.exe<br>
>  cdtest.exe<br>
>  cxx_iostream.exe<br>
>  base_sp.exe<br>
>  nsecs.exe<br>
>  fileio.exe<br>
>  hello.exe<br>
>  paranoia.exe<br>
>  ticker.exe<br>
>  unlimited.exe<br>
> Average test time: 0:00:00.093749<br>
> Testing time     : 0:00:01.031239<br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>