riscv: Fix compile error on clang.

This also works on gcc.
This commit is contained in:
Unknown W. Brackets 2022-12-21 03:07:47 +00:00
parent 1fa2f7a971
commit 5916b3f3a8

View File

@ -628,7 +628,7 @@ void RiscVEmitter::FlushIcache() {
void RiscVEmitter::FlushIcacheSection(const u8 *start, const u8 *end) {
#if PPSSPP_ARCH(RISCV64)
__builtin___clear_cache((void *)start, (void *)end);
__builtin___clear_cache((char *)start, (char *)end);
#endif
}