Deleted Added
sdiff udiff text old ( 3369:1da3e60827b6 ) new ( 3607:7b7dd28784c4 )
full compact
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;

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

339 icmd |= HasData;
340 if (isWrite())
341 icmd &= ~HasData;
342 cmd = (Command)icmd;
343 dest = src;
344 srcValid = false;
345 }
346
347 /**
348 * Take a request packet and modify it in place to be suitable for
349 * returning as a response to that request.
350 */
351 void makeAtomicResponse()
352 {
353 assert(needsResponse());
354 assert(isRequest());

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

443
444 /** If there isn't data in the packet, allocate some. */
445 void allocate();
446
447 /** Do the packet modify the same addresses. */
448 bool intersect(PacketPtr p);
449};
450
451
452/** This function given a functional packet and a timing packet either satisfies
453 * the timing packet, or updates the timing packet to reflect the updated state
454 * in the timing packet. It returns if the functional packet should continue to
455 * traverse the memory hierarchy or not.
456 */
457bool fixPacket(PacketPtr func, PacketPtr timing);
458
459std::ostream & operator<<(std::ostream &o, const Packet &p);
460
461#endif //__MEM_PACKET_HH