aboutsummaryrefslogtreecommitdiff
path: root/target-alpha
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-07 22:31:34 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-07 22:31:34 +0000
commit31a877f201416821d80ac974ac03c476fae7efd2 (patch)
tree3049662ccc79291a8842a06c3c9e09343724c8fe /target-alpha
parent2642cdb33b3f7469ec679f1034870b96178ca05a (diff)
downloadqemu-31a877f201416821d80ac974ac03c476fae7efd2.zip
qemu-31a877f201416821d80ac974ac03c476fae7efd2.tar.gz
qemu-31a877f201416821d80ac974ac03c476fae7efd2.tar.bz2
target-alpha: fix palcode mask for user pal calls
(Also 6 bits for unprivileged calls) Signed-off-by: Tristan Gingold <gingold@adacore.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7033 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-alpha')
-rw-r--r--target-alpha/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index cdfeaa6..ce635b7 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 */