This adds an extra op to translator to allow the block hook sync pc in the very begining
This commit is contained in:
2025-01-18 15:07:22 +08:00
parent a78d690da5
commit 0c512f91a1
12 changed files with 85 additions and 0 deletions

View File

@@ -104,6 +104,8 @@ typedef struct DisasContextBase {
*
* @tb_stop:
* Emit any opcodes required to exit the TB, based on db->is_jmp.
* @pc_sync:
* Sync pc at this point
*/
typedef struct TranslatorOps {
void (*init_disas_context)(DisasContextBase *db, CPUState *cpu);
@@ -113,6 +115,7 @@ typedef struct TranslatorOps {
const CPUBreakpoint *bp);
void (*translate_insn)(DisasContextBase *db, CPUState *cpu);
void (*tb_stop)(DisasContextBase *db, CPUState *cpu);
void (*pc_sync)(DisasContextBase *db, CPUState *cpu);
} TranslatorOps;
/**