summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2010-09-28 16:33:32 +0800
committerAvi Kivity <avi@redhat.com>2010-10-24 10:53:09 +0200
commit7129eecac10681f69cb00c0323ee915feceb57eb (patch)
tree2f10330574e0b3987fa60e4c7b70c0403b84e1c0
parent50933623e50d8730cc1a65853c153b3b4c93b629 (diff)
downloadblackbird-obmc-linux-7129eecac10681f69cb00c0323ee915feceb57eb.tar.gz
blackbird-obmc-linux-7129eecac10681f69cb00c0323ee915feceb57eb.zip
KVM: x86 emulator: Eliminate compilation warning in x86_decode_insn()
Eliminate: arch/x86/kvm/emulate.c:801: warning: ‘sv’ may be used uninitialized in this function on gcc 4.1.2 Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index aead72e141b4..d0df25d84acd 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -798,7 +798,7 @@ done:
static void fetch_bit_operand(struct decode_cache *c)
{
- long sv, mask;
+ long sv = 0, mask;
if (c->dst.type == OP_MEM && c->src.type == OP_REG) {
mask = ~(c->dst.bytes * 8 - 1);
OpenPOWER on IntegriCloud