timer_sp804.cc (8524:1ddd1aa0e55b) | timer_sp804.cc (8993:d5f9445010da) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 191 unchanged lines hidden (view full) --- 200 return; 201 202 DPRINTF(Timer, "Counter reached zero\n"); 203 204 rawInt = true; 205 bool old_pending = pendingInt; 206 if (control.intEnable) 207 pendingInt = true; | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 191 unchanged lines hidden (view full) --- 200 return; 201 202 DPRINTF(Timer, "Counter reached zero\n"); 203 204 rawInt = true; 205 bool old_pending = pendingInt; 206 if (control.intEnable) 207 pendingInt = true; |
208 if (pendingInt && ~old_pending) { | 208 if (pendingInt && !old_pending) { |
209 DPRINTF(Timer, "-- Causing interrupt\n"); 210 parent->gic->sendInt(intNum); 211 } 212 213 if (control.oneShot) 214 return; 215 216 // Free-running --- 79 unchanged lines hidden --- | 209 DPRINTF(Timer, "-- Causing interrupt\n"); 210 parent->gic->sendInt(intNum); 211 } 212 213 if (control.oneShot) 214 return; 215 216 // Free-running --- 79 unchanged lines hidden --- |