faults.cc (5184:8782de2949e5) faults.cc (5570:13592d41f290)
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;

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

541 //Do error_state somehow?
542 //Probably inject a WDR fault using the interrupt mechanism.
543 //What should the PC and NPC be set to?
544 } else if (tl > MaxPTL && level == Privileged) {
545 //guest_watchdog fault
546 doNormalFault(tc, trapType(), true);
547 getHyperVector(tc, PC, NPC, 2);
548 } else if (level == Hyperprivileged ||
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;

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

541 //Do error_state somehow?
542 //Probably inject a WDR fault using the interrupt mechanism.
543 //What should the PC and NPC be set to?
544 } else if (tl > MaxPTL && level == Privileged) {
545 //guest_watchdog fault
546 doNormalFault(tc, trapType(), true);
547 getHyperVector(tc, PC, NPC, 2);
548 } else if (level == Hyperprivileged ||
549 level == Privileged && trapType() >= 384) {
549 (level == Privileged && trapType() >= 384)) {
550 doNormalFault(tc, trapType(), true);
551 getHyperVector(tc, PC, NPC, trapType());
552 } else {
553 doNormalFault(tc, trapType(), false);
554 getPrivVector(tc, PC, NPC, trapType(), tl+1);
555 }
556
557 tc->setPC(PC);

--- 155 unchanged lines hidden ---
550 doNormalFault(tc, trapType(), true);
551 getHyperVector(tc, PC, NPC, trapType());
552 } else {
553 doNormalFault(tc, trapType(), false);
554 getPrivVector(tc, PC, NPC, trapType(), tl+1);
555 }
556
557 tc->setPC(PC);

--- 155 unchanged lines hidden ---