Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrJpQ-0004x0-LI for qemu-devel@nongnu.org; Tue, 07 Apr 2009 18:31:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrJpQ-0004wo-7B for qemu-devel@nongnu.org; Tue, 07 Apr 2009 18:31:36 -0400 Received: from [199.232.76.173] (port=33806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrJpQ-0004wl-58 for qemu-devel@nongnu.org; Tue, 07 Apr 2009 18:31:36 -0400 Received: from savannah.gnu.org ([199.232.41.3]:53277 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrJpP-0007XU-RR for qemu-devel@nongnu.org; Tue, 07 Apr 2009 18:31:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LrJpP-0000j3-Ax for qemu-devel@nongnu.org; Tue, 07 Apr 2009 22:31:35 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LrJpO-0000iE-UJ for qemu-devel@nongnu.org; Tue, 07 Apr 2009 22:31:35 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 07 Apr 2009 22:31:34 +0000 Subject: [Qemu-devel] [7033] target-alpha: fix palcode mask for user pal calls Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Aurelien Jarno 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 */