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

fence.i test and caches #610

Open
algrobman opened this issue Feb 13, 2025 · 2 comments
Open

fence.i test and caches #610

algrobman opened this issue Feb 13, 2025 · 2 comments

Comments

@algrobman
Copy link

Hi,
we see the test failure on CPU with Harvard architecture with D&I caches.
The test writes a new opcode with a store, executes fence.i and expects the new opcode to be executed.
However, the new opcode remains in the D-cache. To make it visible to I-Cache cbo.clean or cbo.flush is needed, which are not in the test code.
We see possible workaround as disable caching, but then we don't check that fence.i invalidates I-chache ...
On other hand, we want to run some other tests with caching ( for ex AMO tests only work on cacheable addresses).
How to select caching selectively per test without patching their sources? (under riscof?)

What's the solution to run fence.i successfully on such CPUs?

@allenjbaum
Copy link
Collaborator

allenjbaum commented Feb 13, 2025 via email

@algrobman
Copy link
Author

fence.i does not effect D-side of CPU, but only I-side - instruction flow and invalidates I-cache. We had long discussions about this instruction spec and this was common agreement ...

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

No branches or pull requests

2 participants