mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 03:25:33 +00:00
tcg: Return NULL temp for TCG_CALL_DUMMY_ARG
Backports commit c6c7d84df8889b9d6298466999b88a8a42e5f976 from qemu
This commit is contained in:
parent
010ded3088
commit
a659a03ff5
|
@ -989,7 +989,7 @@ struct TCGContext {
|
|||
|
||||
static inline TCGTemp *arg_temp(TCGContext *tcg_ctx, TCGArg a)
|
||||
{
|
||||
return &tcg_ctx->temps[a];
|
||||
return a == TCG_CALL_DUMMY_ARG ? NULL : &tcg_ctx->temps[a];
|
||||
}
|
||||
|
||||
static inline void tcg_set_insn_param(TCGContext *tcg_ctx, int op_idx, int arg, TCGArg v)
|
||||
|
|
Loading…
Reference in a new issue