Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast Simulation is not working #8

Open
behzaddavoodnia opened this issue Oct 22, 2019 · 2 comments
Open

Fast Simulation is not working #8

behzaddavoodnia opened this issue Oct 22, 2019 · 2 comments

Comments

@behzaddavoodnia
Copy link

I think there is a problem with fast simulation. All of input attributes is correct and I'm trying to simulate the examples but I received this err message:
Please make sure that all the args are input correctly.
I'll be so happy if you show an example for me.

@LingYeAI
Copy link

I found an interesting thing, if you open SimplePIM.cs, you may find code like this:
if (command.Equals("c", StringComparison.OrdinalIgnoreCase) || command.Equals("cycle", StringComparison.OrdinalIgnoreCase))
{
Config.sim_type = SIM_TYPE.cycle;
Config.sim_cycle = UInt64.Parse(args[i + 1]);
DEBUG.WriteLine("cycle success.");
}
Usage();
Environment.Exit(1);
which means if you give the parameter '-c',program will just print something and exit.
if you put
Usage(); Environment.Exit(1);
in an 'else',this program may work.
btw, one of the examples the author provide can't work.The whole program and 'readme' made me feel that the author didn't want others to use it.

@m1chaelyeung
Copy link

I found an interesting thing, if you open SimplePIM.cs, you may find code like this:
if (command.Equals("c", StringComparison.OrdinalIgnoreCase) || command.Equals("cycle", StringComparison.OrdinalIgnoreCase))
{
Config.sim_type = SIM_TYPE.cycle;
Config.sim_cycle = UInt64.Parse(args[i + 1]);
DEBUG.WriteLine("cycle success.");
}
Usage();
Environment.Exit(1);
which means if you give the parameter '-c',program will just print something and exit.
if you put
Usage(); Environment.Exit(1);
in an 'else',this program may work.
btw, one of the examples the author provide can't work.The whole program and 'readme' made me feel that the author didn't want others to use it.

Excuse me, I have met a problem of how to generate the trace file in a required format as below. Can you tell me what tool should I use and how to do it? Thank you!
18|rdip t7, %ctrl153,
19|st t7, SS:[rsp + 0xffffffffff8]|W|D=0x00000000004001ba A=0x7fffffffee08
20|subi rsp, rsp, 0x8
21|wrip , t7, t1
22|st r15, SS:[rsp + 0xfffffffff8]|W|D=0x0000000000000000 A=0x7fffffffee00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants