dev: Add a dummy serial device
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 20 Jul 2017 10:36:55 +0000 (11:36 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 8 Nov 2017 10:47:25 +0000 (10:47 +0000)
commit74d3f8a1765869765b542fd91114628a62947ba9
tree201e1094159c565b1ae8f1b1f7b2a6f32abad4f4
parentd6c204c67d42a3cea9d603888ec52a8d8dacf1a3
dev: Add a dummy serial device

Add a dummy serial device that discards any output and doesn't provide
any input. This device can be used to terminate UARTs that don't have
a default device (e.g., a terminal) attached.

Change-Id: I4a6b0b5037ce360f59bfb5c566e1698d113a1d26
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/4290
Reviewed-by: Gabe Black <gabeblack@google.com>
src/dev/Serial.py
src/dev/serial.cc
src/dev/serial.hh