value = gitsCbaser;
break;
+ case GITS_CBASER + 4:
+ value = gitsCbaser.high;
+ break;
+
case GITS_CWRITER:
value = gitsCwriter;
break;
+ case GITS_CWRITER + 4:
+ value = gitsCwriter.high;
+ break;
+
case GITS_CREADR:
value = gitsCreadr;
break;
+ case GITS_CREADR + 4:
+ value = gitsCreadr.high;
+ break;
+
case GITS_PIDR2:
value = gic->getDistributor()->gicdPidr2;
break;
panic("GITS_TYPER is Read Only\n");
case GITS_CBASER:
- assert(pkt->getSize() == sizeof(uint64_t));
- gitsCbaser = pkt->getLE<uint64_t>();
+ if (pkt->getSize() == sizeof(uint32_t)) {
+ gitsCbaser.low = pkt->getLE<uint32_t>();
+ } else {
+ assert(pkt->getSize() == sizeof(uint64_t));
+ gitsCbaser = pkt->getLE<uint64_t>();
+ }
+
+ gitsCreadr = 0; // Cleared when CBASER gets written
+
+ checkCommandQueue();
+ break;
+
+ case GITS_CBASER + 4:
+ assert(pkt->getSize() == sizeof(uint32_t));
+ gitsCbaser.high = pkt->getLE<uint32_t>();
+
gitsCreadr = 0; // Cleared when CBASER gets written
checkCommandQueue();
break;
case GITS_CWRITER:
- assert(pkt->getSize() == sizeof(uint64_t));
- gitsCwriter = pkt->getLE<uint64_t>();
+ if (pkt->getSize() == sizeof(uint32_t)) {
+ gitsCwriter.low = pkt->getLE<uint32_t>();
+ } else {
+ assert(pkt->getSize() == sizeof(uint64_t));
+ gitsCwriter = pkt->getLE<uint64_t>();
+ }
+
+ checkCommandQueue();
+ break;
+
+ case GITS_CWRITER + 4:
+ assert(pkt->getSize() == sizeof(uint32_t));
+ gitsCwriter.high = pkt->getLE<uint32_t>();
checkCommandQueue();
break;
// Command read/write, (CREADR, CWRITER)
BitUnion64(CRDWR)
+ Bitfield<63, 32> high;
+ Bitfield<31, 0> low;
Bitfield<19, 5> offset;
Bitfield<0> retry;
Bitfield<0> stalled;
EndBitUnion(CRDWR)
BitUnion64(CBASER)
+ Bitfield<63, 32> high;
+ Bitfield<31, 0> low;
Bitfield<63> valid;
Bitfield<61, 59> innerCache;
Bitfield<55, 53> outerCache;