tsunami_pchip.cc (9808:13ffc0066b76) | tsunami_pchip.cc (10565:23593fdaadcd) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 58 unchanged lines hidden (view full) --- 67 p->tsunami->pchip = this; 68} 69 70Tick 71TsunamiPChip::read(PacketPtr pkt) 72{ 73 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 74 | 1/* 2 * Copyright (c) 2004-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; --- 58 unchanged lines hidden (view full) --- 67 p->tsunami->pchip = this; 68} 69 70Tick 71TsunamiPChip::read(PacketPtr pkt) 72{ 73 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 74 |
75 pkt->allocate(); | |
76 Addr daddr = (pkt->getAddr() - pioAddr) >> 6;; 77 assert(pkt->getSize() == sizeof(uint64_t)); 78 79 80 DPRINTF(Tsunami, "read va=%#x size=%d\n", pkt->getAddr(), pkt->getSize()); 81 82 switch(daddr) { 83 case TSDEV_PC_WSBA0: --- 267 unchanged lines hidden --- | 75 Addr daddr = (pkt->getAddr() - pioAddr) >> 6;; 76 assert(pkt->getSize() == sizeof(uint64_t)); 77 78 79 DPRINTF(Tsunami, "read va=%#x size=%d\n", pkt->getAddr(), pkt->getSize()); 80 81 switch(daddr) { 82 case TSDEV_PC_WSBA0: --- 267 unchanged lines hidden --- |