packet.hh (3215:cf2f7f09cab2) | packet.hh (3216:24d3fbc238d8) |
---|---|
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; --- 311 unchanged lines hidden (view full) --- 320 * modifying the destination fields, so this function 321 * should not be called. */ 322 void makeTimingResponse() { 323 assert(needsResponse()); 324 assert(isRequest()); 325 int icmd = (int)cmd; 326 icmd &= ~(IsRequest); 327 icmd |= IsResponse; | 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; --- 311 unchanged lines hidden (view full) --- 320 * modifying the destination fields, so this function 321 * should not be called. */ 322 void makeTimingResponse() { 323 assert(needsResponse()); 324 assert(isRequest()); 325 int icmd = (int)cmd; 326 icmd &= ~(IsRequest); 327 icmd |= IsResponse; |
328 if (isRead()) 329 icmd |= HasData; |
|
328 cmd = (Command)icmd; 329 dest = src; 330 srcValid = false; 331 } 332 333 /** Take a request packet and modify it in place to be suitable 334 * for returning as a response to that request. 335 */ --- 57 unchanged lines hidden --- | 330 cmd = (Command)icmd; 331 dest = src; 332 srcValid = false; 333 } 334 335 /** Take a request packet and modify it in place to be suitable 336 * for returning as a response to that request. 337 */ --- 57 unchanged lines hidden --- |