From 28926f6a9b2d7123bbd9e19e1d77c18aa1f738f6 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 29 May 2020 18:26:19 +0200 Subject: [PATCH] Fix flushing the cache are doing the relocations --- relocator/src/entry.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/relocator/src/entry.cpp b/relocator/src/entry.cpp index 7383f60..ddbade3 100644 --- a/relocator/src/entry.cpp +++ b/relocator/src/entry.cpp @@ -89,10 +89,8 @@ bool ResolveRelocations() { memset((void *) curModule.getSBSSAddr(), 0, curModule.getSBSSSize()); } } - if (count > 0) { - DCFlushRange((void *) 0x00800000, 0x00800000); - ICInvalidateRange((void *) 0x00800000, 0x00800000); - } + DCFlushRange((void *) 0x00800000, 0x00800000); + ICInvalidateRange((void *) 0x00800000, 0x00800000); return wasSuccessful; }