gpt4 book ai didi

c - 刷新数据缓存(dcbf汇编指令)

转载 作者:太空宇宙 更新时间:2023-11-04 04:18:28 24 4
gpt4 key购买 nike

上下文:

我目前想要刷新我的 L1 数据缓存(目标:NXP P2020 Qoriq e500)。

我在使用“dcbf”指令时遇到问题:

dcbf r3, r4 // with r3 and r4 defining the address of the DATA cache

问题:
我的问题是我不知道要给这条指令什么参数来到达数据缓存并刷新行?

我尝试使用“刚刚创建的”变量:

int i = 0; 
// let assume r3 = &i
dcbf 0, r3
isync
msync

我以为 dcbf 指令将通过 &i 参数到达数据缓存,但是当我通过探测器进一步查看内存时,我看到缓存没有刷新也没有失效。

最佳答案

我的根本问题是给 dcbf 的地址不在缓存中。
引用手册说:Perform reads to any 48 Kbyte region, THEN execute dcbf instruction

我现在正在搜索如何读取L1数据缓存

关于c - 刷新数据缓存(dcbf汇编指令),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49361141/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com