Only 15 CPUs maximum without XAPIC

This commit is contained in:
Stanislav Shwartsman 2009-02-20 15:47:04 +00:00
parent 5cbe27b04e
commit 876a410230

View File

@ -48,21 +48,6 @@
#define BX_EXIT(x) ::exit(x)
#endif
// We have tested the following combinations:
// * processors=1, bootstrap=0, ioapic_id=1 (uniprocessor system)
// * processors=2, bootstrap=0, ioapic_id=2
// * processors=4, bootstrap=0, ioapic_id=4
#define BX_SUPPORT_SMP 0
#define BX_BOOTSTRAP_PROCESSOR 0
#define BX_MAX_SMP_THREADS_SUPPORTED 255
// include in APIC models, required for a multiprocessor system.
#define BX_SUPPORT_APIC 0
#if (BX_SUPPORT_SMP && !BX_SUPPORT_APIC)
#error For multiprocessor simulation, BX_SUPPORT_APIC is required.
#endif
// if simulating Linux, this provides a few more debugging options
// such as tracing all system calls.
#define BX_DEBUG_LINUX 0
@ -882,6 +867,35 @@ typedef
#endif
#endif
// include in APIC models, required for a multiprocessor system.
#define BX_SUPPORT_APIC 0
#if BX_CPU_LEVEL == 6 && BX_SUPPORT_SSE >= 2
#define BX_IMPLEMENT_XAPIC 1
#endif
// We have tested the following combinations:
// * processors=1, bootstrap=0, ioapic_id=1 (uniprocessor system)
// * processors=2, bootstrap=0, ioapic_id=2
// * processors=4, bootstrap=0, ioapic_id=4
// * processors=8, bootstrap=0, ioapic_id=8
#define BX_SUPPORT_SMP 0
#define BX_BOOTSTRAP_PROCESSOR 0
#ifndef BX_IMPLEMENT_XAPIC
#define BX_MAX_SMP_THREADS_SUPPORTED 15 /* without XAPIC only 15 CPUs */
#else
#define BX_MAX_SMP_THREADS_SUPPORTED 255
#endif
#if (BX_SUPPORT_SMP && !BX_SUPPORT_APIC)
#error For multiprocessor simulation, BX_SUPPORT_APIC is required !
#endif
#if (BX_SUPPORT_APIC && BX_CPU_LEVEL < 5)
#error APIC cannot be supported on less than 586 cpu !
#endif
#define BX_HAVE_GETENV 0
#define BX_HAVE_SETENV 0
#define BX_HAVE_SELECT 0