RubyPort.cc (9171:ae88ecf37145) RubyPort.cc (9206:f6483789d23a)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 183 unchanged lines hidden (view full) ---

192 // pio port.
193 if (!isPhysMemAddress(pkt->getAddr())) {
194 assert(ruby_port->pio_port.isConnected());
195 DPRINTF(RubyPort,
196 "Request for address 0x%#x is assumed to be a pio request\n",
197 pkt->getAddr());
198
199 // send next cycle
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 183 unchanged lines hidden (view full) ---

192 // pio port.
193 if (!isPhysMemAddress(pkt->getAddr())) {
194 assert(ruby_port->pio_port.isConnected());
195 DPRINTF(RubyPort,
196 "Request for address 0x%#x is assumed to be a pio request\n",
197 pkt->getAddr());
198
199 // send next cycle
200 ruby_port->pio_port.schedTimingReq(pkt, curTick() +
201 g_system_ptr->getClock());
200 ruby_port->pio_port.schedTimingReq(pkt,
201 curTick() + g_system_ptr->clockPeriod());
202 return true;
203 }
204
205 assert(Address(pkt->getAddr()).getOffset() + pkt->getSize() <=
206 RubySystem::getBlockSizeBytes());
207
208 // Submit the ruby request
209 RequestStatus requestStatus = ruby_port->makeRequest(pkt);

--- 436 unchanged lines hidden (view full) ---

646 } else if (needsResponse) {
647 pkt->makeResponse();
648 }
649
650 // turn packet around to go back to requester if response expected
651 if (needsResponse) {
652 DPRINTF(RubyPort, "Sending packet back over port\n");
653 // send next cycle
202 return true;
203 }
204
205 assert(Address(pkt->getAddr()).getOffset() + pkt->getSize() <=
206 RubySystem::getBlockSizeBytes());
207
208 // Submit the ruby request
209 RequestStatus requestStatus = ruby_port->makeRequest(pkt);

--- 436 unchanged lines hidden (view full) ---

646 } else if (needsResponse) {
647 pkt->makeResponse();
648 }
649
650 // turn packet around to go back to requester if response expected
651 if (needsResponse) {
652 DPRINTF(RubyPort, "Sending packet back over port\n");
653 // send next cycle
654 schedTimingResp(pkt, curTick() + g_system_ptr->getClock());
654 schedTimingResp(pkt, curTick() + g_system_ptr->clockPeriod());
655 } else {
656 delete pkt;
657 }
658 DPRINTF(RubyPort, "Hit callback done!\n");
659}
660
661AddrRangeList
662RubyPort::M5Port::getAddrRanges() const

--- 33 unchanged lines hidden ---
655 } else {
656 delete pkt;
657 }
658 DPRINTF(RubyPort, "Hit callback done!\n");
659}
660
661AddrRangeList
662RubyPort::M5Port::getAddrRanges() const

--- 33 unchanged lines hidden ---