[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 5 May 2015 14:34:38 +0200
From: Nicholas Mc Guire <der.herr@...r.at>
To: Gleb Natapov <gleb@...nel.org>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Ralf Baechle <ralf@...ux-mips.org>, kvm@...r.kernel.org,
linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org
Subject: [BUG ?] MIPS: KVM: condition with no effect
Hi !
Not sure if this is a bug or maybe a placeholder for
something... so patch - but maybe someone that knows this code can
give it a look.
arch/mips/kvm/emulate.c:emulation_result kvm_mips_complete_mmio_load()
<snip>
2414 case 2:
2415 if (vcpu->mmio_needed == 2)
2416 *gpr = *(int16_t *) run->mmio.data;
2417 else
2418 *gpr = *(int16_t *) run->mmio.data;
2419
2420 break;
<snip>
either the if/else is not needed or one of the branches is wrong
or it is a place-holder for somethign that did not get
done - in which case a few lines explaining this would be
nice (e.g. like in arch/sh/kernel/traps_64.c line 59)
line numbers refer to 4.1-rc2
thx!
hofrat
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists