[gem5-users] Use of std::ostream in OutputStream class

2022-02-10 Thread Scott Blankenberg via gem5-users
Hello all, I have a question about the _stream variable of the OutputStream class(base/output.hh, base/output.cc) I had a question about the variable definition. std::ostream *const _stream; Why do we use std::ostream vs std::ofstream? The reason I am asking is because I cannot seem to find

[gem5-users] Re: findOrCreate function

2022-02-10 Thread Scott Blankenberg via gem5-users
Hello Jason, Following the example in the elastic trace code seems to work for me. Thanks ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] findOrCreate function

2022-02-09 Thread Scott Blankenberg via gem5-users
Hello all, Has anyone used the findOrCreate Gem5 function for opening custom file streams? For example in src/cpu/base.cc we see that this function is used in the constructor for BaseCPU const std::string fname = csprintf("ftrace.%s", name()); functionTraceStream =

[gem5-users] Destructor for BaseCPU

2022-02-09 Thread Scott Blankenberg via gem5-users
Hello, In src/cpu/base.cc we have the following destructor: BaseCPU::~BaseCPU() { } By default nothing is inside of it. However, when I put code inside, it does not seem to be executed at any point. Based on some previous threads I have seen on the forums, it seems that the destructor for

[gem5-users] O3CPU Branch Predictor Similation

2021-09-23 Thread Scott Blankenberg via gem5-users
Dear all, I looked at fetch.cc for the O3CPU and in particular looked at the function which calls the branch predictor. bool Fetch::lookupAndUpdateNextPC(const DynInstPtr , TheISA::PCState ) Here are the first couple of lines for quick reference: bool predict_taken; if

[gem5-users] Re: Access to gem5 101 course

2021-09-22 Thread Scott Blankenberg via gem5-users
Hello Javed Osmany, Did you try clicking the links to the different parts of the course? Thanks, Scott Blankenberg ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org

[gem5-users] Trace CPU speedup

2021-09-21 Thread Scott Blankenberg via gem5-users
Dear all, For those of you who have used the TraceCPU to replay elastic traces, how fast was the replay mechanism? In other words how much faster is it to capture the trace and replay it with TraceCPU versus just re-simulating with O3CPU? This question is somewhat open-ended and variable,

[gem5-users] Access to gem5 101 course

2021-09-20 Thread Scott Blankenberg via gem5-users
Dear all, Can anyone still access the gem5 101 course at : https://www.gem5.org/documentation/learning_gem5/gem5_101/#:~:text=Branch%20prediction%20and%20predication%20are%20two%20common%20techniques,how%20to%20incorporate%20gem5%20into%20your%20research%20process. When I click the links I get

[gem5-users] Re: How to extract instruction traces

2021-09-16 Thread Scott Blankenberg via gem5-users
Update: Since then I have used the --debug-flags=ExecEnable,ExecUser,ExecKernel to extract a trace file. However, I can't seem to find away to clip the output to just contain the instruction addresses. There does not seem to be an option for this. Does this mean I will have to modify the

[gem5-users] How to extract instruction traces

2021-09-15 Thread Scott Blankenberg via gem5-users
Dear all, I was wondering if there was an easy way to extract the instruction traces for a given benchmark using GEM5. If so, is there a tutorial on how to do so? Or any other pointers someone could give me? Going through the GEM5 documentation, I have not found a straight-forward way yet. I