AArch64 has single-copy 64 bit atomicity
Hi,
Andres mentioned in passing that he'd defined
PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY only on Itanium, PPC and x86 but
not ARM.
I took a look at https://developer.arm.com/documentation/ddi0487/gb/
under "B2.2.1 Requirements for single-copy atomicity" and it seemed
like we should turn this on for __aarch64__. It goes back to the
original ARMv8-A so should cover all 64 bit ARM systems.
Attachments:
0001-AArch64-has-single-copy-64-bit-atomicity.patchtext/x-patch; charset=US-ASCII; name=0001-AArch64-has-single-copy-64-bit-atomicity.patchDownload+5-1
On Wed, Nov 3, 2021 at 1:34 AM Thomas Munro <thomas.munro@gmail.com> wrote:
Andres mentioned in passing that he'd defined
PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY only on Itanium, PPC and x86 but
not ARM.I took a look at https://developer.arm.com/documentation/ddi0487/gb/
under "B2.2.1 Requirements for single-copy atomicity" and it seemed
like we should turn this on for __aarch64__. It goes back to the
original ARMv8-A so should cover all 64 bit ARM systems.
That should be very good because ARM gains popularity and the effect
of atomic read is significant
------
Regards,
Alexander Korotkov