Re: [gem5-users] --topology no such option

2018-08-12 Thread Parmida Vahdatnia
Thank you the --ruby was missing.
I started gem5 last year with reading your book and it was very useful.
thank you!

On Fri, Aug 10, 2018 at 6:38 PM, Jason Lowe-Power 
wrote:

> I believe you need to enable Ruby (--ruby).
>
> BTW, I strongly encourage you to understand the runscripts you are using.
> learning.gem5.org is a good place to start.
>
> Jason
>
> On Fri, Aug 10, 2018 at 5:37 AM Parmida Vahdatnia <
> parmida.vahdat...@gmail.com> wrote:
>
>> I also tried the flag
>>
>> --garnet-network=fixed
>>
>> but it says  no such option again.
>>
>> On Fri, Aug 10, 2018 at 4:32 PM, Parmida Vahdatnia <
>> parmida.vahdat...@gmail.com> wrote:
>>
>>> Hello all
>>> I'm facing a problem using se.py with the topology XY_Mesh and garnet.
>>> this is the command I use:
>>> ./build/X86/gem5.opt configs/example/se.py  --num-cpus=16 --num-dirs=16
>>> --network=garnet2.0 --topology=Mesh_XY --mesh-rows=4
>>>
>>> and the errors are:
>>>
>>> se.py: error: no such option: --network
>>> se.py: error: no such option: --topology
>>>
>>> and I remember that I didn't use to have this problem, my gem5 is
>>> updated as well.
>>> does anyone know how I can fix this?
>>> thank you!
>>>
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Fix periods in gem5 cache

2018-08-12 Thread Parmida Vahdatnia
I usually use the combination of the getTick() function and ifs in the
code, there is also a sleep function but I don't know if that's what you
want.

On Mon, 13 Aug 2018, 09:43 Muhammad Avais,  wrote:

> Dear all,
>
>I want to adjust associativity of cache after fix
> periods of time. Can anyone suggest how can i decide time in gem5.
>
> Best Regards,
> Thanks,
> Avais
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Fix periods in gem5 cache

2018-08-12 Thread Muhammad Avais
Dear all,

   I want to adjust associativity of cache after fix
periods of time. Can anyone suggest how can i decide time in gem5.

Best Regards,
Thanks,
Avais
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Is it possible to make gem5 exit with status 1 on Linux kernel panic?

2018-08-12 Thread Ciro Santilli
I've noticed that as of ff52563a214c71fcd1e21e9f00ad839612032e3b, when
there is a kernel panic, and I hack fs.py to set `system.panic_on_panic`
with:

diff --git a/configs/example/fs.py b/configs/example/fs.py
index 4031fd05e..0f502a34a 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -395,5 +395,6 @@ if buildEnv['TARGET_ISA'] == "arm" and
options.generate_dtb:
 sys = getattr(root, sysname)
 sys.dtb_filename = create_dtb_for_system(sys, '%s.dtb' %
sysname)

+test_sys.panic_on_panic = True
 Simulation.setWorkCountOptions(test_sys, options)
 Simulation.run(options, root, test_sys, FutureClass)

I get the stack trace at then end:

--- BEGIN LIBC BACKTRACE ---

but the exit status is 0 and not 1.

The code path calls panic(), which calls ::abort(), but then it seems that
the abort handler that prints the backtrace returns 0 instead of 1.

Is this desired behavior?

It matters because exit status of 1 makes it easier to git bisect run,
which is super important to have.

Now I'm parsing logs to determine if an error happened, which is nasty.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users