n64: support ROMs bigger than 63.9375 MiB #1354
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the n64 core is limited to ROMs whose size is 63.9375 MiB (also known as 64 MiB - 64 KiB). The reason is twofold: first, only 64 MiB are actually mapped in the PI bus; second, the last 64 KiB are shadowed by the ISViewer debugging device.
ISViewer addresses sit in the last 64 KiB of the 64th MiB, so when the ROM is larger than that (for instance, it is exactly 64 MiB), we should simply disable ISViewer. In the long run, there will be a better debugging solution which doesn't sit in the PI address space anyway.
Moreover, N64 supports basically ROM of unlimited size, there is no 64 MiB limit. This commit also allows that by simply mapping the whole ROM into the PI address bus, whatever the actual size is.