audio: create pcspk device early

Create the pcspk device early, so it exists at
machine type initialization time.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200702132525.6849-17-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2020-07-02 15:25:21 +02:00
parent 525d654d7a
commit 6b8d141648
2 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@ struct PCMachineState {
PCIBus *bus;
I2CBus *smbus;
PFlashCFI01 *flash[2];
ISADevice *pcspk;
/* Configuration options: */
uint64_t max_ram_below_4g;