isa_fake.cc (8461:7d0669201f80) | isa_fake.cc (9808:13ffc0066b76) |
---|---|
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; --- 28 unchanged lines hidden (view full) --- 37#include "dev/isa_fake.hh" 38#include "mem/packet.hh" 39#include "mem/packet_access.hh" 40#include "sim/system.hh" 41 42using namespace std; 43 44IsaFake::IsaFake(Params *p) | 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; --- 28 unchanged lines hidden (view full) --- 37#include "dev/isa_fake.hh" 38#include "mem/packet.hh" 39#include "mem/packet_access.hh" 40#include "sim/system.hh" 41 42using namespace std; 43 44IsaFake::IsaFake(Params *p) |
45 : BasicPioDevice(p) | 45 : BasicPioDevice(p, p->ret_bad_addr ? 0 : p->pio_size) |
46{ | 46{ |
47 if (!p->ret_bad_addr) 48 pioSize = p->pio_size; 49 | |
50 retData8 = p->ret_data8; 51 retData16 = p->ret_data16; 52 retData32 = p->ret_data32; 53 retData64 = p->ret_data64; 54} 55 56Tick 57IsaFake::read(PacketPtr pkt) --- 98 unchanged lines hidden --- | 47 retData8 = p->ret_data8; 48 retData16 = p->ret_data16; 49 retData32 = p->ret_data32; 50 retData64 = p->ret_data64; 51} 52 53Tick 54IsaFake::read(PacketPtr pkt) --- 98 unchanged lines hidden --- |