From 4a48b4a1d83f8b7916fcc779d9c2b26bd5c77aba Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 23 Jan 2022 00:53:18 -0800 Subject: [PATCH] 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 Maintainer: Gabe Black Tested-by: kokoro --- src/dev/x86/i8042.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dev/x86/i8042.cc b/src/dev/x86/i8042.cc index 723affe93a..8bfbaec49e 100644 --- a/src/dev/x86/i8042.cc +++ b/src/dev/x86/i8042.cc @@ -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 "