]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/translate_init.c
target-ppc: Give a meaningful error if too many threads are specified
authorMike Qiu <qiudayu@linux.vnet.ibm.com>
Wed, 23 Jan 2013 17:20:38 +0000 (17:20 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 25 Jan 2013 21:02:55 +0000 (22:02 +0100)
commitfe828a4d4b7a5617cda7b24e95e327bfb71d790e
tree5f54c29483f27766219e3bc1112654214b955b1c
parent293c867d8c7399d17e6b593053411a6515171f38
target-ppc: Give a meaningful error if too many threads are specified

Currently the target-ppc tcg code only supports a single thread.  You can
specify more, but they're treated identically to multiple cores.  On KVM
we obviously can't support more threads than the hardware; if more are
specified it will cause strange and cryptic errors.

This patch clarifies the situation by giving a simple meaningful error if
more threads are specified than we can support.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c