XiangShan icon indicating copy to clipboard operation
XiangShan copied to clipboard

Is there any interface to flush L2 Cache data

Open Phantom1003 opened this issue 9 months ago • 2 comments

Hi, I'm currently doing some benchmarking on XiangShan. I'd like to inquire if the core has the capability of actively invalidating the L2 cache through instructions or control registers.

Thanks.

Phantom1003 avatar Apr 28 '24 16:04 Phantom1003

Sorry for the late reply. Currently, there is no such instruction yet.

Tang-Haojin avatar May 08 '24 08:05 Tang-Haojin

Hi, I'm currently doing some benchmarking on XiangShan. I'd like to inquire if the core has the capability of actively invalidating the L2 cache through instructions or control registers.

In the Cache Controller of nanhu core, can the CMD_CMO_INV, CMD_CMO_CLEAN, CMD_CMO_FLUSH commands accomplish this operation? Or, in other words, can the Cache Controller be used to flush dirty data to memory? If so, how should it be done?

LMiaoH avatar May 27 '24 04:05 LMiaoH