faults.cc (8696:642f83fafffb) faults.cc (8737:770ccf3af571)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

93 { "Address Error", 0x180, ExcCodeDummy };
94
95template <> FaultVals MipsFault<TlbInvalidFault>::vals =
96 { "Invalid TLB Entry Exception", 0x180, ExcCodeDummy };
97
98template <> FaultVals MipsFault<TlbRefillFault>::vals =
99 { "TLB Refill Exception", 0x180, ExcCodeDummy };
100
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

93 { "Address Error", 0x180, ExcCodeDummy };
94
95template <> FaultVals MipsFault<TlbInvalidFault>::vals =
96 { "Invalid TLB Entry Exception", 0x180, ExcCodeDummy };
97
98template <> FaultVals MipsFault<TlbRefillFault>::vals =
99 { "TLB Refill Exception", 0x180, ExcCodeDummy };
100
101template <> FaultVals MipsFault::vals =
101template <> MipsFaultBase::FaultVals MipsFault<TlbModifiedFault>::vals =
102 { "TLB Modified Exception", 0x180, ExcCodeMod };
103
104void
105MipsFaultBase::setExceptionState(ThreadContext *tc, uint8_t excCode)
106{
107 // modify SRS Ctl - Save CSS, put ESS into CSS
108 StatusReg status = tc->readMiscReg(MISCREG_STATUS);
109 if (status.exl != 1 && status.bev != 1) {

--- 69 unchanged lines hidden ---
102 { "TLB Modified Exception", 0x180, ExcCodeMod };
103
104void
105MipsFaultBase::setExceptionState(ThreadContext *tc, uint8_t excCode)
106{
107 // modify SRS Ctl - Save CSS, put ESS into CSS
108 StatusReg status = tc->readMiscReg(MISCREG_STATUS);
109 if (status.exl != 1 && status.bev != 1) {

--- 69 unchanged lines hidden ---