Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any interface to flush L2 Cache data #2934

Open
Phantom1003 opened this issue Apr 28, 2024 · 2 comments
Open

Is there any interface to flush L2 Cache data #2934

Phantom1003 opened this issue Apr 28, 2024 · 2 comments
Labels
feature request Feature request to be considered

Comments

@Phantom1003
Copy link

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 Phantom1003 added the feature request Feature request to be considered label Apr 28, 2024
@Tang-Haojin
Copy link
Member

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

@LMiaoH
Copy link

LMiaoH commented May 27, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request to be considered
Projects
None yet
Development

No branches or pull requests

3 participants