mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/i386/apic: Ensure own APIC use in apic_msr_{read,write}
Avoids the `current_cpu` global and seems more robust by not "forgetting" the own APIC and then re-determining it by cpu_get_current_apic() which uses the global. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20251019210303.104718-9-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
2fd15a24ca
commit
337eece9c0
@@ -19,8 +19,8 @@ void apic_sipi(APICCommonState *s);
|
||||
void apic_poll_irq(APICCommonState *s);
|
||||
void apic_designate_bsp(APICCommonState *s, bool bsp);
|
||||
int apic_get_highest_priority_irr(APICCommonState *s);
|
||||
int apic_msr_read(int index, uint64_t *val);
|
||||
int apic_msr_write(int index, uint64_t val);
|
||||
int apic_msr_read(APICCommonState *s, int index, uint64_t *val);
|
||||
int apic_msr_write(APICCommonState *s, int index, uint64_t val);
|
||||
bool is_x2apic_mode(APICCommonState *s);
|
||||
|
||||
/* pc.c */
|
||||
|
||||
Reference in New Issue
Block a user