]> Git Repo - qemu.git/commit
hw/intc/arm_gicv3: fix an extra left-shift when reading IPRIORITYR
authorAmol Surati <[email protected]>
Fri, 22 Jun 2018 12:28:34 +0000 (13:28 +0100)
committerPeter Maydell <[email protected]>
Fri, 22 Jun 2018 12:28:34 +0000 (13:28 +0100)
commitd419890c0448281d0cf11d9384d9a30c8808f648
tree7a97a197adbe61c052f4368369c051f61b22b9c8
parentde44c044420d1139480fa50c2d5be19223391218
hw/intc/arm_gicv3: fix an extra left-shift when reading IPRIORITYR

When either GICD_IPRIORITYR or GICR_IPRIORITYR is read as a 32-bit
register, the post left-shift operator in the for loop causes an
extra shift after the least significant byte has been placed.

The 32-bit value actually returned is therefore the expected value
shifted left by 8 bits.

Signed-off-by: Amol Surati <[email protected]>
Message-id: 20180614054857[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/intc/arm_gicv3_dist.c
hw/intc/arm_gicv3_redist.c
This page took 0.025166 seconds and 4 git commands to generate.