[7033] target-alpha: fix palcode mask for user pal calls
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 <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-alpha/translate.c
Modified: trunk/target-alpha/translate.c
===================================================================
target-alpha/translate.c +1 -1
@@ -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 */