mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
SPU: emit VZEROUPPER
Workaround dirty AVX high state
This commit is contained in:
parent
db83113316
commit
9b9ac3ca62
1 changed files with 8 additions and 0 deletions
|
@ -157,6 +157,14 @@ void spu_recompiler::compile(spu_function_t& f)
|
||||||
// Start compilation
|
// Start compilation
|
||||||
m_pos = f.addr;
|
m_pos = f.addr;
|
||||||
|
|
||||||
|
if (utils::has_avx())
|
||||||
|
{
|
||||||
|
compiler.vzeroupper();
|
||||||
|
//compiler.pxor(asmjit::x86::xmm0, asmjit::x86::xmm0);
|
||||||
|
//compiler.vptest(asmjit::x86::ymm0, asmjit::x86::ymm0);
|
||||||
|
//compiler.jnz(end_label);
|
||||||
|
}
|
||||||
|
|
||||||
for (const u32 op : f.data)
|
for (const u32 op : f.data)
|
||||||
{
|
{
|
||||||
// Bind label if initialized
|
// Bind label if initialized
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue