From e79ab94150db9484dd30a4c721454bc7f8b7a966 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sun, 29 Mar 2009 00:13:38 +0000 Subject: [PATCH] target-alpha: Fix bug: palcode is at least 6 bits. Signed-off-by: Tristan Gingold Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6922 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 e27376d75e..2501815c6e 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -692,7 +692,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) if (ctx->mem_idx & 1) goto invalid_opc; else - gen_excp(ctx, EXCP_CALL_PALP + ((palcode & 0x1F) << 6), 0); + gen_excp(ctx, EXCP_CALL_PALP + ((palcode & 0x3F) << 6), 0); #endif } else { /* Invalid PAL call */ -- 2.39.5