[gem5-users] Re: does gem5 have a C++ API?

2021-07-01 Thread Konstantin Serebryany via gem5-users
Hi Jason, Thanks for the reply! I was hoping for something light-weight, similar to Unicorn, but based on gem5 instead of QEMU... I tried running build/X86/gem5.opt configs/example/se.py -c ./tests/test-progs/hello/bin/x86/linux/hello and it takes 0.3 second -- too slow. The profile shows:

[gem5-users] Re: does gem5 have a C++ API?

2021-07-01 Thread Jason Lowe-Power via gem5-users
Hello, It's somewhat possible. You can compile gem5 as a library (e.g., scons build//libgem5-opt.so). However, gem5 *is a python interpreter* and is configured via python scripts. Getting that to work with an external program is "exciting". It's possible to get python working, and there are other

[gem5-users] does gem5 have a C++ API?

2021-07-01 Thread Konstantin Serebryany via gem5-users
Hi, [gem5 newbie here... ] Does gem5 have a C++ API? I am interested in using gem5 as a library, i.e. invoking the system call emulation mode from within my process, without fork/exec or python. Is that at all possible? Any pointers? thanks! --kcc

[gem5-users] init-file parser has trouble with comments

2021-07-01 Thread Inman, Jeff via gem5-users
Comments (lines beginning with '#') at the beginning seem fine, but further down in the file they cause a line to be printed "Can't parse .ini line [...]", and the run is aborted. Thanks, Jeff -- Jeff Inman High-Performance Computing (HPC-ENV) Ultrascale Systems Research Center Los Alamos

[gem5-users] Heterogeneous memory channels

2021-07-01 Thread m0m0krane 00 via gem5-users
Hi, I'm using gem5 for few month ago, and now I want to experiment with heterogeneous memory channels like 7 channels HBM + 1 channels DDR4 in the same system. I tried to modify de Ruby.py file in order to create 1 ddr4 controller and 7 hbm controllers. The system boot, but when i run a stream

[gem5-users] instrutions statistics

2021-07-01 Thread Liyichao via gem5-users
Hi Jason: Previously, I have seen examples about the increase of kernel-mode instructions and user-mode instructions on the GEM5 official website. However, I cannot find them on the official website. The web page has been updated. If yes, where can I refer to these examples?