aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-07 23:33:34 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-07 23:33:34 +0000
commit15b18ec20a41c69a0524aed50d5bb6bae7e19c5b (patch)
tree1093c5ee74935f2c51d5255bfef2edf8a44a3d05
parent19bf517b7f7f3a24c463bca932fdab4ba2684e55 (diff)
Move spitz microdrive to PCMCIA socket 0.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5946 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/spitz.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/spitz.c b/hw/spitz.c
index e551fa68b0..85b48297f5 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;