iob.cc (10905:a6ca6831e775) | iob.cc (11005:e7f403b6b76f) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 104 unchanged lines hidden (view full) --- 113 114 panic("Read to unknown IOB offset 0x%x\n", accessAddr); 115} 116 117void 118Iob::readJBus(PacketPtr pkt) 119{ 120 Addr accessAddr = pkt->getAddr() - iobJBusAddr; | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 104 unchanged lines hidden (view full) --- 113 114 panic("Read to unknown IOB offset 0x%x\n", accessAddr); 115} 116 117void 118Iob::readJBus(PacketPtr pkt) 119{ 120 Addr accessAddr = pkt->getAddr() - iobJBusAddr; |
121 int cpuid = pkt->req->contextId(); | 121 ContextID cpuid = pkt->req->contextId(); |
122 int index; 123 uint64_t data; 124 125 126 127 128 if (accessAddr >= JIntData0Addr && accessAddr < JIntData1Addr) { 129 index = (accessAddr - JIntData0Addr) >> 3; --- 98 unchanged lines hidden (view full) --- 228 229 panic("Write to unknown IOB offset 0x%x\n", accessAddr); 230} 231 232void 233Iob::writeJBus(PacketPtr pkt) 234{ 235 Addr accessAddr = pkt->getAddr() - iobJBusAddr; | 122 int index; 123 uint64_t data; 124 125 126 127 128 if (accessAddr >= JIntData0Addr && accessAddr < JIntData1Addr) { 129 index = (accessAddr - JIntData0Addr) >> 3; --- 98 unchanged lines hidden (view full) --- 228 229 panic("Write to unknown IOB offset 0x%x\n", accessAddr); 230} 231 232void 233Iob::writeJBus(PacketPtr pkt) 234{ 235 Addr accessAddr = pkt->getAddr() - iobJBusAddr; |
236 int cpuid = pkt->req->contextId(); | 236 ContextID cpuid = pkt->req->contextId(); |
237 int index; 238 uint64_t data; 239 240 if (accessAddr >= JIntBusyAddr && accessAddr < JIntBusyAddr + JIntBusySize) { 241 index = (accessAddr - JIntBusyAddr) >> 3; 242 data = pkt->get<uint64_t>(); 243 jIntBusy[index].busy = bits(data,5,5); 244 DPRINTF(Iob, "Wrote jIntBusy index %d busy: %d\n", index, --- 137 unchanged lines hidden --- | 237 int index; 238 uint64_t data; 239 240 if (accessAddr >= JIntBusyAddr && accessAddr < JIntBusyAddr + JIntBusySize) { 241 index = (accessAddr - JIntBusyAddr) >> 3; 242 data = pkt->get<uint64_t>(); 243 jIntBusy[index].busy = bits(data,5,5); 244 DPRINTF(Iob, "Wrote jIntBusy index %d busy: %d\n", index, --- 137 unchanged lines hidden --- |