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

Add PC to QEMU's read / write callbacks #2896

Merged
merged 6 commits into from
Jan 27, 2025
Merged

Add PC to QEMU's read / write callbacks #2896

merged 6 commits into from
Jan 27, 2025

Conversation

rmalmain
Copy link
Member

qemu does not update the cpu's pc at the middle of a translation block.
2 things we could have done:

  • update pc before calling the callbacks (arch dependent)
  • give the correct pc as argument (arch independent, but fetch or updating pc through Qemu::read_reg or Qemu::write_reg will not work as expected)

also, adds a logging module to log events in qemu

@rmalmain rmalmain merged commit b320a8d into main Jan 27, 2025
107 checks passed
@rmalmain rmalmain deleted the pc_exec_hooks branch January 27, 2025 14:01
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