mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
hw: edu: drop DO_UPCAST
Signed-off-by: Li Qiang <liq3ea@163.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8b5e6caf01
commit
a519e38944
1 changed files with 2 additions and 2 deletions
|
@ -342,7 +342,7 @@ static void *edu_fact_thread(void *opaque)
|
|||
|
||||
static void pci_edu_realize(PCIDevice *pdev, Error **errp)
|
||||
{
|
||||
EduState *edu = DO_UPCAST(EduState, pdev, pdev);
|
||||
EduState *edu = EDU(pdev);
|
||||
uint8_t *pci_conf = pdev->config;
|
||||
|
||||
pci_config_set_interrupt_pin(pci_conf, 1);
|
||||
|
@ -365,7 +365,7 @@ static void pci_edu_realize(PCIDevice *pdev, Error **errp)
|
|||
|
||||
static void pci_edu_uninit(PCIDevice *pdev)
|
||||
{
|
||||
EduState *edu = DO_UPCAST(EduState, pdev, pdev);
|
||||
EduState *edu = EDU(pdev);
|
||||
|
||||
qemu_mutex_lock(&edu->thr_mutex);
|
||||
edu->stopping = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue