gem5/src/dev/arm
Andreas Hansson d53d04473e Clock: Rework clocks to avoid tick-to-cycle transformations
This patch introduces the notion of a clock update function that aims
to avoid costly divisions when turning the current tick into a
cycle. Each clocked object advances a private (hidden) cycle member
and a tick member and uses these to implement functions for getting
the tick of the next cycle, or the tick of a cycle some time in the
future.

In the different modules using the clocks, changes are made to avoid
counting in ticks only to later translate to cycles. There are a few
oddities in how the O3 and inorder CPU count idle cycles, as seen by a
few locations where a cycle is subtracted in the calculation. This is
done such that the regression does not change any stats, but should be
revisited in a future patch.

Another, much needed, change that is not done as part of this patch is
to introduce a new typedef uint64_t Cycle to be able to at least hint
at the unit of the variables counting Ticks vs Cycles. This will be
done as a follow-up patch.

As an additional follow up, the thread context still uses ticks for
the book keeping of last activate and last suspend and this should
probably also be changed into cycles as well.
2012-08-28 14:30:31 -04:00
..
a9scu.cc ARM: Add snoop control unit device. 2011-05-04 20:38:27 -05:00
a9scu.hh ARM: Add snoop control unit device. 2011-05-04 20:38:27 -05:00
amba_device.cc fix some build problems from prior changesets 2011-04-20 18:45:03 -07:00
amba_device.hh DMA: Split the DMA device and IO device into seperate files 2012-05-23 09:15:45 -04:00
amba_fake.cc fix some build problems from prior changesets 2011-04-20 18:45:03 -07:00
amba_fake.hh ARM: Add I/O devices for booting linux 2010-08-23 11:18:40 -05:00
gic.cc Port: Make getAddrRanges const 2012-07-09 12:35:34 -04:00
gic.hh Port: Make getAddrRanges const 2012-07-09 12:35:34 -04:00
kmi.cc ARM: PS2 encoding fix 2012-06-05 01:23:10 -04:00
kmi.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
pl011.cc ARM: pl011 raw interrupt fix 2012-05-10 18:04:28 -05:00
pl011.hh ARM: Change how the AMBA device ID checking is done to make it more generic 2010-08-23 11:18:40 -05:00
pl111.cc Clock: Rework clocks to avoid tick-to-cycle transformations 2012-08-28 14:30:31 -04:00
pl111.hh Clock: Move the clock and related functions to ClockedObject 2012-08-21 05:49:01 -04:00
realview.cc SE/FS: Remove System::platform and Platform::intrFrequency. 2011-09-30 00:29:07 -07:00
realview.hh SE/FS: Remove System::platform and Platform::intrFrequency. 2011-09-30 00:29:07 -07:00
RealView.py Clock: Move the clock and related functions to ClockedObject 2012-08-21 05:49:01 -04:00
rtc_pl031.cc ARM: Fix incorrect use of not operators in arm devices 2012-05-10 18:04:27 -05:00
rtc_pl031.hh ARM: Add RTC device for ARM platforms. 2012-03-01 17:26:31 -06:00
rv_ctrl.cc ARM: fix the calculation of the values in the RV clocks 2012-05-10 18:04:28 -05:00
rv_ctrl.hh ARM: Add support for Versatile Express boards 2011-08-19 15:08:08 -05:00
SConscript ARM: Add RTC device for ARM platforms. 2012-03-01 17:26:31 -06:00
timer_cpulocal.cc Clock: Move the clock and related functions to ClockedObject 2012-08-21 05:49:01 -04:00
timer_cpulocal.hh ARM: Add per-cpu local timers for ARM. 2011-08-19 15:08:05 -05:00
timer_sp804.cc ARM: Fix incorrect use of not operators in arm devices 2012-05-10 18:04:27 -05:00
timer_sp804.hh ARM: Add checkpointing support 2010-11-08 13:58:25 -06:00