I'm a newbie and I apologize if this has been answered before, but I
couldn't find anything that solved my problem in the documentation or the
mailing list.

I'm trying to get Ruby to work in the most basic vanilla case possible and
not having any luck.

I had recently updated with mercurial to the latest build from
http://repo.gem5.org/gem5 and built with.

scons build/ALPHA/gem5.opt

With that I can successfully run

./build/ALPHA/gem5.opt configs/example/se.py -c
tests/test-progs/hello/bin/alpha/linux/hello

with no problems. But if I try to run

./build/ALPHA/gem5.opt configs/example/se.py --ruby -c
tests/test-progs/hello/bin/alpha/linux/hello

I get the following error:

warn: CoherentBus system.membus has no snooping ports attached!
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
gem5.opt: build/ALPHA/base/statistics.hh:1207: Derived&
Stats::Vector2dBase<Derived, Stor>::init(Stats::size_type,
Stats::size_type) [with Derived = Stats::Vector2d; Stor = Stats::StatStor;
Stats::size_type = unsigned int]: Assertion `_x > 0 && _y > 0 && "sizes
must be positive!"' failed.
Program aborted at cycle 0
Aborted (core dumped)

On another posting on the gem5-users mailing list I saw that you need to
specify cpu-type so I tried setting it to timing with

./build/ALPHA/gem5.opt configs/example/se.py --ruby --cpu-type=timing -c
tests/test-progs/hello/bin/alpha/linux/hello

and I still got the same error. Someone else pointed out that I should try
building with the following command:

scons build/ALPHA/gem5.opt RUBY=true PROTOCOL=MOESI_hammer

I tried that, but I still got the same error when I tried to run it. I
Looked at statistics.hh:1207 where the assertion failed, but I was familiar
enough with gem5 to know what passed in the values that failed the
assertion. If anyone knows why it failed and what I need to do to use Ruby
in se mode, I would greatly appreciate it. Thank you.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to