diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-02-10 11:00:51 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:51:34 +0100 |
commit | d128c341a744ba3e92fa67d9f1b02dd9a7bd68b9 (patch) | |
tree | 55500cc9fcaa50be368f919d5ce2d4a96b308fb3 /hw | |
parent | 6e90a8f8136f65273fe7320904e06b27a8a40eda (diff) | |
download | qemu-d128c341a744ba3e92fa67d9f1b02dd9a7bd68b9.zip qemu-d128c341a744ba3e92fa67d9f1b02dd9a7bd68b9.tar.gz qemu-d128c341a744ba3e92fa67d9f1b02dd9a7bd68b9.tar.bz2 |
i386: enable rust hpet for pc when rust is enabled
Add HPET configuration in PC's Kconfig options, and select HPET device
(Rust version) if Rust is supported.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250210030051.2562726-11-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/i386/pc.c | 2 | ||||
-rw-r--r-- | hw/timer/Kconfig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 0eb52d3..22641e6 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1701,7 +1701,7 @@ static void pc_machine_initfn(Object *obj) pcms->sata_enabled = true; pcms->i8042_enabled = true; pcms->max_fw_size = 8 * MiB; -#ifdef CONFIG_HPET +#if defined(CONFIG_HPET) || defined(CONFIG_X_HPET_RUST) pcms->hpet_enabled = true; #endif pcms->fd_bootchk = true; diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig index c96fd5d..9ac0084 100644 --- a/hw/timer/Kconfig +++ b/hw/timer/Kconfig @@ -11,7 +11,7 @@ config A9_GTIMER config HPET bool - default y if PC + default y if PC && !HAVE_RUST config I8254 bool |