Skip to contentSkip to conversation

[6922] target-alpha: Fix bug: palcode is at least 6 bits.

Qemu-devel Aurelien Jarno 1 participant 1 message Mar 29, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6922

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6922
Author:   aurel32
Date:     2009-03-29 00:13:38 +0000 (Sun, 29 Mar 2009)

Log Message:
-----------
target-alpha: Fix bug: palcode is at least 6 bits.

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

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

target-alpha/translate.c +1 -1
@@ -692,7 +692,7 @@
             if (ctx->mem_idx & 1)
                 goto invalid_opc;
             else
-                gen_excp(ctx, EXCP_CALL_PALP + ((palcode & 0x1F) << 6), 0);
+                gen_excp(ctx, EXCP_CALL_PALP + ((palcode & 0x3F) << 6), 0);
 #endif
         } else {
             /* Invalid PAL call */