Patchwork [21/23] sh4: Suppress unused default drives

login
register
mail settings
Submitter Markus Armbruster
Date Aug. 9, 2012, 1:31 p.m.
Message ID <1344519084-21847-22-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/176082/
State New
Headers show

Comments

Markus Armbruster - Aug. 9, 2012, 1:31 p.m.
Cc: Magnus Damm <magnus.damm@gmail.com>

Suppress default floppy, CD-ROM and SD card drives for machines r2d,
shix.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/r2d.c  | 3 +++
 hw/shix.c | 3 +++
 2 files changed, 6 insertions(+)

Patch

diff --git a/hw/r2d.c b/hw/r2d.c
index 0f16e81..fc7f681 100644
--- a/hw/r2d.c
+++ b/hw/r2d.c
@@ -344,6 +344,9 @@  static QEMUMachine r2d_machine = {
     .name = "r2d",
     .desc = "r2d-plus board",
     .init = r2d_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
+    .no_sdcard = 1,
 };
 
 static void r2d_machine_init(void)
diff --git a/hw/shix.c b/hw/shix.c
index dd9ce17..550e5df 100644
--- a/hw/shix.c
+++ b/hw/shix.c
@@ -93,6 +93,9 @@  static QEMUMachine shix_machine = {
     .name = "shix",
     .desc = "shix card",
     .init = shix_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
+    .no_sdcard = 1,
     .is_default = 1,
 };