Skip to contentSkip to conversation

Question about ARC HS38 core

Buildroot Thomas Petazzoni 1 participant 1 message Feb 3, 2016

lore
Share & tools
lore
#0 lore raw

Alexey, Lada,

While working on the atomic series [1], Yann and I discovered something probably wrong in the handling of the HS38 core in Buildroot.

The BR2_ARC_ATOMIC_EXT option is described as below:

# Choice of atomic instructions presence
config BR2_ARC_ATOMIC_EXT
bool "Atomic extension (LLOCK/SCOND instructions)" default y if BR2_arc770d || BR2_archs38

I.e, it makes the atomic extension optional on both the ARC770D and the ARCHS38 cores.

However, our testing with this option *disabled* shows that:

* An ARC770D toolchain indeed lacks the atomic intrinsics __sync_*() in the compiler, as expected.

* An ARCHS38 toolchain still has the atomic intrinsics in the compiler.

This leads us to think that ARC HS38 in fact always have the atomic extension available, regardless of the BR2_ARC_ATOMIC_EXT option.

Could you check this ?

Thanks a lot!

Thomas

[1] http://lists.busybox.net/pipermail/buildroot/2016-February/151672.html

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com