PPC: Use builtin D-Cache/I-Cache sync code.

This commit is contained in:
Mike Pall
2012-03-29 01:12:54 +02:00
parent a53a549774
commit 1980ee95b0
4 changed files with 522 additions and 484 deletions

View File

@@ -27,6 +27,9 @@ LJ_ASMF void lj_vm_unwind_rethrow(void);
#if LJ_TARGET_X86ORX64
LJ_ASMF int lj_vm_cpuid(uint32_t f, uint32_t res[4]);
#endif
#if LJ_TARGET_PPC
void lj_vm_cachesync(void *start, void *end);
#endif
LJ_ASMF double lj_vm_foldarith(double x, double y, int op);
#if LJ_HASJIT
LJ_ASMF double lj_vm_foldfpm(double x, int op);