Multi2Sim / multi2sim

Multi2Sim source code
GNU General Public License v3.0
115 stars 66 forks source link

Fastforward is invalid in x86 #52

Open zyyang1111 opened 7 years ago

zyyang1111 commented 7 years ago

Hi! Could any one help with this issue. I just create a simple x86 configuration file (x86-config.ini): [ General ] Cores = 1 FastForward = 0

Then I run for a hello world application with ./m2s --x86-sim detailed --x86-config x86-config.ini hello.c

However, I got the following error indicating that FastForward is an invalid variable...

Error: x86-config.ini: Section [General], invalid variable 'FastForward'

I don't know where I did wrong...

Thanks in advance..

ghost commented 5 years ago

Looks like this option is delete from source code, I don't know it's on purpose or a mistake.

You can try add this into line 145 of multi2sim/src/arch/x86/timing/Cpu.cc and compile again: num_fast_forward_instructions = ini_file->ReadInt(section , "FastForward", 0);

It should run without error but I didn't test if it works in the right way.

ghost commented 5 years ago

num_fast_forward_instructions = ini_file->ReadInt64(section , "FastForward", 0);

And it seems not work