[gem5-users] Issue with integrating DRAMSim3

2022-03-16 Thread Saideepak Bejawada via gem5-users
Following the procedure in https://github.com/gem5/gem5/tree/stable/ext/dramsim3#readme , I integrated DRAMSim3 with the recent Gem5-stable version. But when I execute the following, ./build/X86/gem5.opt configs/example/se.py --cmd=tests/test-progs/hello/bin/x86/linux/hello --cpu-type=TimingSim

[gem5-users] Bringing an additional block into cache

2020-06-24 Thread Saideepak Bejawada via gem5-users
Hi all, I am trying to bring in another block into the cache in addition to the requested block whenever there is a miss. I have written the following the code in the recvTimingReq() in the miss handling part. PacketPtr NewPacket = nullptr;// Creating a new packet RequestPtr req = new Request(

[gem5-users] Re: Bringing an additional block into cache

2020-06-24 Thread Saideepak Bejawada via gem5-users
Hi Abhishek, Thanks for the reply. But I want to do this without modifying the prefetcher part. ___ 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_n

[gem5-users] Re: [m5-users] question about how to differentiate L1 and L2 cache in cache class

2020-06-25 Thread Saideepak Bejawada via gem5-users
Hi, You have to add an option 'Level' in cache/Cache.py file so as to differentiate between different caches. Then you have to goto common/Caches.py and set the level for all the declared caches. Then in the cache/base.cc declare a variable and initialize with the Level option. You can start us

[gem5-users] Address translation in cache

2020-06-30 Thread Saideepak Bejawada via gem5-users
Hi all, I am trying to initiate another request in the cache along with the received request for a block. The problem is that the translated address for the requested block with all the checks performed will be given to cache. Now for the additional request which I want to create, I was trying

[gem5-users] Re: Address translation in cache

2020-07-01 Thread Saideepak Bejawada via gem5-users
Hello Eliot, Thanks for the reply. Yes, you are right. But even in the case when both the addresses map to the same page, the entire page might not be allocated for the process right? It may use only half of the page. Say it has an array of just 1KB(page size - 4KB). Now if the additional reque

[gem5-users] Re: Address translation in cache

2020-07-01 Thread Saideepak Bejawada via gem5-users
I want to check if the address I have generated is valid or not. For that, we have to access the page table and also perform other checks if there are any. All the ones which are done while translation. If the page is swapped out, or if the address is not valid, the request will be dropped.

[gem5-users] Re: Address translation in cache

2020-07-01 Thread Saideepak Bejawada via gem5-users
Thanks. I will try that. How can I add data TLB to the cache? Is it possible using CacheConfig.py? ___ 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

[gem5-users] Re: Address translation in cache

2020-07-02 Thread Saideepak Bejawada via gem5-users
Alright. Thanks a lot Eliot. ___ 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] Problem passing a cache object as parameter

2020-07-02 Thread Saideepak Bejawada via gem5-users
Hi all, I was trying to pass BaseCache object as a parameter to TimingSimpleCPU. Here's what I did: 1. In TimingSimpleCPU.py, I have added a parameter name 'cache': from Cache import BaseCache cache = (BaseCache(),"Passing cache object") 2. I have declared a pointer for this cache object

[gem5-users] Regarding prefetch requests

2020-07-03 Thread Saideepak Bejawada via gem5-users
Hi all, To avoid sending the response to CPU in case of a prefetch request, while giving the response in recvTimingResp(), it will check the target source, if it is a prefetch it will delete the req and the packet. Now, if a prefetch request from L1 is a miss in L1 and as well as a miss in L2.

[gem5-users] M5 reserved opcode 2 ignored

2020-07-10 Thread Saideepak Bejawada via gem5-users
Hi all, I was trying to add a pseudo instruction(add instruction). I have been following this tutorial http://gedare-csphd.blogspot.com/2013/02/add-pseudo-instruction-to-gem5.html This is with respect to older gem5 versions I guess. Some of the files have been renamed and I made corresponding ch

[gem5-users] Re: M5 reserved opcode 2 ignored

2020-07-11 Thread Saideepak Bejawada via gem5-users
Hello Gedare, Thanks for the reply. I am not sure why I can't see the reply here. Re-building the gem5 worked. I was busying making changes in many files that I forgot to rebuild. Now it is working. I have one more question. Can I use a variable which is present in the cache, here in the pseud

[gem5-users] Can we use our own debug flags in fs mode?

2020-07-12 Thread Saideepak Bejawada via gem5-users
Hi all, I was trying to use my own debug flag while running in full system mode. I got an error(Not a valid PC error) while doing it. Initially, I thought there might be an error in my code. But strangely, the code runs fine if I don't specify my debug flag. So I was wondering if this because o

[gem5-users] Re: Can we use our own debug flags in fs mode?

2020-07-13 Thread Saideepak Bejawada via gem5-users
Hi Gabe, Thanks for the reply. I guess prefetcher is varying the output every time. Am I right?. Regarding the debug flags, the code works perfectly in SE mode, even in FS mode if I don't specify any flag it runs fine. The problem comes only if I specify any flag. If I specify an already exist

[gem5-users] Regarding SMT

2020-07-18 Thread Saideepak Bejawada via gem5-users
Hi all, I have a few questions regarding SMT in gem5. 1. I tried running SMT in SE mode. The option '--smt' says "Only used if multiple programs are specified. If true, then the number of threads per CPU is the same as the number of programs." Does this mean I don't have to set the no.of hardwa

[gem5-users] Re: Use checkpoints and fast-forward simultaneously and --outdir option support

2020-07-22 Thread Saideepak Bejawada via gem5-users
Hi Jinpeng, What is the problem that you are facing with --outdir? - Saideepak. ___ 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] Re: Regarding SMT

2020-07-22 Thread Saideepak Bejawada via gem5-users
Thanks, Jason. I should have given the binaries in ' '. When I do that I am getting the error as mentioned in the link. Are there any other ISAs which do not support SMT as of know?. ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe sen

[gem5-users] Need help in compiling the kernel

2020-07-22 Thread Saideepak Bejawada via gem5-users
Hi all, I am trying to get the PID information from Processinfo: :pid . I got stuck at the panic which says 'thread info not compiled into kernel'. I have been looking into older posts regarding this. https://lists.gem5.org/archives/list/gem5-users@gem5.org/thread/MLWTK3SQMOVZ5IKLVV2L24IVPFA5T

[gem5-users] Re: Use checkpoints and fast-forward simultaneously and --outdir option support

2020-07-22 Thread Saideepak Bejawada via gem5-users
Hi Jinpeng, I suspect you are giving it in the wrong place. You should specify the option right after 'build/ISA/gem5.opt' in the command. Hope this helps. Thanks, Saideepak. ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an ema

[gem5-users] Re: Need help in compiling the kernel

2020-07-22 Thread Saideepak Bejawada via gem5-users
Thanks a lot, Ciro. That was very helpful. ___ 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] Unable to build ALPHA in the latest gem5

2020-07-23 Thread Saideepak Bejawada via gem5-users
Hi all, I am unable to build gem5.opt for ALPHA. Error: Cannot find variables file /home/saideepak/gem5/build/variables/ALPHA or default file(s) /home/saideepak/gem5/build_opts/ALPHA Is there any change in the latest gem5? I could see NULL ISA instead of ALPHA in the build_opts directory and I c

[gem5-users] Re: Unable to build ALPHA in the latest gem5

2020-07-23 Thread Saideepak Bejawada via gem5-users
Thanks Abhishek. ___ 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] Re: Regarding SMT

2020-07-26 Thread Saideepak Bejawada via gem5-users
Hi Jason, How do I run two programs in SMT using FS? I did that using se.py but I am not sure how to do it in FS mode? Somewhere I read, it can be done by running both the processes in the background. Something like " ./prog1 & and ./prog2 & ". Do you think that is the correct way? Or is there

[gem5-users] Error creating a SimObject

2020-08-01 Thread Saideepak Bejawada via gem5-users
Hi all, I was trying to create a SimObject(named Buffer) and pass it as an argument to another. I could build the gem5 without errors, but while running, I encountered the following error: TypeError: (): incompatible function arguments. The following argument types are supported: 1. (self:

[gem5-users] Context information at LLC

2020-08-22 Thread Saideepak Bejawada via gem5-users
Hi all, I can see that the context information is not carried till the LLC. I want the contextId() to be present at the last level also. Is there any way to maintain the contextId at LLC? Any comments are welcome. Thanks, Saideepak. ___ gem5-users mai

[gem5-users] RPCC instruction in ALPHA

2020-09-05 Thread Saideepak Bejawada via gem5-users
Hi all, I came to know that gem5 doesn't support ALPHA anymore. But my question is about ALPHA in older versions. Did ALPHA support RPCC instruction? Thanks for your time and any comments are welcome. Regards, Saideepak. ___ gem5-users mailing list --

[gem5-users] Few questions about cache inclusiveness

2020-09-07 Thread Saideepak Bejawada via gem5-users
Hi all, I found that the classic caches in gem5 are either mostly inclusive/mostly exclusive. I need the cache to be strictly inclusive i.e if a block gets evicted from L2 that has to be evicted from L1 too. Apart from that, I have done some of my work in classic caches already. 1. Is it possib

[gem5-users] Re: Few questions about cache inclusiveness

2020-09-07 Thread Saideepak Bejawada via gem5-users
Thank you, Nikos. I will try both of them. ___ 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] Re: Running mutiple programs on different cpu cores

2020-09-11 Thread Saideepak Bejawada via gem5-users
Hello Jaspinder, To run two programs on two different cores in SE mode, use -c 'prog1;prog2' - Saideepak ___ 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/%(

[gem5-users] Running two programs parallely on two different cores in FS

2020-09-12 Thread Saideepak Bejawada via gem5-users
Hi all, How do I run two programs parallelly on two different cores in FS? Using ' taskset -c 0 ./prog1 && tasket -c 1 ./prog2 ' didn't work. The first prog worked, but second one gave 'set affinity: invalid argument'. Similar thing happened with '/sbin/m5 pin 0 ./prog1' and 'sbin/m5 pin 1 ./pr

[gem5-users] Re: Running two programs parallely on two different cores in FS

2020-09-12 Thread Saideepak Bejawada via gem5-users
Hi Chandrahas, Thanks for the reply. But in my case, I cannot launch those programs as threads( as threads share the same address space), they have to be two separate programs(with different address space). - Saideepak ___ gem5-users mailing list -- g

[gem5-users] Re: Running two programs parallely on two different cores in FS

2020-09-12 Thread Saideepak Bejawada via gem5-users
You can do that in SE mode by specifying the programs using -c 'prog1;prog2' and specifying number of cores using -n 2. But I am still facing the same issue in FS(one program is executed but the other says invalid argument to sched_affinity). - Saideepak _