dev: Add support for a simple debug UART
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 26 Feb 2018 17:27:04 +0000 (17:27 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 8 May 2018 15:04:12 +0000 (15:04 +0000)
commit05ee4c5b53cd0eaee5725abf039285156dab2734
tree6a003e868d24fc3aca53fe32bd2b48ff0febca1c
parent6d2e71156c00482447f2f33f65de072477ef64bd
dev: Add support for a simple debug UART

Add a simple memory-mapped device that forwards writes to a serial
devices and treats reads as reads from the device. Unlike real UART
models, this one doesn't support interrupts.

This is useful to implement various debug devices that exist in many
systems.

Change-Id: I1e4300e4d3b70825a15d03f47d4e026941f9066c
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/10025
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/dev/serial/SConscript
src/dev/serial/Uart.py
src/dev/serial/simple.cc [new file with mode: 0644]
src/dev/serial/simple.hh [new file with mode: 0644]