Sequencer.cc (10954:255ebb0b32b4) | Sequencer.cc (11005:e7f403b6b76f) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 653 unchanged lines hidden (view full) --- 662 // TODO: issue hardware prefetches here 663 return RequestStatus_Issued; 664} 665 666void 667Sequencer::issueRequest(PacketPtr pkt, RubyRequestType secondary_type) 668{ 669 assert(pkt != NULL); | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 653 unchanged lines hidden (view full) --- 662 // TODO: issue hardware prefetches here 663 return RequestStatus_Issued; 664} 665 666void 667Sequencer::issueRequest(PacketPtr pkt, RubyRequestType secondary_type) 668{ 669 assert(pkt != NULL); |
670 int proc_id = -1; 671 if (pkt->req->hasContextId()) { 672 proc_id = pkt->req->contextId(); 673 } | 670 ContextID proc_id = pkt->req->hasContextId() ? 671 pkt->req->contextId() : InvalidContextID; |
674 675 // If valid, copy the pc to the ruby request 676 Addr pc = 0; 677 if (pkt->req->hasPC()) { 678 pc = pkt->req->getPC(); 679 } 680 681 // check if the packet has data as for example prefetch and flush --- 149 unchanged lines hidden --- | 672 673 // If valid, copy the pc to the ruby request 674 Addr pc = 0; 675 if (pkt->req->hasPC()) { 676 pc = pkt->req->getPC(); 677 } 678 679 // check if the packet has data as for example prefetch and flush --- 149 unchanged lines hidden --- |