Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3885f18f authored by Wei Yongjun's avatar Wei Yongjun Committed by Avi Kivity
Browse files

KVM: x86 emulator: do not adjust the address for immediate source



adjust the dst address for a register source but not adjust the
address for an immediate source.

Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 35c843c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -727,7 +727,7 @@ static void fetch_bit_operand(struct decode_cache *c)
{
	long sv, mask;

	if (c->dst.type == OP_MEM) {
	if (c->dst.type == OP_MEM && c->src.type == OP_REG) {
		mask = ~(c->dst.bytes * 8 - 1);

		if (c->src.bytes == 2)