Lines Matching defs:pkt
71 VGic::read(PacketPtr pkt)
73 Addr addr = pkt->getAddr();
76 return readVCpu(pkt);
78 return readCtrl(pkt);
80 panic("Read to unknown address %#x\n", pkt->getAddr());
84 VGic::write(PacketPtr pkt)
86 Addr addr = pkt->getAddr();
89 return writeVCpu(pkt);
91 return writeCtrl(pkt);
93 panic("Write to unknown address %#x\n", pkt->getAddr());
97 VGic::readVCpu(PacketPtr pkt)
99 Addr daddr = pkt->getAddr() - vcpuAddr;
101 ContextID ctx_id = pkt->req->contextId();
109 pkt->setLE<uint32_t>(vid->vctrl);
114 pkt->setLE<uint32_t>(1023); // "No int" marker
118 pkt->setLE<uint32_t>(lr->VirtualID |
131 pkt->setLE<uint32_t>(gicvIIDR);
139 pkt->makeAtomicResponse();
144 VGic::readCtrl(PacketPtr pkt)
146 Addr daddr = pkt->getAddr() - hvAddr;
148 ContextID ctx_id = pkt->req->contextId();
166 pkt->setLE<uint32_t>(vid->hcr);
170 pkt->setLE<uint32_t>(0x44000000 | (NUM_LR - 1));
174 pkt->setLE<uint32_t>(
188 pkt->setLE<uint32_t>(getMISR(vid));
192 pkt->setLE<uint32_t>(vid->eisr & 0xffffffff);
196 pkt->setLE<uint32_t>(vid->eisr >> 32);
205 pkt->setLE<uint32_t>(bm);
214 pkt->setLE<uint32_t>(bm);
219 pkt->setLE<uint32_t>(0);
226 pkt->setLE<uint32_t>(vid->LR[(daddr - GICH_LR0) >> 2]);
233 pkt->makeAtomicResponse();
238 VGic::writeVCpu(PacketPtr pkt)
240 Addr daddr = pkt->getAddr() - vcpuAddr;
242 ContextID ctx_id = pkt->req->contextId();
247 daddr, pkt->getLE<uint32_t>());
251 vid->vctrl = pkt->getLE<uint32_t>();
254 vid->VMPriMask = pkt->getLE<uint32_t>();
260 uint32_t w = pkt->getLE<uint32_t>();
276 pkt->getLE<uint32_t>(), daddr);
282 pkt->makeAtomicResponse();
287 VGic::writeCtrl(PacketPtr pkt)
289 Addr daddr = pkt->getAddr() - hvAddr;
291 ContextID ctx_id = pkt->req->contextId();
294 daddr, pkt->getLE<uint32_t>());
310 vid->hcr = pkt->getLE<uint32_t>();
315 uint32_t d = pkt->getLE<uint32_t>();
335 vid->LR[(daddr - GICH_LR0) >> 2] = pkt->getLE<uint32_t>();
345 pkt->makeAtomicResponse();