[PATCH 6.2 136/139] RISC-V: add infrastructure to allow different str* implementations