aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-12-17 01:27:28 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-12-17 01:27:28 +0000
commitd3e9db933f416c9f1c04df4834d36e2315952e42 (patch)
tree0e7ba8465ed6fc1c926378dc845ce022dc5672c6 /vl.c
parent01dbbdf1e505f78d440cf8b386092b3848d0a9fd (diff)
downloadqemu-d3e9db933f416c9f1c04df4834d36e2315952e42.zip
qemu-d3e9db933f416c9f1c04df4834d36e2315952e42.tar.gz
qemu-d3e9db933f416c9f1c04df4834d36e2315952e42.tar.bz2
initial support for up to 255 CPUs
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1707 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 4b1e72e..b68b20a 100644
--- a/vl.c
+++ b/vl.c
@@ -153,10 +153,12 @@ USBPort *vm_usb_ports[MAX_VM_USB_PORTS];
USBDevice *vm_usb_hub;
static VLANState *first_vlan;
int smp_cpus = 1;
-#ifdef TARGET_SPARC
+#if defined(TARGET_SPARC)
#define MAX_CPUS 16
+#elif defined(TARGET_I386)
+#define MAX_CPUS 255
#else
-#define MAX_CPUS 8
+#define MAX_CPUS 1
#endif
/***********************************************************/