mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
26 lines
835 B
Diff
26 lines
835 B
Diff
From 2f48490b3b355eb35643c5bc6d8e42f2e5aa2c0a Mon Sep 17 00:00:00 2001
|
|
From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com>
|
|
Date: Sat, 12 Jun 2021 06:55:18 +0700
|
|
Subject: [PATCH] arm: cast address to char when clearing cache
|
|
|
|
---
|
|
src/hotspot/cpu/arm/icache_arm.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/hotspot/cpu/arm/icache_arm.cpp b/src/hotspot/cpu/arm/icache_arm.cpp
|
|
index 61fcb8a35804..93d2ad4f4948 100644
|
|
--- a/src/hotspot/cpu/arm/icache_arm.cpp
|
|
+++ b/src/hotspot/cpu/arm/icache_arm.cpp
|
|
@@ -31,7 +31,7 @@
|
|
|
|
|
|
static int icache_flush(address addr, int lines, int magic) {
|
|
- __builtin___clear_cache(addr, addr + (lines << ICache::log2_line_size));
|
|
+ __builtin___clear_cache((char*) addr, (char*) (addr + (lines << ICache::log2_line_size)));
|
|
return magic;
|
|
}
|
|
|
|
--
|
|
2.44.0
|
|
|