简体   繁体   English

Spike/Newlib 中的并发性

[英]Concurrency in Spike/Newlib

How do I simulate concurrent programs in the Spike RISC-V ISS using newlib?如何使用 newlib 在 Spike RISC-V ISS 中模拟并发程序?

What I know is that Spike has a -p flag to simulate multiple processors, but I can't use pthreads or other such system calls since they are not part of newlib.我所知道的是,Spike 有一个 -p 标志来模拟多个处理器,但我不能使用 pthreads 或其他此类系统调用,因为它们不是 newlib 的一部分。 Do I need to install the linux compiler toolchain and simulate a whole linux system for this?我是否需要为此安装 linux 编译器工具链并模拟整个 linux 系统?

You could just run FreeRTOS, either the contributed RISC-V Spike Simulator GCC port , or the official one in the case it would support spike - I am not sure it does, but it does support qemu if you don't mind using qemu instead of spike.你可以只运行 FreeRTOS,要么是贡献的 RISC-V Spike Simulator GCC 端口,要么是官方的,如果它支持峰值 - 我不确定它是否支持,但如果你不介意使用 qemu,它确实支持 qemu的尖峰。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM