]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
hw/i386/pc: factor out pc_cmos_init_floppy()
authorLaszlo Ersek <lersek@redhat.com>
Thu, 25 Jun 2015 13:35:05 +0000 (15:35 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Jul 2015 07:09:55 +0000 (10:09 +0300)
commit7444ca4ee2382170774ae201c473270d65620d75
tree022f7e82d59cb39421733e7a83251d523cdefa4e
parent5add35bec1e249bb5345a47008c8f298d4760be4
hw/i386/pc: factor out pc_cmos_init_floppy()

Extract the pc_cmos_init_floppy() function from pc_cmos_init(). The
function sets two RTC registers: floppy drive types (0x10), overwriting
the earlier value in there), and REG_EQUIPMENT_BYTE (0x14), setting bits
in the prior value.

Cc: Jan Tomko <jtomko@redhat.com>
Cc: John Snow <jsnow@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c