I apparently failed to do this properly on the first attempt.
Signed-off-by: Paul Brook <paul@codesourcery.com>
struct DeviceProperty {
const char *name;
union {
- int i;
+ uint64_t i;
void *ptr;
} value;
DeviceProperty *next;
return prop;
}
-void qdev_set_prop_int(DeviceState *dev, const char *name, int value)
+void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value)
{
DeviceProperty *prop;
void qdev_init(DeviceState *dev);
/* Set properties between creation and init. */
-void qdev_set_prop_int(DeviceState *dev, const char *name, int value);
+void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value);
void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value);
void qdev_set_netdev(DeviceState *dev, NICInfo *nd);