summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2013-10-17 10:20:45 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2013-10-17 10:20:45 -0500
commit88b811b4efdb4c4defd4fa5a2426a5012939b39c (patch)
tree2a2d14bb7d9164bf6d15bf69eeb2c9b7b3015eb7 /src/dev
parentc2553745c986c5e89d71fd366fff7fa61b8cbc1e (diff)
downloadgem5-88b811b4efdb4c4defd4fa5a2426a5012939b39c.tar.xz
dev: Allow additional UART interrupts to be set
This patch allows setting a few additional interrupts for status changes that should never occur.
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/arm/pl011.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dev/arm/pl011.cc b/src/dev/arm/pl011.cc
index 2b4225ad5..b47d0e9fb 100644
--- a/src/dev/arm/pl011.cc
+++ b/src/dev/arm/pl011.cc
@@ -211,10 +211,14 @@ Pl011::write(PacketPtr pkt)
case UART_IMSC:
imsc = data;
- if (imsc.rimim || imsc.ctsmim || imsc.dcdmim || imsc.dsrmim
- || imsc.feim || imsc.peim || imsc.beim || imsc.oeim || imsc.rsvd)
+ if (imsc.feim || imsc.peim || imsc.beim || imsc.oeim || imsc.rsvd)
panic("Unknown interrupt enabled\n");
+ // rimim, ctsmim, dcdmim, dsrmim can be enabled but are ignored
+ // they are supposed to interrupt on a change of status in the line
+ // which we should never have since our terminal is happy to always
+ // receive bytes.
+
if (imsc.txim) {
DPRINTF(Uart, "Writing to IMSC: TX int enabled, scheduling interruptt\n");
rawInt.txim = 1;