[rtems commit] libdebugger: Fix for Armv8-R

Sebastian Huber sebh at rtems.org
Wed Dec 23 09:26:45 UTC 2020


Module:    rtems
Branch:    master
Commit:    be5eee575b166f8f351cec0a1e988a6bc8cbd2bb
Changeset: http://git.rtems.org/rtems/commit/?id=be5eee575b166f8f351cec0a1e988a6bc8cbd2bb

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Dec 22 11:51:53 2020 +0100

libdebugger: Fix for Armv8-R

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 106cbe8..ba01a86 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)



More information about the vc mailing list