RISC-V: Remove atomic emulation duplicated code Much of this emulation is provided by generic code in atomic.h if it isn't defined here.
RISC-V: Remove unused variable
RISC-V: Post rebase fixes