mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/timer/hpet: Fix comment about capabilities register
HPETState.capability stores the emulated value for "general capabilities and id register" instead of "main counter register". Fix the comment to accurately reflect this. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
6a4fa294eb
commit
f2ccc41493
1 changed files with 1 additions and 1 deletions
|
@ -736,7 +736,7 @@ static void hpet_realize(DeviceState *dev, Error **errp)
|
|||
timer->state = s;
|
||||
}
|
||||
|
||||
/* 64-bit main counter; LegacyReplacementRoute. */
|
||||
/* 64-bit General Capabilities and ID Register; LegacyReplacementRoute. */
|
||||
s->capability = 0x8086a001ULL;
|
||||
s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT;
|
||||
s->capability |= ((uint64_t)(HPET_CLK_PERIOD * FS_PER_NS) << 32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue