summaryrefslogtreecommitdiff
path: root/src/dev/arm
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/arm')
-rw-r--r--src/dev/arm/pl011.cc5
-rw-r--r--src/dev/arm/pl011.hh2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/dev/arm/pl011.cc b/src/dev/arm/pl011.cc
index e47cc6753..5ca9f6087 100644
--- a/src/dev/arm/pl011.cc
+++ b/src/dev/arm/pl011.cc
@@ -92,6 +92,9 @@ Pl011::read(PacketPtr pkt)
}
}
break;
+ case UART_RSR:
+ data = 0x0; // We never have errors
+ break;
case UART_FR:
data =
UART_FR_CTS | // Clear To Send
@@ -205,6 +208,8 @@ Pl011::write(PacketPtr pkt)
clearInterrupts(UART_TXINTR);
raiseInterrupts(UART_TXINTR);
break;
+ case UART_ECR: // clears errors, ignore
+ break;
case UART_CR:
control = data;
break;
diff --git a/src/dev/arm/pl011.hh b/src/dev/arm/pl011.hh
index 2317b3114..5a92d8890 100644
--- a/src/dev/arm/pl011.hh
+++ b/src/dev/arm/pl011.hh
@@ -118,6 +118,8 @@ class Pl011 : public Uart, public AmbaDevice
protected: // Registers
static const uint64_t AMBA_ID = ULL(0xb105f00d00341011);
static const int UART_DR = 0x000;
+ static const int UART_RSR = 0x004;
+ static const int UART_ECR = 0x004;
static const int UART_FR = 0x018;
static const int UART_FR_CTS = 0x001;
static const int UART_FR_RXFE = 0x010;