isa_fake.cc (3349:fec4a86fa212) isa_fake.cc (3357:0963b8a38b5e)
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;

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

56IsaFake::read(PacketPtr pkt)
57{
58 assert(pkt->result == Packet::Unknown);
59 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
60
61 DPRINTF(Tsunami, "read va=%#x size=%d\n", pkt->getAddr(), pkt->getSize());
62
63 switch (pkt->getSize()) {
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;

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

56IsaFake::read(PacketPtr pkt)
57{
58 assert(pkt->result == Packet::Unknown);
59 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
60
61 DPRINTF(Tsunami, "read va=%#x size=%d\n", pkt->getAddr(), pkt->getSize());
62
63 switch (pkt->getSize()) {
64 case sizeof(uint64_t):
64 pkt->set(0xFFFFFFFFFFFFFFFFULL);
65 break;
66 case sizeof(uint32_t):
67 pkt->set((uint32_t)0xFFFFFFFF);
68 break;
69 case sizeof(uint16_t):
70 pkt->set((uint16_t)0xFFFF);
71 break;

--- 51 unchanged lines hidden ---
65 pkt->set(0xFFFFFFFFFFFFFFFFULL);
66 break;
67 case sizeof(uint32_t):
68 pkt->set((uint32_t)0xFFFFFFFF);
69 break;
70 case sizeof(uint16_t):
71 pkt->set((uint16_t)0xFFFF);
72 break;

--- 51 unchanged lines hidden ---