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

Commit 53aceb49 authored by Rusty Russell's avatar Rusty Russell
Browse files

tools/lguest: fix features_accepted logic in example launcher.



We were clearing the lower bits when setting the upper bits.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent d2dbdac3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1721,7 +1721,7 @@ static void emulate_mmio_write(struct device *d, u32 off, u32 val, u32 mask)
			d->features_accepted |= val;
		} else {
			assert(d->mmio->cfg.guest_feature_select == 1);
			d->features_accepted &= ((u64)0xFFFFFFFF << 32);
			d->features_accepted &= 0xFFFFFFFF;
			d->features_accepted |= ((u64)val) << 32;
		}
		if (d->features_accepted & ~d->features)