isa_fake.cc (2641:6d9d837e2032) | isa_fake.cc (2662:f24ae2d09e27) |
---|---|
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; --- 40 unchanged lines hidden (view full) --- 49} 50 51Tick 52IsaFake::read(Packet *pkt) 53{ 54 assert(pkt->result == Packet::Unknown); 55 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 56 | 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; --- 40 unchanged lines hidden (view full) --- 49} 50 51Tick 52IsaFake::read(Packet *pkt) 53{ 54 assert(pkt->result == Packet::Unknown); 55 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 56 |
57 pkt->time += pioDelay; 58 | |
59 DPRINTF(Tsunami, "read va=%#x size=%d\n", pkt->getAddr(), pkt->getSize()); 60 61 switch (pkt->getSize()) { 62 pkt->set(0xFFFFFFFFFFFFFFFFULL); 63 break; 64 case sizeof(uint32_t): 65 pkt->set((uint32_t)0xFFFFFFFF); 66 break; --- 8 unchanged lines hidden (view full) --- 75 } 76 pkt->result = Packet::Success; 77 return pioDelay; 78} 79 80Tick 81IsaFake::write(Packet *pkt) 82{ | 57 DPRINTF(Tsunami, "read va=%#x size=%d\n", pkt->getAddr(), pkt->getSize()); 58 59 switch (pkt->getSize()) { 60 pkt->set(0xFFFFFFFFFFFFFFFFULL); 61 break; 62 case sizeof(uint32_t): 63 pkt->set((uint32_t)0xFFFFFFFF); 64 break; --- 8 unchanged lines hidden (view full) --- 73 } 74 pkt->result = Packet::Success; 75 return pioDelay; 76} 77 78Tick 79IsaFake::write(Packet *pkt) 80{ |
83 pkt->time += pioDelay; | |
84 DPRINTF(Tsunami, "write - va=%#x size=%d \n", pkt->getAddr(), pkt->getSize()); 85 pkt->result = Packet::Success; 86 return pioDelay; 87} 88 89BEGIN_DECLARE_SIM_OBJECT_PARAMS(IsaFake) 90 91 Param<Addr> pio_addr; --- 30 unchanged lines hidden --- | 81 DPRINTF(Tsunami, "write - va=%#x size=%d \n", pkt->getAddr(), pkt->getSize()); 82 pkt->result = Packet::Success; 83 return pioDelay; 84} 85 86BEGIN_DECLARE_SIM_OBJECT_PARAMS(IsaFake) 87 88 Param<Addr> pio_addr; --- 30 unchanged lines hidden --- |