]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: exception: move privileged instruction exception out of v5 ifdef
authorOvidiu Panait <ovidiu.panait@windriver.com>
Sun, 13 Feb 2022 08:09:19 +0000 (10:09 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Feb 2022 12:11:43 +0000 (13:11 +0100)
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@windriver.com>
Link: https://lore.kernel.org/r/20220213080925.1548411-1-ovidiu.panait@windriver.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/cpu/exception.c

index e9476abedbdf288a393d4d1c3428ee5101cf6c0a..f60f1fc6936cae22f34e836ca0b79f97d369a83c 100644 (file)
@@ -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;