Hi,
I need a suggestion for the following issue:
I need to implement some methods very similar to the ones in ValueTracker (I
want to read some memory locations). I was thinking of implementing the
functionality I need in ValueTracker (that's the place where it makes sense to
have that code). However, I need to call that function(s) from outside uArch.
Could anybody suggest a way of accessing functions from ValueTracker that is
quick-and-not-so-dirty?
Thanks in advance,
Ioana
From ioana at eecg.toronto.edu Tue Oct 17 23:54:27 2006
From: ioana at eecg.toronto.edu (Ioana Burcea)
List-Post: [email protected]
Date: Tue Oct 17 23:54:40 2006
Subject: [Simflex] access methods from ValueTracker from outside the uArch
In-Reply-To: <[email protected]>
References: <[email protected]>
Message-ID: <[email protected]>
I tried including ValueTracker.hpp and use nuArch::ValueTracker.valueTracker().
It seems to work this way.
Thanks,
Ioana
Ioana Burcea wrote:
> Hi,
>
> I need a suggestion for the following issue:
>
> I need to implement some methods very similar to the ones in
> ValueTracker (I want to read some memory locations). I was thinking of
> implementing the functionality I need in ValueTracker (that's the place
> where it makes sense to have that code). However, I need to call that
> function(s) from outside uArch.
>
> Could anybody suggest a way of accessing functions from ValueTracker
> that is quick-and-not-so-dirty?
>
> Thanks in advance,
> Ioana
> _______________________________________________
> SimFlex mailing list
> [email protected]
> https://sos.ece.cmu.edu/mailman/listinfo/simflex
> SimFlex web page: http://www.ece.cmu.edu/~simflex
From jsmolens+ at ece.cmu.edu Wed Oct 18 00:23:24 2006
From: jsmolens+ at ece.cmu.edu (Jared C. Smolens)
List-Post: [email protected]
Date: Wed Oct 18 00:23:30 2006
Subject: [Simflex] access methods from ValueTracker from outside the uArch
Message-ID: <[email protected]>
Hi Ioana,
ValueTracker is a global object that can be accessed relatively cleanly
by using the "valueTracker()" function. I've used it from Cache
components by:
1) #include "../uArch/ValueTracker.hpp" (your path may vary) and
2) invoking ValueTracker methods, such as access(), like this:
nuArch::ValueTracker::valueTracker().access( aCPU, anAddress );
- Jared
Excerpts From Ioana Burcea <[email protected]>:
[Simflex] access methods from Value: Ioana Burcea <[email protected]
>I need a suggestion for the following issue:
>
>I need to implement some methods very similar to the ones in
ValueTracker (I
>want to read some memory locations). I was thinking of implementing the
>functionality I need in ValueTracker (that's the place where it makes
sense to
>
>have that code). However, I need to call that function(s) from outside
uArch.
>
>Could anybody suggest a way of accessing functions from ValueTracker
that is
>quick-and-not-so-dirty?
Jared Smolens ----------- Electrical and Computer Engineering
www.rabidpenguin.org ------------- Carnegie Mellon University
jsmolens AT ece.cmu.edu ------ HH A-313 ------ Pittsburgh, PA