如何冲洗PowerPC板上的所有缓存?
我有一个在嵌入式PowerPC系统上运行的Linux内核应用程序。我正在寻找一种方法来记录处理器内部缓存中所有修改后的高速缓存线,以使主内存并无效(冲洗)内部缓存。我知道X86具有将执行此操作的指令(WBINVD)。
有没有办法通过C功能调用或汇编指令在PowerPC下进行相同的事情?
我知道有PowerPC指令,例如dcbt
,它将更新该地址的缓存,但是我正在寻找可以冲洗所有内容的东西。
I have a Linux kernel application running on an embedded PowerPC system. I'm looking for a way to write back all modified cache lines in the processor’s internal cache to main memory and invalidate (flush) the internal caches. I know that the x86 has an instruction that will do this (wbinvd).
Is there a way to do the same thing under PowerPC via a C function call or assembly instruction?
I know that there are PowerPC instructions like dcbt
which will update the cache for that address, but I'm looking for something that will flush everything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论