On Fri, Jun 15, 2012 at 7:09 PM, Andreas Färber<address@hidden> wrote:
You don't seem to be getting what I'm saying: As discussed in great
lengths for how to access a passed-in device tree for ARM, the code
checking this option (i.e., in spapr.c) is expected to call
qemu_opt_get() itself, instead of saving its value globally in vl.c. For
example:
machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0);
usb_opt = qemu_opt_get(machine_opts, "usb");
if (strcmp(usb_opt, "off") != 0) {
// set up OHCI
}
I see.
I just thought if every machine has the same code, it can be done in vl.c.
Isn't the global variable good ?