From 01bb5f1fe2796a73d1aa3e5995a53d22d997a4c5 Mon Sep 17 00:00:00 2001 From: DesperateProgrammer Date: Tue, 6 Feb 2024 11:17:23 +0100 Subject: [PATCH] Enabled Overlapping region fix again --- src/CP15.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/CP15.cpp b/src/CP15.cpp index c25470bf..f2fb9b75 100644 --- a/src/CP15.cpp +++ b/src/CP15.cpp @@ -911,7 +911,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) { u32 diff = PU_DataCacheable ^ val; PU_DataCacheable = val; - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region cachable bit @@ -937,7 +937,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) { u32 diff = PU_CodeCacheable ^ val; PU_CodeCacheable = val; - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region cachable bit @@ -964,7 +964,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) { u32 diff = PU_DataCacheWrite ^ val; PU_DataCacheWrite = val; - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region write buffer @@ -996,7 +996,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) for (int i=0;i> (i * 2) & 3) << (i * CP15_REGIONACCESS_BITS_PER_REGION); - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region access permission @@ -1028,7 +1028,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) for (int i=0;i> (i * 2) & 3) << (i * CP15_REGIONACCESS_BITS_PER_REGION); - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region access permission @@ -1054,7 +1054,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) { u32 diff = PU_DataRW ^ val; PU_DataRW = val; - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region access permission @@ -1078,7 +1078,7 @@ void ARMv5::CP15Write(const u32 id, const u32 val) { u32 diff = PU_CodeRW ^ val; PU_CodeRW = val; - #if 1 + #if 0 // This code just updates the PU_Map entries of the given region // this works fine, if the regions do not overlap // If overlapping and the least priority region access permission