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 GDB to debug RSP #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lambertjamesd
Copy link
Contributor

This pull request first moves debug hooks code out of the VR3400 code into a common location usable by both the cpu and rsp. I then add debugging hooks to the rsp and allow the gdb debugger to debug the rsp.

The debugger maps the memory range 0-0x1000 to the rsp IMEM. Adding breakpoints to that memory range will add them to the RSP. All other breakpoints go to the CPU. If a breakpoint is hit in the RSP registers will be read from the RSP in all other cases registers will be read from the CPU.

This PR also maps the memory at 0x04020000 to the vector registers of the RSP but only from the perspective of the debugger. This mapping does't effect the memory bus inside the emulator.

Add debug hooks to RSP
Allow gdb stub to debug RSP
@lambertjamesd lambertjamesd changed the title Move debug hooks to a common location Allow GDB to debug RSP May 2, 2021
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

Successfully merging this pull request may close these issues.

1 participant