clear the cache after stub copy/init to resolve 68060 issues

This commit is contained in:
bebbo 2024-06-18 12:31:56 +02:00
parent b2a7283210
commit c2cd8a78cc

View File

@ -199,6 +199,7 @@ __LibOpen(struct Library *_masterlib asm("a6")) {
*(long*)(t + to) -= diff;
--count;
}
CacheClearU();
// reload a4 for the child library
asm volatile(
@ -292,6 +293,9 @@ char const * __ResolveSymbols(long *p asm("a0"), struct Library *childLib asm("a
void **to = (void**) *p++;
r = __so_xlib_init(name, to);
}
CacheClearU();
asm volatile("move.l (a7)+,a4" : "=r"(a4));
return r;
}