faults.cc (8232:b28d06a175be) faults.cc (8539:7d3ea3c65c66)
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;

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

56 panic("Unimpfault: %s\n", panicStr.c_str());
57}
58
59#if !FULL_SYSTEM
60void GenericPageTableFault::invoke(ThreadContext *tc, StaticInstPtr inst)
61{
62 Process *p = tc->getProcessPtr();
63
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;

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

56 panic("Unimpfault: %s\n", panicStr.c_str());
57}
58
59#if !FULL_SYSTEM
60void GenericPageTableFault::invoke(ThreadContext *tc, StaticInstPtr inst)
61{
62 Process *p = tc->getProcessPtr();
63
64 if (!p->checkAndAllocNextPage(vaddr))
64 if (!p->fixupStackFault(vaddr))
65 panic("Page table fault when accessing virtual address %#x\n", vaddr);
66
67}
68
69void GenericAlignmentFault::invoke(ThreadContext *tc, StaticInstPtr inst)
70{
71 panic("Alignment fault when accessing virtual address %#x\n", vaddr);
72}
73#endif
65 panic("Page table fault when accessing virtual address %#x\n", vaddr);
66
67}
68
69void GenericAlignmentFault::invoke(ThreadContext *tc, StaticInstPtr inst)
70{
71 panic("Alignment fault when accessing virtual address %#x\n", vaddr);
72}
73#endif