qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH v3 25/33] hw/i386/pc.c: remove device_legacy_reset cal


From: Damien Hedde
Subject: [Qemu-ppc] [PATCH v3 25/33] hw/i386/pc.c: remove device_legacy_reset call
Date: Mon, 29 Jul 2019 16:56:46 +0200

Replace additional APIC legacy reset by device_reset_cold.

The new function propagates also the reset to the sub-buses tree.
APIC does not have any so it should have no impact on behavior.

Signed-off-by: Damien Hedde <address@hidden>
---
 hw/i386/pc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index c0f20fe8aa..a175d76819 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -2823,7 +2823,7 @@ static void pc_machine_reset(MachineState *machine)
         cpu = X86_CPU(cs);
 
         if (cpu->apic_state) {
-            device_legacy_reset(cpu->apic_state);
+            device_reset_cold(cpu->apic_state);
         }
     }
 }
-- 
2.22.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]