qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 02/25] Fix bug: palcode is at least 6 bits.


From: Tristan Gingold
Subject: [Qemu-devel] [PATCH 02/25] Fix bug: palcode is at least 6 bits.
Date: Tue, 24 Mar 2009 16:47:44 +0100

Signed-off-by: Tristan Gingold <address@hidden>
---
 target-alpha/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 1513622..f4783e3 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 */
-- 
1.6.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]