From 84201641080b93e7b0290568dca1710ee3a74a70 Mon Sep 17 00:00:00 2001 From: balrog Date: Sun, 7 Dec 2008 23:33:34 +0000 Subject: [PATCH] Move spitz microdrive to PCMCIA socket 0. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5946 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/spitz.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index e551fa6..85b4829 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -699,7 +699,7 @@ static void spitz_ssp_attach(struct pxa2xx_state_s *cpu) /* CF Microdrive */ -static void spitz_microdrive_attach(struct pxa2xx_state_s *cpu) +static void spitz_microdrive_attach(struct pxa2xx_state_s *cpu, int slot) { struct pcmcia_card_s *md; int index; @@ -711,7 +711,7 @@ static void spitz_microdrive_attach(struct pxa2xx_state_s *cpu) bs = drives_table[index].bdrv; if (bdrv_is_inserted(bs) && !bdrv_is_removable(bs)) { md = dscm1xxxx_init(bs); - pxa2xx_pcmcia_attach(cpu->pcmcia[1], md); + pxa2xx_pcmcia_attach(cpu->pcmcia[slot], md); } } @@ -952,10 +952,10 @@ static void spitz_common_init(ram_addr_t ram_size, int vga_ram_size, if (model == terrier) /* A 6.0 GB microdrive is permanently sitting in CF slot 1. */ - spitz_microdrive_attach(cpu); + spitz_microdrive_attach(cpu, 1); else if (model != akita) - /* A 4.0 GB microdrive is permanently sitting in CF slot 1. */ - spitz_microdrive_attach(cpu); + /* A 4.0 GB microdrive is permanently sitting in CF slot 0. */ + spitz_microdrive_attach(cpu, 0); /* Setup initial (reset) machine state */ cpu->env->regs[15] = spitz_binfo.loader_start; -- 2.7.4