diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-02-10 11:00:42 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:51:32 +0100 |
commit | f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a (patch) | |
tree | 860ae31003b8306f0c3a09c4da20c82085aba9e8 /include/hw/timer/hpet.h | |
parent | 7630ca2a701a0f79728996e660cda06518c97b9b (diff) | |
download | qemu-f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a.zip qemu-f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a.tar.gz qemu-f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a.tar.bz2 |
i386/fw_cfg: move hpet_cfg definition to hpet.c
HPET device needs to access and update hpet_cfg variable, but now it is
defined in hw/i386/fw_cfg.c and Rust code can't access it.
Move hpet_cfg definition to hpet.c (and rename it to hpet_fw_cfg). This
allows Rust HPET device implements its own global hpet_fw_cfg variable,
and will further reduce the use of unsafe C code access and calls in the
Rust HPET implementation.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250210030051.2562726-2-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/timer/hpet.h')
-rw-r--r-- | include/hw/timer/hpet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/timer/hpet.h b/include/hw/timer/hpet.h index 71e8c62..c2656f7 100644 --- a/include/hw/timer/hpet.h +++ b/include/hw/timer/hpet.h @@ -73,7 +73,7 @@ struct hpet_fw_config struct hpet_fw_entry hpet[8]; } QEMU_PACKED; -extern struct hpet_fw_config hpet_cfg; +extern struct hpet_fw_config hpet_fw_cfg; #define TYPE_HPET "hpet" |