From: Ivan Maidanski Date: Tue, 21 Feb 2017 21:05:11 +0000 (+0300) Subject: Fix 'Cannot implement CAS_full on this architecture' build error (cris) X-Git-Tag: v7.2h~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1992f397fc11186ee3c04d0fdac8f3f8ed050c03;p=libatomic_ops Fix 'Cannot implement CAS_full on this architecture' build error (cris) * src/atomic_ops.h [__cris__ || CRIS] (AO_CAN_EMUL_CAS): Define. * src/atomic_ops/sysdeps/gcc/cris.h: Add TODO to implement CAS. --- diff --git a/src/atomic_ops.h b/src/atomic_ops.h index c3dde0a..496bfc3 100644 --- a/src/atomic_ops.h +++ b/src/atomic_ops.h @@ -257,6 +257,7 @@ # endif /* __arm__ */ # if defined(__cris__) || defined(CRIS) # include "atomic_ops/sysdeps/gcc/cris.h" +# define AO_CAN_EMUL_CAS # define AO_GENERALIZE_TWICE # endif # if defined(__mips__) diff --git a/src/atomic_ops/sysdeps/gcc/cris.h b/src/atomic_ops/sysdeps/gcc/cris.h index cbca1e7..89eec87 100644 --- a/src/atomic_ops/sysdeps/gcc/cris.h +++ b/src/atomic_ops/sysdeps/gcc/cris.h @@ -42,7 +42,7 @@ * http://developer.axis.com/doc/hardware/etrax100lx/prog_man/ * 1_architectural_description.pdf * - * Presumably many other primitives (notably CAS, including the double- + * TODO: Presumably many other primitives (notably CAS, including the double- * width versions) could be implemented in this manner, if someone got * around to it. */