dev,arch-x86: Fix a panic in the i8042 device.
The write case was copied and pasted from the read case but not fully updated. Change-Id: I07c281a2dfab8ef957729ae2ca897e0eb91b555c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/55803 Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -200,8 +200,8 @@ X86ISA::I8042::write(PacketPtr pkt)
|
||||
"get byte %d.\n", data - ReadControllerRamBase);
|
||||
} else if (data > WriteControllerRamBase &&
|
||||
data < WriteControllerRamBase + RamSize) {
|
||||
panic("Attempted to use i8042 read controller RAM command to "
|
||||
"get byte %d.\n", data - ReadControllerRamBase);
|
||||
panic("Attempted to use i8042 write controller RAM command to "
|
||||
"get byte %d.\n", data - WriteControllerRamBase);
|
||||
} else if (data >= PulseOutputBitBase &&
|
||||
data < PulseOutputBitBase + NumOutputBits) {
|
||||
panic("Attempted to use i8042 pulse output bit command to "
|
||||
|
||||
Reference in New Issue
Block a user