Re: [gem5-users] Question about compile after adding global funcs

2019-11-07 Thread Ciro Santilli
On 11/7/19 2:28 PM, yuan wrote: > Hi, All, > > I suffered one problem of multiple definition when compiling, what I did > is adding some new functions I need in a file name my_func.hh under > src/mem/, and in the file cache.cc where I need these functions I use > #include “mem/my_func.hh”,

[gem5-users] Configuring cache bandwidth in Ruby/classical memory system

2019-11-07 Thread Shehab Elsayed
Hello All, I was wondering if there is a way to specify the bandwidths for the different caches in the simulated system? For example, let's say I want to simulate a system that resembles the Ivy Bridge architecture as much as possible which according to this link (

Re: [gem5-users] Question about compile after adding global funcs

2019-11-07 Thread Shougang Yuan
Hi, Francisco Carlos, Thanks for your reply. I do add ifndef in mycode. I have added a lot self-defined fucns before by adding the ifndef-define-endif. BUt this morning, I always suffer from this error. The errors are as follows: build/X86/mem/cache/lib.o.partial: In function `':

Re: [gem5-users] Question about compile after adding global funcs

2019-11-07 Thread Francisco Carlos
Hi, Yuan Did you use #ifdef in your file my_func.hh? You should use #ifdef to avoid multiple definitions and circular includes. So, in the first line of your file my_func.hh, you must insert the following code: #ifndef _MEM_MY_FUNC_HH_ #define _MEM_MY_FUNC_HH_ And in the last line of your

[gem5-users] Question about compile after adding global funcs

2019-11-07 Thread yuan
Hi, All, I suffered one problem of multiple definition when compiling, what I did is adding some new functions I need in a file name my_func.hh under src/mem/, and in the file cache.cc where I need these functions I use #include “mem/my_func.hh”, but when I re-compile the gem5, it always shows

Re: [gem5-users] errors compiling gem5 with GCC 9.2.1 (Ubuntu 19.10)

2019-11-07 Thread Andreas Brokalakis
Hi Jason, I applied the patch and tested with gcc v7 and it compiles ok without boost. Best, Andreas On Thu, Nov 7, 2019 at 3:14 AM Jason Lowe-Power wrote: > Andreas, could you check to make sure this changeset fixes the problem for > you (at least the boost problem). > >

[gem5-users] Running full system with SMT

2019-11-07 Thread Eleanor
Hi, I've been trying to simulate Parsec benchmarks in smt (multiple threads in each core). Referencing this: https://www.mail-archive.com/search?l=gem5-users@gem5.org=subject:%22%5C%5Bgem5%5C-users%5C%5D+Running+full+system+with+SMT%22=newest , in the file src/cpu/BaseCpu.py, I modified the line: