提交 309e60bd 编写于 作者: B blueswir1

Fix sun4m machine if MAX_FD != 2 (Herv�oussineau)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4001 c046a42c-6fe2-441c-8c8c-71466251a162
上级 9fea808a
......@@ -492,7 +492,7 @@ static void sun4m_hw_init(const struct hwdef *hwdef, int RAM_size,
if (hwdef->fd_base != (target_phys_addr_t)-1) {
/* there is zero or one floppy drive */
fd[1] = fd[0] = NULL;
memset(fd, 0, sizeof(fd));
index = drive_get_index(IF_FLOPPY, 0, 0);
if (index != -1)
fd[0] = drives_table[index].bdrv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册