diff options
Diffstat (limited to 'src/dev/sparc/iob.cc')
-rw-r--r-- | src/dev/sparc/iob.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/dev/sparc/iob.cc b/src/dev/sparc/iob.cc index 28d384212..f14653615 100644 --- a/src/dev/sparc/iob.cc +++ b/src/dev/sparc/iob.cc @@ -96,7 +96,7 @@ Iob::readIob(PacketPtr pkt) if (accessAddr < IntManAddr + IntManSize) { int index = (accessAddr - IntManAddr) >> 3; uint64_t data = intMan[index].cpu << 8 | intMan[index].vector << 0; - pkt->set(data); + pkt->setBE(data); return; } @@ -104,12 +104,12 @@ Iob::readIob(PacketPtr pkt) int index = (accessAddr - IntCtlAddr) >> 3; uint64_t data = intCtl[index].mask ? 1 << 2 : 0 | intCtl[index].pend ? 1 << 0 : 0; - pkt->set(data); + pkt->setBE(data); return; } if (accessAddr == JIntVecAddr) { - pkt->set(jIntVec); + pkt->setBE(jIntVec); return; } @@ -129,23 +129,23 @@ Iob::readJBus(PacketPtr pkt) if (accessAddr >= JIntData0Addr && accessAddr < JIntData1Addr) { index = (accessAddr - JIntData0Addr) >> 3; - pkt->set(jBusData0[index]); + pkt->setBE(jBusData0[index]); return; } if (accessAddr >= JIntData1Addr && accessAddr < JIntDataA0Addr) { index = (accessAddr - JIntData1Addr) >> 3; - pkt->set(jBusData1[index]); + pkt->setBE(jBusData1[index]); return; } if (accessAddr == JIntDataA0Addr) { - pkt->set(jBusData0[cpuid]); + pkt->setBE(jBusData0[cpuid]); return; } if (accessAddr == JIntDataA1Addr) { - pkt->set(jBusData1[cpuid]); + pkt->setBE(jBusData1[cpuid]); return; } @@ -153,13 +153,13 @@ Iob::readJBus(PacketPtr pkt) index = (accessAddr - JIntBusyAddr) >> 3; data = jIntBusy[index].busy ? 1 << 5 : 0 | jIntBusy[index].source; - pkt->set(data); + pkt->setBE(data); return; } if (accessAddr == JIntABusyAddr) { data = jIntBusy[cpuid].busy ? 1 << 5 : 0 | jIntBusy[cpuid].source; - pkt->set(data); + pkt->setBE(data); return; }; @@ -191,7 +191,7 @@ Iob::writeIob(PacketPtr pkt) assert(IntManAddr == 0); if (accessAddr < IntManAddr + IntManSize) { index = (accessAddr - IntManAddr) >> 3; - data = pkt->get<uint64_t>(); + data = pkt->getBE<uint64_t>(); intMan[index].cpu = bits(data,12,8); intMan[index].vector = bits(data,5,0); DPRINTF(Iob, "Wrote IntMan %d cpu %d, vec %d\n", index, @@ -201,7 +201,7 @@ Iob::writeIob(PacketPtr pkt) if (accessAddr >= IntCtlAddr && accessAddr < IntCtlAddr + IntCtlSize) { index = (accessAddr - IntCtlAddr) >> 3; - data = pkt->get<uint64_t>(); + data = pkt->getBE<uint64_t>(); intCtl[index].mask = bits(data,2,2); if (bits(data,1,1)) intCtl[index].pend = false; @@ -211,7 +211,7 @@ Iob::writeIob(PacketPtr pkt) } if (accessAddr == JIntVecAddr) { - jIntVec = bits(pkt->get<uint64_t>(), 5,0); + jIntVec = bits(pkt->getBE<uint64_t>(), 5,0); DPRINTF(Iob, "Wrote jIntVec %d\n", jIntVec); return; } @@ -221,7 +221,7 @@ Iob::writeIob(PacketPtr pkt) int cpu_id; int vector; index = (accessAddr - IntManAddr) >> 3; - data = pkt->get<uint64_t>(); + data = pkt->getBE<uint64_t>(); type = (Type)bits(data,17,16); cpu_id = bits(data, 12,8); vector = bits(data,5,0); @@ -242,14 +242,14 @@ Iob::writeJBus(PacketPtr pkt) if (accessAddr >= JIntBusyAddr && accessAddr < JIntBusyAddr + JIntBusySize) { index = (accessAddr - JIntBusyAddr) >> 3; - data = pkt->get<uint64_t>(); + data = pkt->getBE<uint64_t>(); jIntBusy[index].busy = bits(data,5,5); DPRINTF(Iob, "Wrote jIntBusy index %d busy: %d\n", index, jIntBusy[index].busy); return; } if (accessAddr == JIntABusyAddr) { - data = pkt->get<uint64_t>(); + data = pkt->getBE<uint64_t>(); jIntBusy[cpuid].busy = bits(data,5,5); DPRINTF(Iob, "Wrote jIntBusy index %d busy: %d\n", cpuid, jIntBusy[cpuid].busy); |