faults.cc (4183:3d19c1d46946) faults.cc (4184:b0612b5646dd)
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;

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

51 assert(!tc->misspeculating());
52}
53#endif
54
55void UnimpFault::invoke(ThreadContext * tc)
56{
57 panic("Unimpfault: %s\n", panicStr.c_str());
58}
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;

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

51 assert(!tc->misspeculating());
52}
53#endif
54
55void UnimpFault::invoke(ThreadContext * tc)
56{
57 panic("Unimpfault: %s\n", panicStr.c_str());
58}
59
59#if !FULL_SYSTEM
60void PageTableFault::invoke(ThreadContext *tc)
61{
62 Process *p = tc->getProcessPtr();
63
64 // We've accessed the next page of the stack, so extend the stack
65 // to cover it.
66 if(vaddr < p->stack_min && vaddr >= p->stack_min - TheISA::PageBytes)
67 {

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

73 }
74 // Otherwise, we have an unexpected page fault. Report that fact,
75 // and what address was accessed to cause the fault.
76 else
77 {
78 panic("Page table fault when accessing virtual address %#x\n", vaddr);
79 }
80}
60void PageTableFault::invoke(ThreadContext *tc)
61{
62 Process *p = tc->getProcessPtr();
63
64 // We've accessed the next page of the stack, so extend the stack
65 // to cover it.
66 if(vaddr < p->stack_min && vaddr >= p->stack_min - TheISA::PageBytes)
67 {

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

73 }
74 // Otherwise, we have an unexpected page fault. Report that fact,
75 // and what address was accessed to cause the fault.
76 else
77 {
78 panic("Page table fault when accessing virtual address %#x\n", vaddr);
79 }
80}
81#endif