Fix ARM 32 bits build, prfm is a 64 bits instruction.
This commit is contained in:
committed by
Matthew Parkinson
parent
08d0f42cc5
commit
3e7ea1a85f
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user