gic-vgic: Drop an excessive clear_lrs
authorAndrii Anisov <andrii_anisov@epam.com>
Wed, 12 Dec 2018 18:20:54 +0000 (20:20 +0200)
committerJulien Grall <julien.grall@arm.com>
Fri, 14 Dec 2018 15:25:21 +0000 (15:25 +0000)
commitcca87128aab1820d269f7ebc6c169f27dafdbadd
tree03feefd23f8e22fb8e2f2d6e75633b9016bf27e7
parent5c08550ff4f3804df471b12c29ae170de981fc13
gic-vgic: Drop an excessive clear_lrs

This action is excessive because for an invalid LR there is no need
to write another invalid value to a register. So we can skip it here,
saving a peripheral register write.
Keep clearing the LR for the DEBUG build. This would make dumped
invalid LRs be zero. That is more obvious than picking state bits
from a non-zero value.

Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/gic-vgic.c