qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [7033] target-alpha: fix palcode mask for user pal calls


From: Aurelien Jarno
Subject: [Qemu-devel] [7033] target-alpha: fix palcode mask for user pal calls
Date: Tue, 07 Apr 2009 22:31:34 +0000

Revision: 7033
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7033
Author:   aurel32
Date:     2009-04-07 22:31:34 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
target-alpha: fix palcode mask for user pal calls

(Also 6 bits for unprivileged calls)

Signed-off-by: Tristan Gingold <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>

Modified Paths:
--------------
    trunk/target-alpha/translate.c

Modified: trunk/target-alpha/translate.c
===================================================================
--- trunk/target-alpha/translate.c      2009-04-07 22:31:26 UTC (rev 7032)
+++ trunk/target-alpha/translate.c      2009-04-07 22:31:34 UTC (rev 7033)
@@ -685,7 +685,7 @@
         /* CALL_PAL */
         if (palcode >= 0x80 && palcode < 0xC0) {
             /* Unprivileged PAL call */
-            gen_excp(ctx, EXCP_CALL_PAL + ((palcode & 0x1F) << 6), 0);
+            gen_excp(ctx, EXCP_CALL_PAL + ((palcode & 0x3F) << 6), 0);
 #if !defined (CONFIG_USER_ONLY)
         } else if (palcode < 0x40) {
             /* Privileged PAL code */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]