Questions tagged [gem5]
The gem5 simulator is a modular platform for computer system architecture research, encompassing system-level architecture as well as processor microarchitecture.
465
questions
0
votes
0
answers
20
views
build gem5 on ubuntu22.04 protoc version mismatch
Trying to build gem5 on ubuntu 22.04.. have installed all the dependencies required other than HDF5 C++ libraries..
protoc version is 3.20.3
ubuntu is 22.04.3 LTS
$ which protoc
/home/jasneets/...
0
votes
0
answers
6
views
how to get function name and structure details in gem5-21.2 when you run a program
when I run a program in gem5-21.2 on armv8 architecture, how can I get function name like A1_B1 and structure like A1_B1->C0 details through the debugflags.
I hope get a specific procedure through ...
0
votes
0
answers
42
views
Compile C code and simulate using gem5 SE
I am new to Gem5, I am trying to compile my C code and simulate it on an ARM like system using SE.
First, to compile my C code, I used SCons (without any additional parameters). In the SConstruct ...
0
votes
0
answers
28
views
Meltdown simulation & analysis using gem5 FS mode
I am currently working on a meltdown simulation & analysis using the fs.py script. Using se.py is not possible, because there is no kernel space mapping.
As for the meltdown test code, I'm using ...
0
votes
1
answer
62
views
Can't build gem5 on Manjaro Linux
I have installed the python and base-devel packages necessary for building, but whenever I try to run scons with
python `which scons` build/X86/gem5.opt -j9
it gives me this error:
scons: Reading ...
3
votes
1
answer
57
views
Modifying go to use Gem5 m5ops: go tool dist shows import message then quit
I am pretty new to golang.
I'm trying to insert some C function calls (specifically m5ops) to golang's runtime (specifically src/proc.go).
I was trying to use cgo, which results in adding this import ...
0
votes
0
answers
32
views
How to port design implementations made on gem5 to a realtime RISCV hardware
I have created a project on gem5 modifying the cache replacement policies I would like to port the design implemented on gem5 to a real-time RISCV processor. How do I do that should I first port it to ...
0
votes
0
answers
29
views
Creating Packet in GEM5 in Garnet Standalone
does anyone knows how to create a new Packet in Garnet Standalone in GEM5 and send it from desired router to desired location. Suppose I want to create a Packet and I want to send it from router id 5 ...
0
votes
0
answers
37
views
No filesystem permissions within gem5 SE-mode
In learning how to use gem5, I'm currently following the gem5 bootcamp 2022 examples.
Specifically, an example that lists the contents of a directory (gem5 bootcamp 2022: Using SE mode, traffic ...
0
votes
2
answers
67
views
Network not found when running SPEC2017 in GEM5 se mode
When I compile 520 in x86 config file and run them use the command line:
./omnetpp -c General -r 0 > omnetpp.General-0.out 2>> omnetpp.General-0.err
it works fine. But when I run the same ...
0
votes
0
answers
23
views
How can I dump gem5 Ruby caches tags?
I'm using gem5 with ruby system -X86 with MESI_Two_Level.
I want to occasionally dump the L1 cache tags and flush the cache (every X instructions).
I understand that checkpointing won't work with ...
0
votes
0
answers
26
views
How to compile riscv64 multithread application to run on gem5
i tried compiling gem5 test program
#include <iostream>
#include <thread>
using namespace std;
/*
* c = a + b
*/
void array_add(int *a, int *b, int *c, int tid, int threads, int ...
0
votes
0
answers
89
views
How do I fix this Fortran text parser for Lapack within Gem5
After about an hour, I need to ask for some help.
I've downloaded the math benchmark Lapack to run within a few CPU configurations for the simulation tool Gem5, which lets you build X86 computers and ...
0
votes
1
answer
27
views
Cause of IOBus Errors in gem5
I have had this error a few times over the course of using gem5. The error that gets thrown is typically something along the lines of:
build/<ISA>/mem/xbar.cc:360: fatal: Unable to find ...
1
vote
0
answers
19
views
How do I fix extraDataValid error while trying to run a test program on a gem5 simple ARM configuration with cache?
I am learning how to use gem5. I followed the learning_gem5 book and successfully ran the suggested test programs on an ARM simple configuration without cache. For my research, I need to test caches ...
0
votes
0
answers
58
views
GEM5 ARM fs meet panic: VFS:Unable to mount root fs on unknown-block(0,0) when trying to do a full arm system simulation by gem5
command line:
build/ARM/gem5.opt --debug-file=dvfs_debug.log ./configs/example/arm/fs_power.py --kernel=./system/binaries/vmlinux4_4_10 --disk ./system/disk/aarch64-ubuntu-trusty-headless.img --cache ...
0
votes
0
answers
41
views
Hi, i'm new to gem5. is there a way to make simulation for a CPU-GPU heterogeneous computing?
i'm new to gem5.
May i ask is there a way to make simulation for a CPU-GPU heterogeneous computing?
the gem5-gpu is too old and poorly maintained, so it is better to use GCN3.
For example, i want to ...
0
votes
0
answers
31
views
Segmentation fault when using dsent in GEM5
I have successfully executed the cmake and make command to build target in dsent of gem5
But it comes a segmentation fault as below when I execute import dsent
Python ver: 3.10
Segfault happened at: ...
0
votes
0
answers
26
views
Using DSENT to model power & area of NoC
I'm tring to use DSENT in /ext/dsent directory to model power and area of my designed NoC, I have called cmake and it executed all right, but next I followed the guidance of README which says
=========...
0
votes
0
answers
43
views
Compile error(undefined reference to ~ ) with static linking
I'm trying to build(compile) the graph500 benchmark in gem5 se mode.
But there is a problem and the following error occurs.
First I'm using the latest version (version 3) of the graph500, and I'm ...
0
votes
0
answers
88
views
Memory accesses giving infinite loop on gem5 se.py
I want to compare benchmarks for different sizes of L1 and L2 cache, for that I have set up gem5 along with the benchmark program 401.zip2 in this repository.
These are the variable that I use
export ...
0
votes
0
answers
38
views
how to use protobuf to encode in gem5-21.2
i use the command like this
build/ARM/gem5.opt --debug-flags=ElasticTrace --debug-file=ET.out configs/example/se.py --cpu-type=DerivO3CPU --caches --cmd=a.out --options=$M5_PATH/data/bzip2/lgred/input/...
0
votes
0
answers
60
views
Gem5 FS mode, changed the TimingSimpleCPU to O3CPU, the same script cannot run
I just used the Gem5 in the FS mode, and I want to run my application through '--script' option and 'm5 readfile'. The problem is I can run my script in TimingSimpleCPU, but when I upgrade it into ...
0
votes
1
answer
170
views
Trying to build Gem5 on ubuntu 22: native-elf-format: Permission denied or not found
I am trying Gem5 for the first time and I am using Learning_Gem5 as guide.
I have a dual boot system (Windows 11 and Ubuntu 22.04.2) and I am doing this on Ubuntu.
When I reach this step
python3 `...
0
votes
2
answers
71
views
gem5 connecting 2 memory devices not work
I'm trying to simulate a hybrid memory controller in gem5, and when i connect the 2 memory devices to the membus, it seems only 1 memory device is recognized. When i run a c program that malloc space ...
0
votes
1
answer
43
views
How to use --command-line-file or --command-line options in gem5 FS mode?
I am trying to test a series of benchmarks on gem5 in FS mode, but it's wasting time to launch os, connect terminal and input the command line. Is there any way to run benchmarks automatically? And ...
1
vote
1
answer
62
views
how to warmup the system when evaluating prefetcher's performance with gem5?
Recently, I'm implement prefetch algorithm with gem5, and I want to warmup the system for a while before counting the performance. I try to use the -W WARMUP_INSTS paramenter to warmup my system with ...
0
votes
0
answers
25
views
gem5-VEGA related issues
I am currently trying to carry out experiments using gem5.I compiled VEGA_X86/gem5.opt using gcn-gpu images on source gem5-v22.0.0, but it only seems to support VEGA10 (gfx900,gfx902), so my first ...
0
votes
2
answers
59
views
How to define a new debugflag in gem5?
gem5 version:v21.2.0.0,add a new debugflag in src/mem/cache/SConscript,
recompile with scons/build/ARM/gem.opt,
and in build/ARM/debug file still don't have new debugflag.hh
in this version, how to ...
0
votes
0
answers
32
views
is there a way in Gem5 to make the binary code interact with the cache?
I have added a simple code in the cache.cc source code in gem5. I wish this simple code to be executed only for part of my simulated binary. I have tried shared-mem, and extern bool, I could not ...
0
votes
1
answer
78
views
Running the benchmark with a multicore simulator will only get the same data?
When using a CPU simulator such as sniper or gem5 to run a benchmark program such as SPEC2006 in conjunction with the MCPAT power consumption model, whether a benchmark program only gets one set of ...
0
votes
1
answer
92
views
Gem5: No workload specified
I am having some trouble running the simulation in gem5. I keep getting
no workload specified
# Set the workload and benchmark
process = Process()
process.cmd = ['gzip', '-k', 'test.txt']
...
-2
votes
1
answer
176
views
A full-system simulation running gem5 is missing files
I am trying to run a full system simulation of gem5, but I found that the full system file of X86 on the official website can no longer be downloaded, can someone help me?
thanks
I need a compressed ...
0
votes
0
answers
47
views
Analyzing the traces of Gem5 using CommMonitor
I need memory traces for simulation. I am using gem5 simulator for this purpose. Gem5 version is 22.0, I am simulating ARM ISA in SE mode. Memory traces are generated using commMonitor. I have used ...
0
votes
0
answers
50
views
Getting the error Couldn't find hdf5 c++ dependies while installing GEM5 on my pc with os ubuntu 20.04
While i was running the - scons build/X86/gem5.opt command on my terminal it got terminated with following output.
enter image description here
could anyone please help me with this error.
After the ...
0
votes
0
answers
53
views
gem5 pci device CopyEngine
Hi I am trying to study PCI device in gem5 system. I am trying to use a ready device from gem5 /dev folder. However, I am not sure how to use the PCI device. Is there anyone can give me some hits ...
0
votes
0
answers
39
views
Can an end point is connected to more than one router in a NoC topology in gem5 garnet3.0?
I am running gem5 version 22.0.0.2. I operate Garnet in a standalone manner in conjunction with the Garnet Synthetic Traffic injector. I want to emulate a routerless NoC so I guess I need to connect ...
0
votes
1
answer
67
views
How to get the physical address of the program running with gem5 emulator?
I'm running a piece of my program on gem5. I want to get the location of a data in the L2 cache, that is, its cache index.
I can get the corresponding virtual address and translated physical address ...
0
votes
0
answers
55
views
gem5 - linking to external library's header/binaries
We are trying to build gem5 with an external library (redis server). We tried passing the library's binary file paths as LINKFLAGS to the build. But the build is failing and the error states that the ...
0
votes
0
answers
108
views
How does gem5 determine whether an address is writable?
I want to check if an address is writable in gem5. This attribute appears to be recorded in the TLB.
There is a write_able variable in the TLB entry. It seems to represent whether the data can be ...
0
votes
0
answers
96
views
How does gem5 run my own code in fs mode?
I'm trying to use the full system to do some experiments.
I used the boot-exit image and vmlinux-5.4.49 provided by this website(https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html)
...
0
votes
0
answers
37
views
How to simulate two processes sharing memory in gem5?
I want to simulate the situation where two processes have shared memory in gem5.
If it is a real machine test, I can use mmap, or doopen to achieve. But what should be done when using gem5 for ...
0
votes
0
answers
11
views
What do src_requestor_ID and task_ID refer to in gem5?
I see that there is src_requestor_ID and task_ID in CacheBlk class.
I'm curious what this refers to?
The note in gem5 refers to:
* @param src_requestor_ID The source requestor ID.
* @param task_ID ...
0
votes
1
answer
35
views
Defining an instruction that accesses memory directly in GEM5 without accessing the caches
I am using GEM5 and I want to define an instruction that accesses memory without accessing the caches. I know how to add a new instruction and I was successful in adding it and running it with a ...
0
votes
0
answers
102
views
ARM Full-Systen GEM5 Kernel Panic
I am currently working on Gem5 and I'm having problems when I run ARM full system simulations. When it comes to running the scripts already given by Gem5 including their resources, everything happens ...
0
votes
0
answers
80
views
How to introduce an MSR in gem5 and integrate it with Linux kernel?
I am trying to evaluate performance of custom prefetching models for Intel x86 architecture for which I would like to set and read some MSR registers. We are using Gem5 and Linux 5.4.84 kernel on a ...
0
votes
0
answers
39
views
Gem5 Stable 22.0 X86MinorCPU not included by default
Is there a reason why an X86MinorCPU was not included with the recent change to CPU models?
Is there anything wrong with just adding it to X86CPU.py ?
from m5.objects.BaseMinorCPU import BaseMinorCPU
...
1
vote
3
answers
76
views
How many threads to use when building gem5?
When building gem5, the user can use the -j flag to set the number of threads to use.
In the documentation on building gem5, this note is included:
Note: I’m using -j9 here to execute the build on 9 ...
5
votes
2
answers
385
views
Is there a list of unused binary opcodes for X86_64 (amd64)
I am trying to add custom instructions in X86_64 (amd64) ISA. I will create a binary using these instructions and then I'll run it in gem5 simulator. To find the list of unused opcodes, I am referring ...
0
votes
1
answer
153
views
How can I edit a binary file to change the machine code of the program?
I am trying to add a custom instruction to the x86_64 (amd64) ISA. I want to create a custom binary file for this. I want to add a custom instruction in the file which I will run on the gem5 simulator....