[PATCH 1/7] microblaze: exception: move privileged instruction exception out of v5 ifdef

Ovidiu Panait ovidiu.panait at windriver.com
Sun Feb 13 09:09:19 CET 2022


The privileged instruction exception seems to have been introduced in
microblaze v7.00 along with MMU support, so having it wrapped in
MICROBLAZE_v5 ifdefs seems incorrect. Move it out of the ifdef, since all
recent microblaze versions support it.

Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
---

 arch/microblaze/cpu/exception.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/microblaze/cpu/exception.c b/arch/microblaze/cpu/exception.c
index e9476abedb..f60f1fc693 100644
--- a/arch/microblaze/cpu/exception.c
+++ b/arch/microblaze/cpu/exception.c
@@ -37,10 +37,10 @@ void _hw_exception_handler (void)
 	case 0x5:
 		puts("Divide by zero exception\n");
 		break;
-#ifdef MICROBLAZE_V5
 	case 0x7:
 		puts("Priviledged or stack protection violation exception\n");
 		break;
+#ifdef MICROBLAZE_V5
 	case 0x1000:
 		puts("Exception in delay slot\n");
 		break;
-- 
2.25.1



More information about the U-Boot mailing list