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
|