Skip to content

Commit 08c4f4d

Browse files
pm215bonzini
authored andcommitted
target/i386: Use device_cold_reset() to reset the APIC
The semantic difference between the deprecated device_legacy_reset() function and the newer device_cold_reset() function is that the new function resets both the device itself and any qbuses it owns, whereas the legacy function resets just the device itself and nothing else. The x86_cpu_after_reset() function uses device_legacy_reset() to reset the APIC; this is an APICCommonState and does not have any qbuses, so for this purpose the two functions behave identically and we can stop using the deprecated one. Signed-off-by: Peter Maydell <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 33ab5f2 commit 08c4f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/i386/cpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6043,7 +6043,7 @@ void x86_cpu_after_reset(X86CPU *cpu)
60436043
}
60446044

60456045
if (cpu->apic_state) {
6046-
device_legacy_reset(cpu->apic_state);
6046+
device_cold_reset(cpu->apic_state);
60476047
}
60486048
#endif
60496049
}

0 commit comments

Comments
 (0)