Questions tagged [gem5]

The gem5 simulator is a modular platform for computer system architecture research, encompassing system-level architecture as well as processor microarchitecture.

Project homepage: http://gem5.org

466 questions
3
votes
1 answer

Access pagemap in gem5 FS mode

I am trying to run an application which uses pagemap in gem5 FS mode. But I am not able to use pagemap in gem5. It throws below error - "assert(pagemap>=0) failed" The line of code is: int pagemap = open("/proc/self/pagemap", O_RDONLY); …
Rashmi
  • 73
  • 5
3
votes
2 answers

How to attach multiple disk images in a simulation with gem5 fs.py?

At https://www.mail-archive.com/gem5-users@gem5.org/msg15233.html Jason mentioned the technique of attaching two disk images to restore a checkpoint and run a different benchmark. Is it possible to specify multiple disk images when using fs.py?…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
3
votes
3 answers

How to run a dynamically linked executable syscall emulation mode se.py in gem5?

After How to solve "FATAL: kernel too old" when running gem5 in syscall emulation SE mode? I managed to run a statically linked hello world under certain conditions. But if I try to run an ARM dynamically linked one against the stdlib…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
3
votes
1 answer

How to count the number of CPU clock cycles between the start and end of a benchmark in gem5?

How to count the number of CPU clock cycles between the start and end of a benchmark in gem5? I'm interested in all of the following cases: full system userland benchmark. Maybe the m5 guest tool has a way to do it? bare metal benchmark. When gem5…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
3
votes
1 answer

Is it ok to run python file, edit it, then run it in second terminal

I'm running a simulation (more on this in a sec) and one of the files for this simulation is a python file that contains configuration details. I want to run multiple versions of this simulation, but I don't know if running one simulation, opening…
Daniel Handojo
  • 612
  • 5
  • 19
3
votes
1 answer

UART communication in Gem5 with ARM Bare-metal

I am currently working with Gem5 and I have to access via UART from my Host to ARMv8 bare-metal option, so i tried lots way but i stocked yet. could you please let me know, how can i map my host's Serial port to ARMv8's Serial Port in bare-metal…
3
votes
1 answer

How can I compile and run a C program (with OpenMP) in gem5 Full System?

I am an undergraduate student working on my thesis about parallel programming. I am using OpenMP model. Now i want to use gem5 for measure performance. That's why i install gem5 Full System successfully by following…
3
votes
3 answers

Linking m5ops.h to a C project

I have a C application that is using a function from the Gem5 operations called "m5_dumpreset_stats()". So, I did the following, I included the header file of this function: #include "../gem5-stable/util/m5/m5op.h" then in my source file I called…
A.nechi
  • 521
  • 1
  • 5
  • 15
3
votes
3 answers

What is the best way to measure time in gem5 simulation environment

I am running a small matrix multiplication program in gem5 simulation environment and want to measure execution time of the program. The program is in Fortran and I use cpu_time before and after the matrix multiplication routine to get the time. But…
Tania
  • 418
  • 3
  • 20
2
votes
1 answer

gem5: how to use openssl library in SimlationObject?

I'm try to use Openssl library for gem5. My SimObject code include two header on Openssl. #include #include But there is a link error. Error message is undefined reference to `EVP_CIPHER_CTX_new' undefined reference…
retis
  • 21
  • 1
2
votes
0 answers

Error with syscall 318 for gem5, when executing with a multi agent reinforcement learning algorithm

I'm trying to execute a python algorithm (https://github.com/shariqiqbal2810/maddpg-pytorch) on gem5 in se mode in X86. But, at first I got an error syscall 318 out of range. So, I tried to import the get random function into the syscalltlb64…
user17183892
2
votes
3 answers

gem5 build fails with " Embedded python library 3.6 or newer required, found 2.7.17."

I cannot build gem5, when I build gem5,the terminal shows " Embedded python library 3.6 or newer required, found 2.7.17.".However,when I check my python version, I find my python version is 3.6. python --version Python 3.6.7
Ustinian
  • 39
  • 6
2
votes
1 answer

Warning During Compilation of Gem5

i am using ubuntu18.04.5 and i have installed all the requisites and successfully compiled gem5 following the guide: https://www.gem5.org/documentation/learning_gem5/introduction/ But during the compilation I get 2 warnings: *** Summary of Warnings…
Gpp22
  • 43
  • 1
  • 9
2
votes
0 answers

How to implement an ISA in gem5? For example, I wanna make my gem5 to support the Cambricon ISA as it supports MIPS

I want to implement a new ISA called MyISA, for example. I made a new directory called "my" under gem5/src/arch, and copy all the files in gem5/src/arch/mips to the new directory gem5/src/arch/my. Then I modified the files under gem5/src/arch/my, to…
Young Lv
  • 21
  • 1
2
votes
1 answer

Difference between committed instructions and committed ops

In stats.txt file i find that difference between commited instructions and Ops system.cpu_cluster.cpus.committedInsts 5028 # Number of instructions committed system.cpu_cluster.cpus.committedOps 5834 …
1 2
3
31 32