[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/10] alpha: remove unused variable
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH 08/10] alpha: remove unused variable |
Date: |
Tue, 14 Jun 2011 20:36:18 +0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
target-alpha/translate.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 5d7454c..936760c 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -1661,7 +1661,10 @@ static void gen_mtpr(int rb, int regno)
static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
{
uint32_t palcode;
- int32_t disp21, disp16, disp12;
+ int32_t disp21, disp16;
+#ifndef CONFIG_USER_ONLY
+ int32_t disp12;
+#endif
uint16_t fn11;
uint8_t opc, ra, rb, rc, fpfn, fn7, islit, real_islit;
uint8_t lit;
@@ -1681,7 +1684,9 @@ static ExitStatus translate_one(DisasContext *ctx,
uint32_t insn)
palcode = insn & 0x03FFFFFF;
disp21 = ((int32_t)((insn & 0x001FFFFF) << 11)) >> 11;
disp16 = (int16_t)(insn & 0x0000FFFF);
+#ifndef CONFIG_USER_ONLY
disp12 = (int32_t)((insn & 0x00000FFF) << 20) >> 20;
+#endif
fn11 = (insn >> 5) & 0x000007FF;
fpfn = fn11 & 0x3F;
fn7 = (insn >> 5) & 0x0000007F;
--
1.7.5.53.gc233e
- Re: [Qemu-devel] [PATCH 06/10] kvm: remove unused variables, (continued)
[Qemu-devel] [PATCH 08/10] alpha: remove unused variable,
Michael S. Tsirkin <=
[Qemu-devel] [PATCH 09/10] exec: remove unused variable, Michael S. Tsirkin, 2011/06/14