hw/misc: New "unimplemented" sysbus device
commitf5095aa3805f8cf91c4df6e7e1dab0d914bc40bc
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Feb 2017 18:30:00 +0000 (7 18:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Feb 2017 18:55:15 +0000 (7 18:55 +0000)
treedf91fcc2a1ba0cf594a8cbafd59689623a0acc74
parent394c8bbfb7aeaa788c2bc99ca972d359847a6459
hw/misc: New "unimplemented" sysbus device

Create a new "unimplemented" sysbus device, which simply accepts
all read and write accesses, and implements them as read-as-zero,
write-ignored, with logging of the access as LOG_UNIMP.

This is useful for stubbing out bits of an SoC or board model
which haven't been written yet.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1484247815-15279-3-git-send-email-peter.maydell@linaro.org
hw/misc/Makefile.objs
hw/misc/unimp.c [new file with mode: 0644]
include/hw/misc/unimp.h [new file with mode: 0644]