sim: m32r: migrate from WITH_DEVICES to WITH_HW

The m32r port was using the device framework to handle two devices: the
cache and uart registers.  Both can be implemented in the newer hardware
framework instead which allows us to drop the device logic entirely, as
well as delete the tconfig.h file.

While creating the new uart device model, I also added support for using
stdin to read/write data rather than only supporting sockets.

This has been lightly tested as there doesn't appear to be test coverage
for the code already.  If anyone still cares about this port, then they
should (hopefully) file bug reports.
This commit is contained in:
Mike Frysinger
2015-12-25 13:04:26 -05:00
parent 34cf511206
commit 9c0c156bb7
12 changed files with 361 additions and 178 deletions

6
sim/m32r/configure vendored
View File

@@ -13400,12 +13400,12 @@ fi
if test """"; then
hardware=""""
if test ""; then
hardware=""
else
hardware="cfi core pal glue"
fi
hardware="$hardware """
hardware="$hardware m32r_cache m32r_uart"
sim_hw_cflags="-DWITH_HW=1"
sim_hw="$hardware"