diff options
author | Bjoern A. Zeeb <baz21@cam.ac.uk> | 2016-05-19 15:19:35 -0500 |
---|---|---|
committer | Bjoern A. Zeeb <baz21@cam.ac.uk> | 2016-05-19 15:19:35 -0500 |
commit | a6b00c07f6ec9dd25c860bc89691e3873f7996c6 (patch) | |
tree | 5692005b59b3554ded54adeefd500a5bb9f169b9 /src/dev/arm/pl011.hh | |
parent | 5fa6b68981dd8566bc2808a309f34d40186a74cf (diff) | |
download | gem5-a6b00c07f6ec9dd25c860bc89691e3873f7996c6.tar.xz |
arm,dev: PL011 UART_FR read status enhancement
Given we do not simulate a FIFO currently there are only two states
we can be in upon read: empty or full. Properly signal the latter.
Add and sort constants for states in the header file.
Committed by Jason Lowe-Power <power.jg@gmail.com>
Diffstat (limited to 'src/dev/arm/pl011.hh')
-rw-r--r-- | src/dev/arm/pl011.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dev/arm/pl011.hh b/src/dev/arm/pl011.hh index e19c74fa2..81745eded 100644 --- a/src/dev/arm/pl011.hh +++ b/src/dev/arm/pl011.hh @@ -120,8 +120,10 @@ class Pl011 : public Uart, public AmbaDevice static const int UART_DR = 0x000; static const int UART_FR = 0x018; static const int UART_FR_CTS = 0x001; - static const int UART_FR_TXFE = 0x080; static const int UART_FR_RXFE = 0x010; + static const int UART_FR_TXFF = 0x020; + static const int UART_FR_RXFF = 0x040; + static const int UART_FR_TXFE = 0x080; static const int UART_IBRD = 0x024; static const int UART_FBRD = 0x028; static const int UART_LCRH = 0x02C; |