Skip to content

Commit

Permalink
set pc_start on disasm
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Feb 10, 2025
1 parent 904efc1 commit 2619b12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qemu/target/arm/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ static void gen_sub_carry(TCGContext *tcg_ctx, TCGv_i32 dest, TCGv_i32 t0, TCGv_
tcg_gen_subi_i32(tcg_ctx, dest, dest, 1);
}

static inline void mb_tcg_opcode_cmp_hook(TCGContext *tcg_ctx, TCGv_i64 v0, TCGv_i64 v1, uint32_t size)
static inline void mb_tcg_opcode_cmp_hook(TCGContext *tcg_ctx, TCGv_i64 v0, TCGv_i64 v1, uint32_t size, uint32_t pc)
{
uc_engine *uc = tcg_ctx->uc;
if (HOOK_EXISTS_BOUNDED(uc, UC_HOOK_TCG_OPCODE, tcg_ctx->pc_start)) {
Expand Down Expand Up @@ -10925,6 +10925,7 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn)
{
unsigned int cond = insn >> 28;
TCGContext *tcg_ctx = s->uc->tcg_ctx;
tcg_ctx->pc_start = s->pc_curr;

/* M variants do not implement ARM mode; this must raise the INVSTATE
* UsageFault exception.
Expand Down

0 comments on commit 2619b12

Please sign in to comment.