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
0
votes
1 answer

How to modify a file under src/python and run it without rebuilding in gem5?

If you modify a file under src/python, then a rebuild is necessary, unlike modifications to configs/ That makes making changes under that directory very painful, since even the clean rebuild takes several seconds. Is there a way to avoid the…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
0
votes
0 answers

Unable to build gem5 in MacOS High Sierra 10.13.6

I am receiving this error message when I run scons build/ALPHA/gem5.opt I have followed all the steps listed on gem5 website. Undefined symbols for architecture x86_64: "PyTrafficGen::start(pybind11::object)", referenced from: …
Sahil
  • 428
  • 2
  • 7
  • 15
0
votes
1 answer

What are the gem5 annotations mops magic instructions and how to use them?

I was studying the gem5 m5ops implementation, when I came across a related annotation feature that is also exposed through magic instructions / memory accesses:…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
0
votes
0 answers

Data Pattern distribution analysis using Gem5

I am new to gem5. I am running SPEC2006 CPU benchmarks on gem5. What I want is to analyse the distribution different patterns in terms of ratio of 1's and 0's or different states '11', '00' etc. on memory accesses for different benchmarks. What…
Imran
  • 11
0
votes
1 answer

How to boot the Linux kernel with initrd or initramfs with gem5?

With QEMU, I can use either use -initrd '${images_dir}/rootfs.cpio for the initrd, or pass the initramfs image directly to -kernel Image. But if I try the initramfs image with gem5 fs.py --kernel Image it fails with: fatal: Could not load kernel…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
0
votes
3 answers

How to switch CPU models in gem5 after restoring a checkpoint and then observe the difference?

I want to boot the Linux kernel in full system (FS) mode with a lightweight CPU to save time, make a checkpoint after boot finishes, and then restore the checkpoint with a more detailed CPU to study a benchmark, as mentioned at:…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
0
votes
1 answer

Why doesn't the Linux kernel see the cache sizes in the gem5 emulator in full system mode?

I want to play around with cache sizes in my gem5 simulator to see how it affects performance of programs, and possibly tune programs at runtime. As a sanity check, I tried to check that the command lines arguments I used were working , and so I…
Ciro Santilli
  • 3,693
  • 1
  • 18
  • 44
0
votes
0 answers

ARM Cortex A9 Startup Code and Interrupt Setup

I try to program Cortex-A9 in a bare metal fashion. I use the 'hello world' code from: https://github.com/tukl-msd/gem5.bare-metal which works. However, I'm not able to get interrupts working. When I create an Interrupt with Interrupt e.g. #47 my…
Matthias
  • 135
  • 10
0
votes
1 answer

Add prefetch capability to target of arm-linux-gnueabi-g++

The following line of code has been cross-compiled by using arm-linux-gnueabi-g++-4.7 on Ubuntu host machine. The prfm instruction was supposed to be generated for the particular line, but it was not. __builtin_prefetch(&some_variable,0,3); The…
0
votes
1 answer

How to associate stats printings to m5ops in FS mode of Gem5?

In SE mode, it's much easier to associate each stats printing to its corresponding m5op. However, in FS mode where there are multiple (tens or even hundreds of) stats printings take place in the same 'stats.txt' file; How can we identify the…
tod
  • 1,539
  • 4
  • 17
  • 43
0
votes
1 answer

Uninstalling or creating multiple gem5 simulations

I recently downloaded gem5 and used scons to build a linux simulation with the ARM architecture. That worked, and now I want to make an intel x86 processor. Do I need to remove the existing ARM simulation? if not, can I maintain two different…
0
votes
2 answers

tools to study real time scheduling in embedded systems

I worked with GEM5 software simulator where I had the task to change the linux kernel according to the scheduling algorithm that I want to use. No I want to switch to the embedded systems my target is a real time signal processing on altera FPGA…
Ben
  • 329
  • 1
  • 3
  • 17
-1
votes
1 answer

Using a Skewed Associative Cache in Gem5

I am trying to learn how to implement an L2 cache with a skewed associativity. I see there is already implemented classes for skewed associativity (skewed_associative.cc/hh) under /gem5/src/mem/cache/tags/indexing_policies/ and i would like to use…
-1
votes
1 answer

How to design a debug function similar to gem5 in C language?

The debug information in gem5 is really amazing. You only need to use DPRINTF(FLAGA,"%d",value); where you want to output debug information. If you add --debug-flag=FLAGA when compiling. DPRINTF(FLAGA,"%d",value); will become printf("%d", value);…
Gerrie
  • 736
  • 3
  • 18
-1
votes
1 answer

Migration from Makefile to CMake: -I

We have an old compilation script in Makefile and would like to start using CMake. Does anyone perhaps know what would be the equivalent of -I from Makefile in CMake? This is the concrete line: "-I gem5-stable/util/m5 gem5-stable/util/m5/m5op_x86.S"
xTrmwYs
  • 43
  • 1
  • 9
1 2 3
31
32