Received: from eggs.gnu.org ([2001:4830:134:3::10]:40328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBkdq-0000P4-Cp for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:48:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBkdm-0005r4-C6 for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:48:22 -0500 Received: from 10.mo1.mail-out.ovh.net ([178.32.96.102]:33414) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBkdm-0005qo-5x for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:48:18 -0500 Received: from player795.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 4D7731F5D3 for ; Tue, 29 Nov 2016 16:48:16 +0100 (CET) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 29 Nov 2016 16:44:04 +0100 Message-Id: <1480434248-27138-27-git-send-email-clg@kaod.org> In-Reply-To: <1480434248-27138-1-git-send-email-clg@kaod.org> References: <1480434248-27138-1-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH for-2.9 26/30] aspeed/smc: use flash model option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, Andrew Jeffery , Marcin Krzeminski , Peter Crosthwaite , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= so that we can change the flash model from the command line. Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: Joel Stanley --- hw/arm/aspeed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index a92c2f1c362b..f4232ce42cd0 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -138,6 +138,8 @@ static void aspeed_board_init_flashes(AspeedSMCState = *s, const char *flashtype, DriveInfo *dinfo =3D drive_get_next(IF_MTD); qemu_irq cs_line; =20 + flashtype =3D dinfo && dinfo->model ? dinfo->model : flashtype; + /* * FIXME: check that we are not using a flash module exceeding * the controller segment size --=20 2.7.4