mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hpet: ignore high bits of comparator in 32-bit mode
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f0ccf77078
commit
9eb7fad354
2 changed files with 5 additions and 0 deletions
|
@ -585,6 +585,10 @@ static void hpet_ram_write(void *opaque, hwaddr addr,
|
|||
}
|
||||
break;
|
||||
case HPET_TN_CMP + 4: // comparator register high order
|
||||
if (timer->config & HPET_TN_32BIT) {
|
||||
trace_hpet_ram_write_invalid_tn_cmp();
|
||||
break;
|
||||
}
|
||||
trace_hpet_ram_write_tn_cmp(4);
|
||||
if (!timer_is_periodic(timer)
|
||||
|| (timer->config & HPET_TN_SETVAL)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue