riscv: split cache ops out of dma-noncoherent.c