intel_8254_timer.cc (7823:dac01f14f20f) | intel_8254_timer.cc (7903:7fcfb515d7bf) |
---|---|
1/* 2 * Copyright (c) 2004, 2005 3 * The Regents of The University of Michigan 4 * All Rights Reserved 5 * 6 * This code is part of the M5 simulator. 7 * 8 * Permission is granted to use, copy, create derivative works and --- 233 unchanged lines hidden (view full) --- 242 paramIn(cp, section, base + ".latched_count", latched_count); 243 paramIn(cp, section, base + ".period", period); 244 paramIn(cp, section, base + ".mode", mode); 245 paramIn(cp, section, base + ".output_high", output_high); 246 paramIn(cp, section, base + ".latch_on", latch_on); 247 paramIn(cp, section, base + ".read_byte", read_byte); 248 paramIn(cp, section, base + ".write_byte", write_byte); 249 | 1/* 2 * Copyright (c) 2004, 2005 3 * The Regents of The University of Michigan 4 * All Rights Reserved 5 * 6 * This code is part of the M5 simulator. 7 * 8 * Permission is granted to use, copy, create derivative works and --- 233 unchanged lines hidden (view full) --- 242 paramIn(cp, section, base + ".latched_count", latched_count); 243 paramIn(cp, section, base + ".period", period); 244 paramIn(cp, section, base + ".mode", mode); 245 paramIn(cp, section, base + ".output_high", output_high); 246 paramIn(cp, section, base + ".latch_on", latch_on); 247 paramIn(cp, section, base + ".read_byte", read_byte); 248 paramIn(cp, section, base + ".write_byte", write_byte); 249 |
250 Tick event_tick; | 250 Tick event_tick = 0; 251 if (event.scheduled()) 252 parent->deschedule(event); |
251 paramIn(cp, section, base + ".event_tick", event_tick); 252 if (event_tick) 253 parent->schedule(event, event_tick); 254} 255 256Intel8254Timer::Counter::CounterEvent::CounterEvent(Counter* c_ptr) 257{ 258 interval = (Tick)(SimClock::Float::s / 1193180.0); --- 43 unchanged lines hidden --- | 253 paramIn(cp, section, base + ".event_tick", event_tick); 254 if (event_tick) 255 parent->schedule(event, event_tick); 256} 257 258Intel8254Timer::Counter::CounterEvent::CounterEvent(Counter* c_ptr) 259{ 260 interval = (Tick)(SimClock::Float::s / 1193180.0); --- 43 unchanged lines hidden --- |