diff options
| author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-28 18:27:10 +0000 |
|---|---|---|
| committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-28 18:27:10 +0000 |
| commit | 6e6b73631301d41e8b18de4d35937bc78b0117f3 (patch) | |
| tree | 486b45bbe8c6cceb18161b7bbec986324fc33492 /hw/grackle_pci.c | |
| parent | b4e237aae774a6dd3de2c3db9f87012d48ab6716 (diff) | |
| download | focaccia-qemu-6e6b73631301d41e8b18de4d35937bc78b0117f3.tar.gz focaccia-qemu-6e6b73631301d41e8b18de4d35937bc78b0117f3.zip | |
Register reset handlers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6136 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/grackle_pci.c')
| -rw-r--r-- | hw/grackle_pci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index c11b9ef733..9cedb0ed7a 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -105,6 +105,10 @@ static void pci_grackle_set_irq(qemu_irq *pic, int irq_num, int level) qemu_set_irq(pic[irq_num + 0x15], level); } +static void pci_grackle_reset(void *opaque) +{ +} + PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic) { GrackleState *s; @@ -160,5 +164,8 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic) d->config[0x26] = 0x00; // prefetchable_memory_limit d->config[0x27] = 0x85; #endif + qemu_register_reset(pci_grackle_reset, d); + pci_grackle_reset(d); + return s->bus; } |