timing.cc (2657:b119b774656b) | timing.cc (2662:f24ae2d09e27) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 328 unchanged lines hidden (view full) --- 337 338void 339TimingSimpleCPU::fetch() 340{ 341 checkForInterrupts(); 342 343 Request *ifetch_req = new Request(true); 344 ifetch_req->setSize(sizeof(MachInst)); | 1/* 2 * Copyright (c) 2002-2005 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; --- 328 unchanged lines hidden (view full) --- 337 338void 339TimingSimpleCPU::fetch() 340{ 341 checkForInterrupts(); 342 343 Request *ifetch_req = new Request(true); 344 ifetch_req->setSize(sizeof(MachInst)); |
345 Fault fault = setupFetchRequest(ifetch_req); |
|
345 346 ifetch_pkt = new Packet(ifetch_req, Packet::ReadReq, Packet::Broadcast); 347 ifetch_pkt->dataStatic(&inst); 348 | 346 347 ifetch_pkt = new Packet(ifetch_req, Packet::ReadReq, Packet::Broadcast); 348 ifetch_pkt->dataStatic(&inst); 349 |
349 Fault fault = setupFetchPacket(ifetch_pkt); | |
350 if (fault == NoFault) { 351 if (!icachePort.sendTiming(ifetch_pkt)) { 352 // Need to wait for retry 353 _status = IcacheRetry; 354 } else { 355 // Need to wait for cache to respond 356 _status = IcacheWaitResponse; 357 // ownership of packet transferred to memory system --- 215 unchanged lines hidden --- | 350 if (fault == NoFault) { 351 if (!icachePort.sendTiming(ifetch_pkt)) { 352 // Need to wait for retry 353 _status = IcacheRetry; 354 } else { 355 // Need to wait for cache to respond 356 _status = IcacheWaitResponse; 357 // ownership of packet transferred to memory system --- 215 unchanged lines hidden --- |