Re: [Gems-users] defining new actions in *.sm file


Date: Wed, 11 Oct 2006 22:37:37 -0500
From: "Mike Marty" <mikem@xxxxxxxxxxx>
Subject: Re: [Gems-users] defining new actions in *.sm file
Yes, its doable.  The LogTM code uses magic instructions to tell the cache
controllers when a transaction starts and ends.  

Your magic instruction will call the Sequencer which then enqueues a special
CacheMsg to the mandatory queue of the L1 controller.  

> -----Original Message-----
> From: gems-users-bounces@xxxxxxxxxxx [mailto:gems-users-
> bounces@xxxxxxxxxxx] On Behalf Of Dave Z.
> Sent: Wednesday, October 11, 2006 9:24 PM
> To: Gems Users
> Subject: Re: [Gems-users] defining new actions in *.sm file
> 
> Thanks for your reply, Mike. I can make a transition that only executes my
> action but the problem is I want that transition to take place when a
> certain point (e.g. magic instruction) has been reached in the program. Is
> this not doable? Basically the idea is to inform the cache controller that
> it's time to prefetch some data. Thanks for your help.
> 
> ----- Original Message ----
> From: Mike Marty <mikem@xxxxxxxxxxx>
> To: Gems Users <gems-users@xxxxxxxxxxx>
> Sent: Wednesday, October 11, 2006 5:34:31 PM
> Subject: Re: [Gems-users] defining new actions in *.sm file
> 
> Make a transition that only executes your action and nothing else.
> 
> > -----Original Message-----
> > From: gems-users-bounces@xxxxxxxxxxx [mailto:gems-users-
> > bounces@xxxxxxxxxxx] On Behalf Of Dave Z.
> > Sent: Wednesday, October 11, 2006 6:30 PM
> > To: Gems Users
> > Subject: Re: [Gems-users] defining new actions in *.sm file
> >
> > I see what you mean. But I just want some action to
> > get executed by the cache controller when a particular
> > magic instruction is called in the program, not when a
> > transition takes place. Is there a way to work around
> > this problem? Any ideas? Thanks.
> >
> > DZ
> >
> > --- Greg Byrd <gbyrd@xxxxxxxx> wrote:
> >
> > >
> > > You can't "call" an action.  Actions happen as a
> > > result of a
> > > transition.  And transitions happen
> > > as a result of an event.  To cause your cache
> > > component to wake up and
> > > do something,
> > > you need to schedule an event.
> > >
> > > ...gb
> > >
> > >
> > > Dave Z. wrote:
> > > > Hello,
> > > >
> > > > Here is what I'm planning to do to send requests
> > > from
> > > > a program to Ruby cache controller. Please correct
> > > me
> > > > if I'm wrong.
> > > >
> > > > - I'll define a magic instruction in commands.C.
> > > This
> > > > instruction will be called in the program.
> > > > - I'll define an action in *.sm file This action
> > > will
> > > > be handled when the magic instruction is called.
> > > >
> > > > My question is: how should I define the action in
> > > > commands.C so that it's get called when the magic
> > > > instruction is called? For example, if my action's
> > > > name is aa_myAction, would it work if I do the
> > > > following in commands.C?
> > > >
> > > > else if (val == 61) { // my magic number
> > > >   printf("My magic instruction\n");
> > > >   L1Cache_Controller::aa_myAction;
> > > > }
> > > >
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > > _______________________________________________
> > > > Gems-users mailing list
> > > > Gems-users@xxxxxxxxxxx
> > > >
> > >
> > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > > > Use Google to search the GEMS Users mailing list
> > > by adding
> > > "site:https://lists.cs.wisc.edu/archive/gems-users/";;
> > > to your search.
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Gems-users mailing list
> > > Gems-users@xxxxxxxxxxx
> > >
> > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > > Use Google to search the GEMS Users mailing list by
> > > adding
> > > "site:https://lists.cs.wisc.edu/archive/gems-users/";;
> > > to your search.
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Gems-users mailing list
> > Gems-users@xxxxxxxxxxx
> > https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> > Use Google to search the GEMS Users mailing list by adding
> > "site:https://lists.cs.wisc.edu/archive/gems-users/";; to your search.
> 
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding
> "site:https://lists.cs.wisc.edu/archive/gems-users/";; to your search.
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding
> "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.


[← Prev in Thread] Current Thread [Next in Thread→]