From: aurel32 Date: Sun, 29 Mar 2009 00:13:38 +0000 (+0000) Subject: target-alpha: Fix bug: palcode is at least 6 bits. X-Git-Tag: v0.11.0-rc0~1054 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e79ab94150db9484dd30a4c721454bc7f8b7a966;p=thirdparty%2Fqemu.git 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 --- diff --git a/target-alpha/translate.c b/target-alpha/translate.c index e27376d75eb..2501815c6e4 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 */