1/* 2 * Copyright (c) 2003-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; --- 173 unchanged lines hidden (view full) --- 182 AlphaFault::invoke(tc); 183} 184 185void 186ItbPageFault::invoke(ThreadContext *tc, StaticInstPtr inst) 187{ 188 if (FullSystem) { 189 ItbFault::invoke(tc); |
190 return; 191 } 192 193 Process *p = tc->getProcessPtr(); 194 TlbEntry entry; 195 bool success = p->pTable->lookup(pc, entry); 196 if (!success) { 197 panic("Tried to execute unmapped address %#x.\n", pc); |
198 } else { |
199 VAddr vaddr(pc); 200 tc->getITBPtr()->insert(vaddr.page(), entry); |
201 } 202} 203 204void 205NDtbMissFault::invoke(ThreadContext *tc, StaticInstPtr inst) 206{ 207 if (FullSystem) { 208 DtbFault::invoke(tc, inst); |
209 return; 210 } 211 212 Process *p = tc->getProcessPtr(); 213 TlbEntry entry; 214 bool success = p->pTable->lookup(vaddr, entry); 215 if (!success) { 216 if (p->fixupStackFault(vaddr)) 217 success = p->pTable->lookup(vaddr, entry); 218 } 219 if (!success) { 220 panic("Tried to access unmapped address %#x.\n", (Addr)vaddr); |
221 } else { |
222 tc->getDTBPtr()->insert(vaddr.page(), entry); |
223 } 224} 225 226} // namespace AlphaISA 227 |