emulation: correctly wire keyboard inject interrupt

This interrupt was wired to the incorrect variable.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-06-28 21:34:20 +08:00
parent e01676d563
commit 2877fcc72a

View file

@ -96,7 +96,7 @@ namespace Antmicro.Renode.Peripherals.Input
Registers.EV_ENABLE.Define32(this)
.WithFlag(0, out irqKeyPressedEnabled, name: "KEYPRESSED", changeCallback: (_, __) => UpdateInterrupts())
.WithFlag(1, out irqKeyPressedEnabled, name: "INJECT", changeCallback: (_, __) => UpdateInterrupts())
.WithFlag(1, out irqInjectEnabled, name: "INJECT", changeCallback: (_, __) => UpdateInterrupts())
;
Registers.ROWCHANGE.Define(this)
.WithValueField(0, 32, valueProviderCallback: _ => { return this.rowChange; })