Fix ARM 32 bits build, prfm is a 64 bits instruction.

This commit is contained in:
David Carlier
2020-11-28 11:23:40 +00:00
committed by Matthew Parkinson
parent 08d0f42cc5
commit 3e7ea1a85f

View File

@@ -49,7 +49,11 @@ namespace snmalloc
#ifdef _MSC_VER
__prefetch(ptr);
#else
# ifdef SNMALLOC_VA_BITS_64
__asm__ volatile("prfm pldl1keep, [%0]" : "=r"(ptr));
# else
__asm__ volatile("pld\t[%0]" : "=r"(ptr));
# endif
#endif
}
};