Skip to content

Commit

Permalink
Fix tracing of load/store in x86
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaroo authored and XVilka committed Jun 15, 2023
1 parent 7809731 commit f0de302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions target/i386/tcg/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -5614,7 +5614,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
set_cc_op(s, CC_OP_EFLAGS);
break;
}
#endif
#endif
if (!(s->cpuid_features & CPUID_CX8)) {
goto illegal_op;
}
Expand Down Expand Up @@ -8906,7 +8906,7 @@ static void i386_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)

#ifdef HAS_TRACEWRAP
gen_trace_endframe(dc);
#endif
#endif

dc->base.pc_next = pc_next;
}
Expand Down
2 changes: 1 addition & 1 deletion target/i386/trace_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ OperandInfo *load_store_mem(uint64_t addr, int ls, const void *data, size_t data
oi->operand_usage = ou;
oi->value.len = data_size;
oi->value.data = g_malloc(oi->value.len);
memcpy(oi->value.data, &data, data_size);
memcpy(oi->value.data, data, data_size);
return oi;
}

Expand Down

0 comments on commit f0de302

Please sign in to comment.