OSDN Git Service

target-ppc: Implement IVOR[59] By Default for Book E
authorTom Musta <tommusta@gmail.com>
Fri, 5 Sep 2014 16:39:05 +0000 (11:39 -0500)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:11 +0000 (23:26 +0100)
Adjust the IVOR mask for generic Book E implementation to support bit 59.
This is consistent with the Power ISA.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reported-by: Pierre Mallard <mallard.pierre@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c

index 0530b0b..9a2e788 100644 (file)
@@ -2786,7 +2786,7 @@ static void init_excp_BookE (CPUPPCState *env)
     env->excp_vectors[POWERPC_EXCP_DTLB]     = 0x00000000;
     env->excp_vectors[POWERPC_EXCP_ITLB]     = 0x00000000;
     env->excp_vectors[POWERPC_EXCP_DEBUG]    = 0x00000000;
-    env->ivor_mask = 0x0000FFE0UL;
+    env->ivor_mask = 0x0000FFF0UL;
     env->ivpr_mask = 0xFFFF0000UL;
     /* Hardware reset vector */
     env->hreset_vector = 0xFFFFFFFCUL;