Conversation
AndrewFasano
left a comment
There was a problem hiding this comment.
I think these changes make sense, but I'll defer to @lacraig2 since he wrote it!
The missing piece here is the context that we're enabling this context so that we can acquire the
Those are hash tables utilized in distinct contexts: translation and runtime. I don't see an issue invalidating the |
|
FWIW if we're looking for a better implementation of hooks have a look at this PR: #1187 |
Previously, the block invalidation function was called on
PANDA_CB_BEFORE_BLOCK_TRANSLATE, which is only triggered when both TCG caches miss (i.e. when the block is already invalidated), so I think it is a no-op. It also seems to only invalidate thetb_jmp_cacheand nottb_ctx.htable. I think both of these issues exist and that this PR solves them, but I'm not 100% sure.