diff mbox

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

Message ID 60bf6912-afa5-40e6-86ce-37decb3885c1@DB3EHSMHS016.ehs.local
State New
Headers show

Commit Message

Peter Crosthwaite Feb. 7, 2013, 6:50 a.m. UTC
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(-)
diff mbox

Patch

diff --git a/vl.c b/vl.c
index a8dc73d..a6cd940 100644
--- a/vl.c
+++ b/vl.c
@@ -2986,7 +2986,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);