mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 03:45:14 +00:00
tcg/i386: Mark xmm registers call-clobbered
When host vector registers and operations were introduced, I failed to mark the registers call clobbered as required by the ABI. Fixes: 770c2fc7bb7 Backports commit 672189cd586ea38a2c1d8ab91eb1f9dcff5ceb05 from qemu
This commit is contained in:
parent
241c561bc3
commit
a4c2dbef3e
|
@ -3640,7 +3640,7 @@ static void tcg_target_init(TCGContext *s)
|
|||
s->tcg_target_available_regs[TCG_TYPE_V256] = ALL_VECTOR_REGS;
|
||||
}
|
||||
|
||||
s->tcg_target_call_clobber_regs = 0;
|
||||
s->tcg_target_call_clobber_regs = ALL_VECTOR_REGS;
|
||||
tcg_regset_set_reg(s->tcg_target_call_clobber_regs, TCG_REG_EAX);
|
||||
tcg_regset_set_reg(s->tcg_target_call_clobber_regs, TCG_REG_EDX);
|
||||
tcg_regset_set_reg(s->tcg_target_call_clobber_regs, TCG_REG_ECX);
|
||||
|
|
Loading…
Reference in a new issue