[PATCH 01/13] libdebugger: Fix for Armv8-R

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Dec 22 13:00:58 UTC 2020


This architecture variant has no MMU.

Update #4202.
---
 cpukit/libdebugger/rtems-debugger-arm.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cpukit/libdebugger/rtems-debugger-arm.c b/cpukit/libdebugger/rtems-debugger-arm.c
index 106cbe8b8a..ba01a860c8 100644
--- a/cpukit/libdebugger/rtems-debugger-arm.c
+++ b/cpukit/libdebugger/rtems-debugger-arm.c
@@ -1678,6 +1678,7 @@ target_exception_data_abort(void)
 }
 
 #if ARM_CP15
+#if __ARM_ARCH_PROFILE == 'A'
 /**
  * The init value for the text section.
  */
@@ -1701,6 +1702,12 @@ rtems_debugger_target_set_mmu(void)
                                            text_end,
                                            ARMV7_MMU_DATA_READ_WRITE_CACHED);
 }
+#else
+static void
+rtems_debugger_target_set_mmu(void)
+{
+}
+#endif
 
 static void
 rtems_debugger_target_set_vectors(void)
-- 
2.26.2



More information about the devel mailing list