From patchwork Tue Oct 30 05:03:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 195285 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3A7282C00A4 for ; Tue, 30 Oct 2012 16:04:40 +1100 (EST) Received: from localhost ([::1]:33913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT40E-0005Tm-9f for incoming@patchwork.ozlabs.org; Tue, 30 Oct 2012 01:04:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT401-0005KM-TG for qemu-devel@nongnu.org; Tue, 30 Oct 2012 01:04:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT400-00082O-Qw for qemu-devel@nongnu.org; Tue, 30 Oct 2012 01:04:25 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:52177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT400-00082E-Ka for qemu-devel@nongnu.org; Tue, 30 Oct 2012 01:04:24 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so2607553dad.4 for ; Mon, 29 Oct 2012 22:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=BsPQawsX+7Ru5siK1NC9TAQ1/HY0Btg4kzP3FApuqaE=; b=gpVOg2jwOVcfPadRd5fotLQCqDwjdj3MGTX7Wm9RBJ2ARPDRikhxyDkGduM9UmeEYQ dd7AKvZwU6yS0TySfBrSFSNz6N7so7v6UCI6MmMMSZyZbNwDZDOFT91AQmz+TianvY1f gpodDjk7YiNXw8cNS0CDVTJtS1pHMaMNtIt2Vjm8rWZtMEszFBxd37WKUdbafN1eMZAu OPeHoSaHbgDErKEceNuqVaRJR+AAyOsi2dmkJgcYm3bzq5jK5UKPiKUjR1Tp+BA2plaO 7rB1fMFt7hFEQ29HXgUMcoWLFbh2CBbowWbcjtmgLP3NGKkzz2pmIezxQVkIelKjYYQ8 b+aw== Received: by 10.68.204.2 with SMTP id ku2mr99661942pbc.59.1351573463845; Mon, 29 Oct 2012 22:04:23 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id ox7sm7142370pbb.14.2012.10.29.22.04.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 22:04:23 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org, peter.maydell@linaro.org, i.mitsyanko@samsung.com Date: Tue, 30 Oct 2012 15:03:39 +1000 Message-Id: <24f45d39a36337fa2f7fbbfa612b9a8723c3f94e.1351572887.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQne0xhEzQyrzLzGZsfEeIAX1BF2wwcg8GYSABQIr80xPft2U/sqHvhJhczcXdUZTMgEzkW/ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.45 Cc: vineshp@xilinx.com, edgar.iglesias@gmail.com, Peter Crosthwaite , john.williams@xilinx.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH v7 2/3] vl.c: allow for repeated -sd arguments X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Allows for repeating of -sd arguments in the same way as -pflash and -mtdblock. Acked-by: Igor Mitsyanko Reviewed-by: Peter Maydell Signed-off-by: Peter Crosthwaite --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 5a3d316..978bd68 100644 --- a/vl.c +++ b/vl.c @@ -2617,7 +2617,7 @@ int main(int argc, char **argv, char **envp) drive_add(IF_MTD, -1, optarg, MTD_OPTS); break; case QEMU_OPTION_sd: - drive_add(IF_SD, 0, optarg, SD_OPTS); + drive_add(IF_SD, -1, optarg, SD_OPTS); break; case QEMU_OPTION_pflash: drive_add(IF_PFLASH, -1, optarg, PFLASH_OPTS);