bap-tracing: add M68K trace support - #48
Draft
b1llow wants to merge 4 commits into
Draft
Conversation
This was referenced Aug 21, 2026
Rot127
requested changes
Aug 22, 2026
b1llow
force-pushed
the
m68k-tracing-machine
branch
from
August 23, 2026 07:54
18d8634 to
04a7779
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add systematic M68K system-emulation support to the BAP tracing plugin.
machineplugin argument for M68K.Atomic compare-exchange tracing
M68K is big-endian and normally runs on a little-endian host, so it uses the reverse-host-endian atomic helpers. Upstream QEMU currently passes the raw host-order
cmpxchgreturn value to plugin callbacks and always reportsnewvas the write value, including when the comparison fails.This PR converts the returned value to guest byte order and reports the actual post-operation value:
newvafter a successful comparison, or the unchanged old value after a failed comparison. This correction is not yet present in upstream QEMU master and is required for accurate M68K memory traces.Validation
tcg/libtcg_user.aandlibbap_tracing.sobuildsbap-tracing-machinebap-tracing-mem-value