This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to test L1/L2 cache?

Hi,

Can anyone tell me if it is possible to test L1/L2 cache for Cortex A55?

In the spec, L1 cache can be directly accessed in EL3. However, I hope I can do some memory test for the L1/L2 cache in EL1.

Is there a way to do that and how?

Thanks,

-Zhiping Jiang

Parents
  • 直接运行“ldr  x0,[x0]\n”,x0是size_t型数组,元素是相对于起始地址的偏移地址,然后设置不同的x0数组大小,就能看到时间在l1和l2大小会有个时间变化,虽然不能精确的计算两个内存的尺寸大小,但可以直观的感受到。

Reply
  • 直接运行“ldr  x0,[x0]\n”,x0是size_t型数组,元素是相对于起始地址的偏移地址,然后设置不同的x0数组大小,就能看到时间在l1和l2大小会有个时间变化,虽然不能精确的计算两个内存的尺寸大小,但可以直观的感受到。

Children