interrupts.cc (5646:0a488a147fb8) | interrupts.cc (5704:98224505352a) |
---|---|
1/* 2 * Copyright (c) 2006 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 --- 62 unchanged lines hidden (view full) --- 71 assert(index == 0); 72 73 if (int_num < 0 || int_num >= NumInterruptLevels) 74 panic("int_num out of bounds\n"); 75 76 intstatus &= ~(1 << int_num); 77 } 78 | 1/* 2 * Copyright (c) 2006 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 --- 62 unchanged lines hidden (view full) --- 71 assert(index == 0); 72 73 if (int_num < 0 || int_num >= NumInterruptLevels) 74 panic("int_num out of bounds\n"); 75 76 intstatus &= ~(1 << int_num); 77 } 78 |
79 void Interrupts::clear_all() | 79 void Interrupts::clearAll() |
80 { 81 DPRINTF(Interrupt, "Interrupts all cleared\n"); 82 intstatus = 0; 83 } 84 85 86 87 Fault Interrupts::getInterrupt(ThreadContext * tc) --- 96 unchanged lines hidden (view full) --- 184 setCauseIP_(tc, intstatus); 185} 186 187void Interrupts::clear(int int_num, int index) 188{ 189 fatal("Must use Thread COntext when clearing MIPS Interrupts in M5"); 190} 191 | 80 { 81 DPRINTF(Interrupt, "Interrupts all cleared\n"); 82 intstatus = 0; 83 } 84 85 86 87 Fault Interrupts::getInterrupt(ThreadContext * tc) --- 96 unchanged lines hidden (view full) --- 184 setCauseIP_(tc, intstatus); 185} 186 187void Interrupts::clear(int int_num, int index) 188{ 189 fatal("Must use Thread COntext when clearing MIPS Interrupts in M5"); 190} 191 |
192void Interrupts::clear_all(ThreadContext *tc) | 192void Interrupts::clearAll(ThreadContext *tc) |
193{ 194 DPRINTF(Interrupt, "Interrupts all cleared\n"); 195 uint8_t intstatus = 0; 196 setCauseIP_(tc, intstatus); 197} 198 | 193{ 194 DPRINTF(Interrupt, "Interrupts all cleared\n"); 195 uint8_t intstatus = 0; 196 setCauseIP_(tc, intstatus); 197} 198 |
199void Interrupts::clear_all() | 199void Interrupts::clearAll() |
200{ 201 fatal("Must use Thread COntext when clearing MIPS Interrupts in M5"); 202} 203 204 205 206Fault Interrupts::getInterrupt(ThreadContext * tc) 207{ --- 66 unchanged lines hidden --- | 200{ 201 fatal("Must use Thread COntext when clearing MIPS Interrupts in M5"); 202} 203 204 205 206Fault Interrupts::getInterrupt(ThreadContext * tc) 207{ --- 66 unchanged lines hidden --- |