interrupts.hh (6227:a17798f2a52c) | interrupts.hh (7720:65d338a8dba4) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 119 unchanged lines hidden (view full) --- 128 { 129 UNSERIALIZE_ARRAY(interrupts, NumInterruptLevels); 130 UNSERIALIZE_SCALAR(intstatus); 131 } 132 133 bool 134 checkInterrupts(ThreadContext *tc) const 135 { | 1/* 2 * Copyright (c) 2006 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; --- 119 unchanged lines hidden (view full) --- 128 { 129 UNSERIALIZE_ARRAY(interrupts, NumInterruptLevels); 130 UNSERIALIZE_SCALAR(intstatus); 131 } 132 133 bool 134 checkInterrupts(ThreadContext *tc) const 135 { |
136 return (intstatus != 0) && !(tc->readPC() & 0x3); | 136 return (intstatus != 0) && !(tc->pcState().pc() & 0x3); |
137 } 138 139 Fault 140 getInterrupt(ThreadContext *tc) 141 { 142 uint64_t ipl = 0; 143 uint64_t summary = 0; 144 --- 53 unchanged lines hidden --- | 137 } 138 139 Fault 140 getInterrupt(ThreadContext *tc) 141 { 142 uint64_t ipl = 0; 143 uint64_t summary = 0; 144 --- 53 unchanged lines hidden --- |