vtophys.cc (4172:141705d83494) vtophys.cc (5566:3440c9ad49b4)
1/*
2 * Copyright (c) 2002-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;

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

87Addr
88AlphaISA::vtophys(ThreadContext *tc, Addr addr)
89{
90 AlphaISA::VAddr vaddr = addr;
91 Addr ptbr = tc->readMiscRegNoEffect(AlphaISA::IPR_PALtemp20);
92 Addr paddr = 0;
93 //@todo Andrew couldn't remember why he commented some of this code
94 //so I put it back in. Perhaps something to do with gdb debugging?
1/*
2 * Copyright (c) 2002-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;

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

87Addr
88AlphaISA::vtophys(ThreadContext *tc, Addr addr)
89{
90 AlphaISA::VAddr vaddr = addr;
91 Addr ptbr = tc->readMiscRegNoEffect(AlphaISA::IPR_PALtemp20);
92 Addr paddr = 0;
93 //@todo Andrew couldn't remember why he commented some of this code
94 //so I put it back in. Perhaps something to do with gdb debugging?
95 if (AlphaISA::PcPAL(vaddr) && (vaddr < EV5::PalMax)) {
95 if (AlphaISA::PcPAL(vaddr) && (vaddr < AlphaISA::PalMax)) {
96 paddr = vaddr & ~ULL(1);
97 } else {
98 if (AlphaISA::IsK0Seg(vaddr)) {
99 paddr = AlphaISA::K0Seg2Phys(vaddr);
100 } else if (!ptbr) {
101 paddr = vaddr;
102 } else {
103 AlphaISA::PageTableEntry pte =

--- 12 unchanged lines hidden ---
96 paddr = vaddr & ~ULL(1);
97 } else {
98 if (AlphaISA::IsK0Seg(vaddr)) {
99 paddr = AlphaISA::K0Seg2Phys(vaddr);
100 } else if (!ptbr) {
101 paddr = vaddr;
102 } else {
103 AlphaISA::PageTableEntry pte =

--- 12 unchanged lines hidden ---