[rtems commit] bsp/qoriq: Avoid MAS8 access as hypervisor guest
Sebastian Huber
sebh at rtems.org
Tue Sep 19 12:36:45 UTC 2017
Module: rtems
Branch: master
Commit: 6600882b193acf2c13df3cc94f39d5138aaaf730
Changeset: http://git.rtems.org/rtems/commit/?id=6600882b193acf2c13df3cc94f39d5138aaaf730
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Sep 19 10:16:05 2017 +0200
bsp/qoriq: Avoid MAS8 access as hypervisor guest
Update #3085.
---
c/src/lib/libbsp/powerpc/qoriq/startup/mmu-tlb1.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-tlb1.S b/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-tlb1.S
index 9131260..2dd06e2 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-tlb1.S
+++ b/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-tlb1.S
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (c) 2011, 2016 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2011, 2017 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -53,7 +53,7 @@ qoriq_tlb1_write:
mtspr FSL_EIS_MAS7, r7
#endif
mtspr FSL_EIS_MAS7, r7
-#ifdef QORIQ_HAS_HYPERVISOR_MODE
+#if defined(QORIQ_HAS_HYPERVISOR_MODE) && !defined(QORIQ_IS_HYPERVISOR_GUEST)
li r0, 0
mtspr FSL_EIS_MAS8, r0
#endif
@@ -72,7 +72,7 @@ qoriq_tlb1_invalidate:
mtspr FSL_EIS_MAS2, r0
mtspr FSL_EIS_MAS3, r0
mtspr FSL_EIS_MAS7, r0
-#ifdef QORIQ_HAS_HYPERVISOR_MODE
+#if defined(QORIQ_HAS_HYPERVISOR_MODE) && !defined(QORIQ_IS_HYPERVISOR_GUEST)
mtspr FSL_EIS_MAS8, r0
#endif
isync
More information about the vc
mailing list