diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-03-19 19:31:10 +0000 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-20 09:23:24 +0100 |
| commit | d1368344bc9bb251080507940f2bad16048d2687 (patch) | |
| tree | 9d1a109a3604984e4a668dc921f897e295bb9b3d /hw/i386/fw_cfg.c | |
| parent | f88c9cd804804360fa4b3586d7d2f84505ab8c26 (diff) | |
| download | focaccia-qemu-d1368344bc9bb251080507940f2bad16048d2687.tar.gz focaccia-qemu-d1368344bc9bb251080507940f2bad16048d2687.zip | |
rust: Kconfig: Factor out whether HPET is Rust or C
Currently we require everywhere that wants to know if there is an HPET device to check for "CONFIG_HPET || CONFIG_X_HPET_RUST". Factor out whether the HPET device is Rust or C into a separate Kconfig stanza, so that CONFIG_HPET means "there is an HPET", and whether this has pulled in CONFIG_X_HPET_RUST or CONFIG_HPET_C is something the rest of QEMU can ignore. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Link: https://lore.kernel.org/r/20250319193110.1565578-3-peter.maydell@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/fw_cfg.c')
| -rw-r--r-- | hw/i386/fw_cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/fw_cfg.c b/hw/i386/fw_cfg.c index a7f1b60b98..5c0bcd5f8a 100644 --- a/hw/i386/fw_cfg.c +++ b/hw/i386/fw_cfg.c @@ -26,7 +26,7 @@ #include CONFIG_DEVICES #include "target/i386/cpu.h" -#if !defined(CONFIG_HPET) && !defined(CONFIG_X_HPET_RUST) +#if !defined(CONFIG_HPET) struct hpet_fw_config hpet_fw_cfg = {.count = UINT8_MAX}; #endif |