]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/xtensa/xtfpga.c
hw: Replace global smp variables with MachineState for all remaining archs
[mirror_qemu.git] / hw / xtensa / xtfpga.c
index e05ef75a75785a64c16889da0813ebda6436698e..f7f3e11e936cd0d875fa769f3b60f367fe93459b 100644 (file)
@@ -238,6 +238,7 @@ static void xtfpga_init(const XtfpgaBoardDesc *board, MachineState *machine)
     const unsigned system_io_size = 224 * MiB;
     uint32_t freq = 10000000;
     int n;
+    unsigned int smp_cpus = machine->smp.cpus;
 
     if (smp_cpus > 1) {
         mx_pic = xtensa_mx_pic_init(31);