Commit 31a877f201416821d80ac974ac03c476fae7efd2
1 parent
2642cdb3
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
Showing
1 changed file
with
1 additions
and
1 deletions
target-alpha/translate.c
... | ... | @@ -685,7 +685,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) |
685 | 685 | /* CALL_PAL */ |
686 | 686 | if (palcode >= 0x80 && palcode < 0xC0) { |
687 | 687 | /* Unprivileged PAL call */ |
688 | - gen_excp(ctx, EXCP_CALL_PAL + ((palcode & 0x1F) << 6), 0); | |
688 | + gen_excp(ctx, EXCP_CALL_PAL + ((palcode & 0x3F) << 6), 0); | |
689 | 689 | #if !defined (CONFIG_USER_ONLY) |
690 | 690 | } else if (palcode < 0x40) { |
691 | 691 | /* Privileged PAL code */ | ... | ... |