Re: [PATCH 2/7] riscv: Implement cmpxchg8/16() using Zabha

From: Andrea Parri
Date: Tue May 28 2024 - 19:54:56 EST


> +zabha: \
> + __asm__ __volatile__ ( \
> + prepend \
> + " amocas" cas_sfx " %0, %z2, %1\n" \
> + append \
> + : "+&r" (r), "+A" (*(p)) \
> + : "rJ" (n) \
> + : "memory"); \

Couldn't a platform have Zabha but not have Zacas? I don't see how this
asm goto could work in such case, what am I missing?

Andrea