microblaze: exception: move privileged instruction exception out of v5 ifdef

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>
This commit is contained in:
Ovidiu Panait
2022-02-13 10:09:19 +02:00
committed by Michal Simek
parent 753a29522c
commit 4fef0a7b7e

View 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;