diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-12-05 20:31:52 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-12-05 20:31:52 +0000 |
commit | ba3c64fb476d57c35013970ac444f04f35893ca9 (patch) | |
tree | ef1a50165c32cf861862c94cfd9bcf9ebffcd9f2 /vl.c | |
parent | b9788fc4c4974a4871e0ee46b5c06fee105a6aff (diff) |
Initial SPARC SMP support (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1694 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -153,6 +153,11 @@ USBPort *vm_usb_ports[MAX_VM_USB_PORTS]; USBDevice *vm_usb_hub; static VLANState *first_vlan; int smp_cpus = 1; +#ifdef TARGET_SPARC +#define MAX_CPUS 16 +#else +#define MAX_CPUS 8 +#endif /***********************************************************/ /* x86 ISA bus support */ @@ -4547,7 +4552,7 @@ int main(int argc, char **argv) break; case QEMU_OPTION_smp: smp_cpus = atoi(optarg); - if (smp_cpus < 1 || smp_cpus > 8) { + if (smp_cpus < 1 || smp_cpus > MAX_CPUS) { fprintf(stderr, "Invalid number of CPUs\n"); exit(1); } |