tlb.cc (5736:426510e758ad) tlb.cc (5837:831413564d0c)
1/*
2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

542 if (IOPort == 0xCF8 && req->getSize() == 4) {
543 req->setMmapedIpr(true);
544 req->setPaddr(MISCREG_PCI_CONFIG_ADDRESS * sizeof(MiscReg));
545 } else if ((IOPort & ~mask(2)) == 0xCFC) {
546 Addr configAddress =
547 tc->readMiscRegNoEffect(MISCREG_PCI_CONFIG_ADDRESS);
548 if (bits(configAddress, 31, 31)) {
549 req->setPaddr(PhysAddrPrefixPciConfig |
1/*
2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

542 if (IOPort == 0xCF8 && req->getSize() == 4) {
543 req->setMmapedIpr(true);
544 req->setPaddr(MISCREG_PCI_CONFIG_ADDRESS * sizeof(MiscReg));
545 } else if ((IOPort & ~mask(2)) == 0xCFC) {
546 Addr configAddress =
547 tc->readMiscRegNoEffect(MISCREG_PCI_CONFIG_ADDRESS);
548 if (bits(configAddress, 31, 31)) {
549 req->setPaddr(PhysAddrPrefixPciConfig |
550 bits(configAddress, 30, 0));
550 mbits(configAddress, 30, 2) |
551 (IOPort & mask(2)));
551 }
552 } else {
553 req->setPaddr(PhysAddrPrefixIO | IOPort);
554 }
555 return NoFault;
556 } else {
557 panic("Access to unrecognized internal address space %#x.\n",
558 prefix);

--- 167 unchanged lines hidden ---
552 }
553 } else {
554 req->setPaddr(PhysAddrPrefixIO | IOPort);
555 }
556 return NoFault;
557 } else {
558 panic("Access to unrecognized internal address space %#x.\n",
559 prefix);

--- 167 unchanged lines hidden ---