mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-11 23:48:38 +00:00
8374056: RISC-V: Fix argument passing for the RiscvFlushIcache::flush
Reviewed-by: fyang, rehn
This commit is contained in:
parent
ffb6279c88
commit
dc80ce7aec
@ -39,7 +39,8 @@ static int icache_flush(address addr, int lines, int magic) {
|
||||
// We need to make sure stores happens before the I/D cache synchronization.
|
||||
__asm__ volatile("fence rw, rw" : : : "memory");
|
||||
|
||||
RiscvFlushIcache::flush((uintptr_t)addr, ((uintptr_t)lines) << ICache::log2_line_size);
|
||||
uintptr_t end = (uintptr_t)addr + ((uintptr_t)lines << ICache::log2_line_size);
|
||||
RiscvFlushIcache::flush((uintptr_t)addr, end);
|
||||
|
||||
return magic;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user