[ARM64_DYNAREC] Mark new upper YMM part as new, so the can be unwind too (for #1759)

This commit is contained in:
ptitSeb 2024-08-27 10:57:51 +02:00
parent 50623f32f6
commit 99f2207fd4
1 changed files with 2 additions and 1 deletions

View File

@ -143,6 +143,7 @@ int internal_mark_ymm(dynarec_arm_t* dyn, int t, int ymm, int reg)
// found a slot! // found a slot!
dyn->n.neoncache[reg].t=t; dyn->n.neoncache[reg].t=t;
dyn->n.neoncache[reg].n=ymm; dyn->n.neoncache[reg].n=ymm;
dyn->n.news |= (1<<reg);
return reg; return reg;
} }
return -1; return -1;
@ -493,7 +494,7 @@ void neoncacheUnwind(neoncache_t* cache)
} }
if(cache->news) { if(cache->news) {
// remove the newly created neoncache // remove the newly created neoncache
for(int i=0; i<24; ++i) for(int i=0; i<32; ++i)
if(cache->news&(1<<i)) if(cache->news&(1<<i))
cache->neoncache[i].v = 0; cache->neoncache[i].v = 0;
cache->news = 0; cache->news = 0;