Deleted Added
sdiff udiff text old ( 5314:e902f12a3af1 ) new ( 5315:30997e988446 )
full compact
1/*
2 * Copyright (c) 2001-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;

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

318 memcpy(pkt->getPtr<uint8_t>(), hostAddr, pkt->getSize());
319 TRACE_PACKET("Read");
320 pkt->makeAtomicResponse();
321 } else if (pkt->isWrite()) {
322 memcpy(hostAddr, pkt->getPtr<uint8_t>(), pkt->getSize());
323 TRACE_PACKET("Write");
324 pkt->makeAtomicResponse();
325 } else if (pkt->isPrint()) {
326 Packet::PrintReqState *prs = dynamic_cast<Packet::PrintReqState*>(pkt->senderState);
327 prs->printLabels();
328 ccprintf(prs->os, "%s%#x\n", prs->curPrefix(), *hostAddr);
329 } else {
330 panic("PhysicalMemory: unimplemented functional command %s",
331 pkt->cmdString());
332 }
333}
334
335

--- 217 unchanged lines hidden ---