> On Aug. 23, 2012, 8:35 a.m., Nathan Binkert wrote:
> > src/arch/x86/mmapped_ipr.hh, line 65
> > <http://reviews.gem5.org/r/1321/diff/4/?file=28990#file28990line65>
> >
> >     Why is the return value here 1 when the return type is still Tick?

This is fixed in the follow-on patch which introduces the Cycles type. I could 
make it uint64_t in the transition, but the two patches will be committed 
together.


> On Aug. 23, 2012, 8:35 a.m., Nathan Binkert wrote:
> > src/cpu/inorder/cpu.cc, line 764
> > <http://reviews.gem5.org/r/1321/diff/4/?file=28993#file28993line764>
> >
> >     This seems to be an absolute cycle.  Do we no longer require that 
> > cycles are relative?  We ensure that cycles are always increasing?

It is a bit of a blurry area, I agree. In this case it is used as an absolute 
cycle, but we only do that so that we later can subtract one absolute cycle 
from another and get a relative number. I am open to suggestions for how to 
solve the problem, but for now I think this is the best option.


> On Aug. 23, 2012, 8:35 a.m., Nathan Binkert wrote:
> > src/cpu/o3/O3CPU.py, line 79
> > <http://reviews.gem5.org/r/1321/diff/4/?file=28996#file28996line79>
> >
> >     Be nice to have a Param type that specifically indicates Cycles, but I 
> > understand why not.

It is on the roadmap :)


> On Aug. 23, 2012, 8:35 a.m., Nathan Binkert wrote:
> > src/cpu/o3/commit.hh, line 412
> > <http://reviews.gem5.org/r/1321/diff/4/?file=28997#file28997line412>
> >
> >     Do we allow uint as a type?  Seems like we should use unsigned since we 
> > don't use uint elsewhere.

I will change to uint64_t. In the follow-on patch this will be Cycles (what was 
CycleCount)


- Andreas


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/1321/#review3300
-----------------------------------------------------------


On Aug. 23, 2012, 2:48 a.m., Andreas Hansson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/1321/
> -----------------------------------------------------------
> 
> (Updated Aug. 23, 2012, 2:48 a.m.)
> 
> 
> Review request for Default.
> 
> 
> Description
> -------
> 
> Changeset 9168:571d3ae56173
> ---------------------------
> 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.
> 
> 
> Diffs
> -----
> 
>   src/arch/arm/table_walker.cc 1d983855df2c 
>   src/arch/x86/mmapped_ipr.hh 1d983855df2c 
>   src/cpu/base.cc 1d983855df2c 
>   src/cpu/inorder/cpu.hh 1d983855df2c 
>   src/cpu/inorder/cpu.cc 1d983855df2c 
>   src/cpu/inorder/resource.cc 1d983855df2c 
>   src/cpu/inorder/resource_pool.cc 1d983855df2c 
>   src/cpu/o3/O3CPU.py 1d983855df2c 
>   src/cpu/o3/commit.hh 1d983855df2c 
>   src/cpu/o3/commit_impl.hh 1d983855df2c 
>   src/cpu/o3/cpu.hh 1d983855df2c 
>   src/cpu/o3/cpu.cc 1d983855df2c 
>   src/cpu/o3/fetch_impl.hh 1d983855df2c 
>   src/cpu/o3/inst_queue_impl.hh 1d983855df2c 
>   src/cpu/o3/lsq_unit.hh 1d983855df2c 
>   src/cpu/simple/atomic.cc 1d983855df2c 
>   src/cpu/simple/timing.hh 1d983855df2c 
>   src/cpu/simple/timing.cc 1d983855df2c 
>   src/cpu/testers/memtest/memtest.cc 1d983855df2c 
>   src/cpu/testers/networktest/networktest.cc 1d983855df2c 
>   src/dev/arm/pl111.cc 1d983855df2c 
>   src/dev/i8254xGBe.cc 1d983855df2c 
>   src/dev/ns_gige.cc 1d983855df2c 
>   src/sim/clocked_object.hh 1d983855df2c 
> 
> Diff: http://reviews.gem5.org/r/1321/diff/
> 
> 
> Testing
> -------
> 
> util/regress all passing (disregarding t1000 and eio)
> 
> A minor update. This change did improve performance. Running the
> full regression, including a clean compile of all the ISAs went
> down by 8%. Note that this includes the time for building as well.
> 
> 
> Thanks,
> 
> Andreas Hansson
> 
>

_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to