physical.cc (5314:e902f12a3af1) | physical.cc (5315:30997e988446) |
---|---|
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()) { | 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); | 326 Packet::PrintReqState *prs = 327 dynamic_cast<Packet::PrintReqState*>(pkt->senderState); 328 // Need to call printLabels() explicitly since we're not going 329 // through printObj(). |
327 prs->printLabels(); | 330 prs->printLabels(); |
331 // Right now we just print the single byte at the specified address. |
|
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 --- | 332 ccprintf(prs->os, "%s%#x\n", prs->curPrefix(), *hostAddr); 333 } else { 334 panic("PhysicalMemory: unimplemented functional command %s", 335 pkt->cmdString()); 336 } 337} 338 339 --- 217 unchanged lines hidden --- |