mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Add -drive parameter, by Laurent Vivier.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3759 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7233b35557
commit
e4bcb14c79
27 changed files with 875 additions and 317 deletions
|
@ -940,9 +940,14 @@ static void spitz_ssp_attach(struct pxa2xx_state_s *cpu)
|
|||
static void spitz_microdrive_attach(struct pxa2xx_state_s *cpu)
|
||||
{
|
||||
struct pcmcia_card_s *md;
|
||||
BlockDriverState *bs = bs_table[0];
|
||||
int index;
|
||||
BlockDriverState *bs;
|
||||
|
||||
if (bs && bdrv_is_inserted(bs) && !bdrv_is_removable(bs)) {
|
||||
index = drive_get_index(IF_IDE, 0, 0);
|
||||
if (index == -1)
|
||||
return;
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue