You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/23 09:09:21 UTC
[GitHub] [incubator-nuttx] no1wudi edited a comment on pull request #5529: risc-v/qemu-rv: Supports SMP up to 8 cores and other minor changes
no1wudi edited a comment on pull request #5529:
URL: https://github.com/apache/incubator-nuttx/pull/5529#issuecomment-1076123831
> > I've never see this error on qemu 6.2 and above, could you try again with latest qemu ?
>
> @no1wudi
>
> The error disappeared but it seems that SMP still does not work.
>
> ```
> $ ~/opensource/QEMU/qemu-6.2/build/riscv64-softmmu/qemu-system-riscv64 --version
> QEMU emulator version 6.2.0 (v6.2.0)
> Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
> ~/opensource/QEMU/qemu-6.2/build/riscv64-softmmu/qemu-system-riscv64 -nographic -cpu rv64 -M virt -bios none -kernel ./nuttx
>
> NuttShell (NSH) NuttX-10.2.0
> nsh> ps
> PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
> 0 0 0 0 FIFO Kthread N-- Assigned 00000000 002000 000992 49.6% CPU0 IDLE
> 1 1 1 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU1 IDLE
> 2 2 2 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU2 IDLE
> 3 3 3 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU3 IDLE
> 4 4 4 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU4 IDLE
> 5 5 5 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU5 IDLE
> 6 6 6 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU6 IDLE
> 7 7 7 0 FIFO Kthread N-- Running 00000000 002000 002000 100.0%! CPU7 IDLE
> 8 8 0 100 RR Task --- Running 00000000 002016 001936 96.0%! nsh_main
> nsh> smp
> Main[0]: Running on CPU0
> Main[0]: Initializing barrier
> QEMU: Terminated
> ```
Please add `-smp 8` to command line
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org