From 1992f397fc11186ee3c04d0fdac8f3f8ed050c03 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 22 Feb 2017 00:05:11 +0300 Subject: [PATCH] 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. --- src/atomic_ops.h | 1 + src/atomic_ops/sysdeps/gcc/cris.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.50.1