hpet: place read-only bits directly in "new_val"
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jul 2024 08:55:13 +0000 (10:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Jul 2024 17:19:44 +0000 (19:19 +0200)
commitba88935b0fac2588b0a739f810b58dfabf7f92c8
treeeb220b7fd5ec5cee655dfcdc379a74c61a0c4cc4
parent5895879aca252f4ebb2d1078eaf836c61ec54e9b
hpet: place read-only bits directly in "new_val"

The variable "val" is used for two different purposes.  As an intermediate
value when writing configuration registers, and to store the cleared bits
when writing ISR.

Use "new_val" for the former, and rename the variable so that it is clearer
for the latter case.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/hpet.c