Commit e79ab94150db9484dd30a4c721454bc7f8b7a966

Authored by aurel32
1 parent 1aef4c57

target-alpha: Fix bug: palcode is at least 6 bits.

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@6922 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-alpha/translate.c
@@ -692,7 +692,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) @@ -692,7 +692,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn)
692 if (ctx->mem_idx & 1) 692 if (ctx->mem_idx & 1)
693 goto invalid_opc; 693 goto invalid_opc;
694 else 694 else
695 - gen_excp(ctx, EXCP_CALL_PALP + ((palcode & 0x1F) << 6), 0); 695 + gen_excp(ctx, EXCP_CALL_PALP + ((palcode & 0x3F) << 6), 0);
696 #endif 696 #endif
697 } else { 697 } else {
698 /* Invalid PAL call */ 698 /* Invalid PAL call */