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

Prefetcher is disabled on 0x20000 boundary #347

Open
alyosha-tas opened this issue Jan 21, 2024 · 0 comments
Open

Prefetcher is disabled on 0x20000 boundary #347

alyosha-tas opened this issue Jan 21, 2024 · 0 comments

Comments

@alyosha-tas
Copy link

When the prefetcher encounters a 0x20000 boundary, it stops fetching and behaves as though it is full (it will use up whatever it has in the buffer and does not fetch anymore until the cpu fetches the next instruction after the buffer has emptied.)

Here is a test demonstrating this:

https://github.com/alyosha-tas/gba-tests/blob/master/prefetcher/bounday_test_1.gba

It seems as though an extra cycle delay happens on the cpu fetch if the buffer is not empty. This is the only way I can pass the test, otherwise I get 40 instead of the required 41. I haven't completely worked out the details yet.

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

No branches or pull requests

2 participants