Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1188)

Unified Diff: runtime/vm/cpu_arm64.cc

Issue 1539403003: Fix arm64 build. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpu_arm64.cc
diff --git a/runtime/vm/cpu_arm64.cc b/runtime/vm/cpu_arm64.cc
index 881aebc42fb166c6de00eb567bb6828115c50568..7cdd8ece9e40e00931abb464d3d108cd2bf764f6 100644
--- a/runtime/vm/cpu_arm64.cc
+++ b/runtime/vm/cpu_arm64.cc
@@ -15,6 +15,12 @@
#include <unistd.h> /* NOLINT */
#endif
+#if defined(__linux__) || defined(ANDROID)
+extern "C" {
+void __clear_cache(char*, char*);
+}
+#endif
+
namespace dart {
void CPU::FlushICache(uword start, uword size) {
@@ -32,10 +38,9 @@ void CPU::FlushICache(uword start, uword size) {
// ARM recommends using the gcc intrinsic __clear_cache on Linux and Android.
// blogs.arm.com/software-enablement/141-caches-and-self-modifying-code/
#if defined(__linux__) || defined(ANDROID)
- extern void __clear_cache(char*, char*);
char* beg = reinterpret_cast<char*>(start);
char* end = reinterpret_cast<char*>(start + size);
- ::__clear_cache(beg, end);
+ __clear_cache(beg, end);
#else
#error FlushICache only tested/supported on Linux and Android
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698