From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8xVn-0000hT-Ge for qemu-devel@nongnu.org; Sat, 17 Mar 2012 13:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8xVg-0008FE-IY for qemu-devel@nongnu.org; Sat, 17 Mar 2012 13:33:51 -0400 Sender: Paolo Bonzini Message-ID: <4F64CAF0.2010905@redhat.com> Date: Sat, 17 Mar 2012 18:33:36 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1331995186-18507-1-git-send-email-hpoussin@reactos.org> <1331995186-18507-7-git-send-email-hpoussin@reactos.org> In-Reply-To: <1331995186-18507-7-git-send-email-hpoussin@reactos.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 6/6] prep: use pc87312 Super I/O chip instead of collection of random ISA devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?SGVydsOpIFBvdXNzaW5lYXU=?= Cc: =?UTF-8?B?QW5kcmVhcyBGw6Ry?= =?UTF-8?B?YmVy?= , qemu-ppc@nongnu.org, qemu-devel@nongnu.org Il 17/03/2012 15:39, Hervé Poussineau ha scritto: > + qdev_prop_set_chr(&isa->qdev, "parallel", parallel_hds[0]); > + qdev_prop_set_chr(&isa->qdev, "uart1", serial_hds[0]); > + qdev_prop_set_chr(&isa->qdev, "uart2", serial_hds[1]); Set these conditionally on *_hds[] being non-NULL, so that you can use -chardev/-global on the command-line as an alternative to -serial/-parallel. Paolo