Patchwork [v7,2/3] vl.c: allow for repeated -sd arguments

login
register
mail settings
Submitter Peter Crosthwaite
Date Oct. 30, 2012, 5:03 a.m.
Message ID <24f45d39a36337fa2f7fbbfa612b9a8723c3f94e.1351572887.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/195285/
State New
Headers show

Comments

Peter Crosthwaite - Oct. 30, 2012, 5:03 a.m.
Allows for repeating of -sd arguments in the same way as -pflash and -mtdblock.

Acked-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---

 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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);