]> Git Repo - qemu.git/blobdiff - device-hotplug.c
tcg: Push tcg-runtime routines into exec/helper-*
[qemu.git] / device-hotplug.c
index 103d34ac45ea49039be2d562b23f9995a3b4c905..eecb08e2b1449f3856b03b7960e686f88d3cca8b 100644 (file)
@@ -33,12 +33,14 @@ DriveInfo *add_init_drive(const char *optstr)
 {
     DriveInfo *dinfo;
     QemuOpts *opts;
+    MachineClass *mc;
 
     opts = drive_def(optstr);
     if (!opts)
         return NULL;
 
-    dinfo = drive_init(opts, current_machine->block_default_type);
+    mc = MACHINE_GET_CLASS(current_machine);
+    dinfo = drive_init(opts, mc->block_default_type);
     if (!dinfo) {
         qemu_opts_del(opts);
         return NULL;
This page took 0.019963 seconds and 4 git commands to generate.