isa_fake.cc (10415:85274f24c37a) isa_fake.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;

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

48 retData16 = p->ret_data16;
49 retData32 = p->ret_data32;
50 retData64 = p->ret_data64;
51}
52
53Tick
54IsaFake::read(PacketPtr pkt)
55{
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 retData16 = p->ret_data16;
49 retData32 = p->ret_data32;
50 retData64 = p->ret_data64;
51}
52
53Tick
54IsaFake::read(PacketPtr pkt)
55{
56 pkt->allocate();
57 pkt->makeAtomicResponse();
58
59 if (params()->warn_access != "")
60 warn("Device %s accessed by read to address %#x size=%d\n",
61 name(), pkt->getAddr(), pkt->getSize());
62 if (params()->ret_bad_addr) {
63 DPRINTF(IsaFake, "read to bad address va=%#x size=%d\n",
64 pkt->getAddr(), pkt->getSize());

--- 88 unchanged lines hidden ---
56 pkt->makeAtomicResponse();
57
58 if (params()->warn_access != "")
59 warn("Device %s accessed by read to address %#x size=%d\n",
60 name(), pkt->getAddr(), pkt->getSize());
61 if (params()->ret_bad_addr) {
62 DPRINTF(IsaFake, "read to bad address va=%#x size=%d\n",
63 pkt->getAddr(), pkt->getSize());

--- 88 unchanged lines hidden ---