We had many copies of the VHPI marshalling/unmarshalling code. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
No need to open code a bunch of random termios flags, use cfmakeraw(). Most of the time we want ctrl-c to exit the current simulation, so make that the default. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>