From d04f8fe655888acb459cc248521208be384421d0 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sun, 23 Apr 2023 17:28:57 +0100 Subject: [PATCH] CPUInfo: use HAL_XIP_ENABLED --- Tools/CPUInfo/CPUInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/CPUInfo/CPUInfo.cpp b/Tools/CPUInfo/CPUInfo.cpp index e4527f3efd..a20db4924d 100644 --- a/Tools/CPUInfo/CPUInfo.cpp +++ b/Tools/CPUInfo/CPUInfo.cpp @@ -45,7 +45,7 @@ AP_ESC_Telem telem; void setup() { #ifdef DISABLE_CACHES -#if !defined(STM32H730xx) // can't disable DCache in memory-mapped mode +#if !HAL_XIP_ENABLED // can't disable DCache in memory-mapped mode SCB_DisableDCache(); #endif SCB_DisableICache();