bus.c (9940b2cfbc05cdffdf6b42227a80cb1e6d2a85c2) | bus.c (981c3dcd948907f1127bc1d85b6e455dce687096) |
---|---|
1/* 2 * Dynamic device configuration and creation -- buses. 3 * 4 * Copyright (c) 2009 CodeSourcery 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 186 unchanged lines hidden (view full) --- 195 if (bc->realize) { 196 bc->realize(bus, errp); 197 } 198 199 /* TODO: recursive realization */ 200 } else if (!value && bus->realized) { 201 QTAILQ_FOREACH(kid, &bus->children, sibling) { 202 DeviceState *dev = kid->child; | 1/* 2 * Dynamic device configuration and creation -- buses. 3 * 4 * Copyright (c) 2009 CodeSourcery 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 186 unchanged lines hidden (view full) --- 195 if (bc->realize) { 196 bc->realize(bus, errp); 197 } 198 199 /* TODO: recursive realization */ 200 } else if (!value && bus->realized) { 201 QTAILQ_FOREACH(kid, &bus->children, sibling) { 202 DeviceState *dev = kid->child; |
203 object_property_set_bool(OBJECT(dev), false, "realized", 204 &error_abort); | 203 qdev_unrealize(dev); |
205 } 206 if (bc->unrealize) { 207 bc->unrealize(bus); 208 } 209 } 210 211 bus->realized = value; 212} --- 127 unchanged lines hidden --- | 204 } 205 if (bc->unrealize) { 206 bc->unrealize(bus); 207 } 208 } 209 210 bus->realized = value; 211} --- 127 unchanged lines hidden --- |