Re: [RFC PATCH 02/15] accel/whpx: Simplify #ifdef'ry

2021-05-26 Thread Richard Henderson
On 5/17/21 4:55 AM, Philippe Mathieu-Daudé wrote: whpx_apic_in_platform() is called from: - pic_irq_request() in hw/i386/x86.c - cpu_thread_is_idle() softmmu/cpus.c - apic_get_class() in target/i386/cpu-sysemu.c whpx_enabled() is called from: - cpu_report_tpr_access() in target/i386/helper.c

[RFC PATCH 02/15] accel/whpx: Simplify #ifdef'ry

2021-05-17 Thread Philippe Mathieu-Daudé
whpx_apic_in_platform() is called from: - pic_irq_request() in hw/i386/x86.c - cpu_thread_is_idle() softmmu/cpus.c - apic_get_class() in target/i386/cpu-sysemu.c whpx_enabled() is called from: - cpu_report_tpr_access() in target/i386/helper.c By converting macros to a function, we can remove th