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

Allow arbitrary and possibly unaligned writes to RDRAM through gdb #1639

Merged
merged 2 commits into from
Oct 27, 2024

Conversation

cemulate
Copy link
Contributor

@cemulate cemulate commented Sep 6, 2024

We want to allow arbitrary writes through the GDB server to the RDRAM area. This was done in #1620, but that version has a subtle issue where the server will still refuse to write or change writes that happen to be of size Byte|Half|Word|Dual if the addressed is not aligned to that size.
This PR fixes the issue by checking if the write is to RDRAM first, allowing arbitrary and possibly unaligned writes. Otherwise, the write is handled through the normal machinery where these issues may be semantically important.

@LukeUsher
Copy link
Member

Looks like the build is failing here for windows (x64 and arm64) and macOS.

@cemulate
Copy link
Contributor Author

Missed an actual change (CPU::write -> CPU::writeDebug) during the rebase since large portions were shifted; for some reason my local (linux) build still succeeded. This should fix the rest (I don't have easy access to those platforms to test).

@LukeUsher LukeUsher merged commit 9f060c7 into ares-emulator:master Oct 27, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants