From b2097003ecad43a34851e57969eadf74181d0080 Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 7 Oct 2008 20:39:39 +0000 Subject: machine struct - specify max_cpus at the per machine level (Jes Sorensen) Introduce a max_cpus per-machine variable, allowing individual boards to limit it's number of CPUs. Check requested number of CPUs in setup code and exit if it exceeds the supported number for the machine. This also renders the static MAX_CPUS check obsolete, so remove this from vl.c. Signed-off-by: Jes Sorensen Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5443 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ppc405_boards.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/ppc405_boards.c') diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index c7a69596c7..a83f28e9b9 100644 --- a/hw/ppc405_boards.c +++ b/hw/ppc405_boards.c @@ -359,6 +359,7 @@ QEMUMachine ref405ep_machine = { .desc = "ref405ep", .init = ref405ep_init, .ram_require = (128 * 1024 * 1024 + 4096 + 512 * 1024 + BIOS_SIZE) | RAMSIZE_FIXED, + .max_cpus = 1, }; /*****************************************************************************/ -- cgit v1.2.3