interrupts.cc (12429:beefb9f5f551) interrupts.cc (13615:5cc9363f5ab7)
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

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

140 (unsigned)status.im, (unsigned)cause.ip);
141
142 return std::make_shared<InterruptFault>();
143}
144
145bool
146Interrupts::onCpuTimerInterrupt(ThreadContext * tc) const
147{
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

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

140 (unsigned)status.im, (unsigned)cause.ip);
141
142 return std::make_shared<InterruptFault>();
143}
144
145bool
146Interrupts::onCpuTimerInterrupt(ThreadContext * tc) const
147{
148 MiscReg compare = tc->readMiscRegNoEffect(MISCREG_COMPARE);
149 MiscReg count = tc->readMiscRegNoEffect(MISCREG_COUNT);
148 RegVal compare = tc->readMiscRegNoEffect(MISCREG_COMPARE);
149 RegVal count = tc->readMiscRegNoEffect(MISCREG_COUNT);
150 if (compare == count && count != 0)
151 return true;
152 return false;
153}
154
155void
156Interrupts::updateIntrInfo(ThreadContext *tc) const
157{

--- 28 unchanged lines hidden ---
150 if (compare == count && count != 0)
151 return true;
152 return false;
153}
154
155void
156Interrupts::updateIntrInfo(ThreadContext *tc) const
157{

--- 28 unchanged lines hidden ---