tsunami_io.cc (9808:13ffc0066b76) tsunami_io.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;

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

91{
92 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
93
94 Addr daddr = pkt->getAddr() - pioAddr;
95
96 DPRINTF(Tsunami, "io read va=%#x size=%d IOPorrt=%#x\n", pkt->getAddr(),
97 pkt->getSize(), daddr);
98
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;

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

91{
92 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
93
94 Addr daddr = pkt->getAddr() - pioAddr;
95
96 DPRINTF(Tsunami, "io read va=%#x size=%d IOPorrt=%#x\n", pkt->getAddr(),
97 pkt->getSize(), daddr);
98
99 pkt->allocate();
100
101 if (pkt->getSize() == sizeof(uint8_t)) {
102 switch(daddr) {
103 // PIC1 mask read
104 case TSDEV_PIC1_MASK:
105 pkt->set(~mask1);
106 break;
107 case TSDEV_PIC2_MASK:
108 pkt->set(~mask2);

--- 185 unchanged lines hidden ---
99 if (pkt->getSize() == sizeof(uint8_t)) {
100 switch(daddr) {
101 // PIC1 mask read
102 case TSDEV_PIC1_MASK:
103 pkt->set(~mask1);
104 break;
105 case TSDEV_PIC2_MASK:
106 pkt->set(~mask2);

--- 185 unchanged lines hidden ---