Make AddressSpaces QOM objects to ensure that they are destroyed when
their owners are finalized and also to get a unique path for debugging
output.

The name arguments were used to distinguish AddresSpaces in debugging
output, but they will represent property names after QOM-ification and
debugging output will show QOM paths. So change them to make them more
concise and also avoid conflicts with other properties.

Signed-off-by: Akihiko Odaki <od...@rsg.ci.i.u-tokyo.ac.jp>
---
 hw/fsi/aspeed_apb2opb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/fsi/aspeed_apb2opb.c b/hw/fsi/aspeed_apb2opb.c
index 8eda6f67cfd9..d337f567c6f5 100644
--- a/hw/fsi/aspeed_apb2opb.c
+++ b/hw/fsi/aspeed_apb2opb.c
@@ -349,7 +349,7 @@ static void fsi_opb_init(Object *o)
     OPBus *opb = OP_BUS(o);
 
     memory_region_init(&opb->mr, 0, TYPE_FSI_OPB, UINT32_MAX);
-    address_space_init(&opb->as, NULL, &opb->mr, TYPE_FSI_OPB);
+    address_space_init(&opb->as, OBJECT(opb), &opb->mr, "as");
 }
 
 static const TypeInfo opb_info = {

-- 
2.51.0


Reply via email to