arm: correct register read bug in Pl390 GIC
Change-Id: I4c0de7c2a5b40c1a9f009ca12062cb108b450b04 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
parent
7110d2313e
commit
7d6f2c5050
1 changed files with 2 additions and 2 deletions
|
@ -160,14 +160,14 @@ Pl390::readDistributor(PacketPtr pkt)
|
|||
if (GICD_ISACTIVER.contains(daddr)) {
|
||||
uint32_t ix = (daddr - GICD_ISACTIVER.start()) >> 2;
|
||||
assert(ix < 32);
|
||||
pkt->set<uint32_t>(getPendingInt(ctx, ix));
|
||||
pkt->set<uint32_t>(getActiveInt(ctx, ix));
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (GICD_ICACTIVER.contains(daddr)) {
|
||||
uint32_t ix = (daddr - GICD_ICACTIVER.start()) >> 2;
|
||||
assert(ix < 32);
|
||||
pkt->set<uint32_t>(getPendingInt(ctx, ix));
|
||||
pkt->set<uint32_t>(getActiveInt(ctx, ix));
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue