This series adds support for a sysbus device for RAMs. Patch 2 is the main event. See commit message for full discussion.
This is primarily prompted by the recent discussions around data driven machine creation. P1 is a nicety more than anything to preserve custom naming of devices (which oddly happens for Memory instances but not Device instances). P3 is an example usage by the Xilinx Zynq board model. Peter Crosthwaite (3): qdev: Expose the qdev id string as a prop memory: Add sysbus memory device arm: xilinx_zynq: Use Sysbus Memory device for RAMs hw/arm/xilinx_zynq.c | 19 ++++++++------- hw/core/Makefile.objs | 1 + hw/core/qdev.c | 13 ++++++++-- hw/core/sysbus-memory.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ include/hw/qdev-core.h | 2 +- qdev-monitor.c | 3 ++- 6 files changed, 88 insertions(+), 13 deletions(-) create mode 100644 hw/core/sysbus-memory.c -- 1.9.2.1.g06c4abd