From 31a877f201416821d80ac974ac03c476fae7efd2 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Tue, 7 Apr 2009 22:31:34 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7033 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-alpha/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index cdfeaa6476..ce635b727d 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -685,7 +685,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) /* 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 */