baddev.cc (2665:a124942bacb8) baddev.cc (3349:fec4a86fa212)
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;

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

48
49BadDevice::BadDevice(Params *p)
50 : BasicPioDevice(p), devname(p->device_name)
51{
52 pioSize = 0xf;
53}
54
55Tick
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;

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

48
49BadDevice::BadDevice(Params *p)
50 : BasicPioDevice(p), devname(p->device_name)
51{
52 pioSize = 0xf;
53}
54
55Tick
56BadDevice::read(Packet *pkt)
56BadDevice::read(PacketPtr pkt)
57{
58 panic("Device %s not imlpmented\n", devname);
59}
60
61Tick
57{
58 panic("Device %s not imlpmented\n", devname);
59}
60
61Tick
62BadDevice::write(Packet *pkt)
62BadDevice::write(PacketPtr pkt)
63{
64 panic("Device %s not imlpmented\n", devname);
65}
66
67BEGIN_DECLARE_SIM_OBJECT_PARAMS(BadDevice)
68
69 Param<string> devicename;
70 Param<Addr> pio_addr;

--- 29 unchanged lines hidden ---
63{
64 panic("Device %s not imlpmented\n", devname);
65}
66
67BEGIN_DECLARE_SIM_OBJECT_PARAMS(BadDevice)
68
69 Param<string> devicename;
70 Param<Addr> pio_addr;

--- 29 unchanged lines hidden ---