最近在做一些cache测试,需要关闭L1/L2 cache。ARM的内核关于cache的配置做得比较完善,可以通过menuconfig配置。
System Type-》Disable I-Cache //L1 I-cache
System Type-》Disable D-Cache //L1 D-cache
System Type-》Enable the L2x0 outer cache controller //L2 cache
bingo,可以随便测试啦。
PS:B4860QDS芯片的Linux 内核就没有那么好的配置啦,需要手动修改内核代码关闭。诶,powerpc没落了。
扫描二维码关注公众号,回复:
4789389 查看本文章