Searched hist:12984 (Results 1 - 3 of 3) sorted by relevance

/gem5/src/systemc/core/
H A Dobject.hh12984:02f20eeeb8ce Thu Jul 19 20:12:00 EDT 2018 Gabe Black <gabeblack@google.com> systemc: Make orphans top level objects instead of panic-ing.

When a simulation ends, the sc_objects it contains are destroyed one
by one, not necessarily in hierarchy order. That means that a parent
object can legitimately be destroyed before its children. Instead of
panic-ing when that inevitably happens, this change makes gem5 turn
those children into top level objects.

Change-Id: Icad9c99310fbc3ddcadbbb4f8a990b4fbfe35bdf
Reviewed-on: https://gem5-review.googlesource.com/12035
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
H A Dobject.cc12984:02f20eeeb8ce Thu Jul 19 20:12:00 EDT 2018 Gabe Black <gabeblack@google.com> systemc: Make orphans top level objects instead of panic-ing.

When a simulation ends, the sc_objects it contains are destroyed one
by one, not necessarily in hierarchy order. That means that a parent
object can legitimately be destroyed before its children. Instead of
panic-ing when that inevitably happens, this change makes gem5 turn
those children into top level objects.

Change-Id: Icad9c99310fbc3ddcadbbb4f8a990b4fbfe35bdf
Reviewed-on: https://gem5-review.googlesource.com/12035
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
/gem5/src/python/m5/
H A DSimObject.py13356:913658aa619c Thu Sep 13 09:54:00 EDT 2018 Ciro Santilli <ciro.santilli@arm.com> python: Add utility function to override config parameters

Add a utility method, SimObject.apply_config that can be used to
implement SimObject param overrides from the command line. This
function provides safe and convenient semantics for CLI assignment:

* The override expression is evaluated in a restricted environment. The
only global variables are the child objects and params from the root
object.

* Only params can be overridden. For example, calling methods or setting
attributes on SimObjects isn't possible.

* Vectors use non-standard list semantics which enable something similar
to glob expansion on the shell. For example, setting:

root.system.cpu[0:2].numThreads = 2

will override numThreads for cpu 0 and 1 and:

root.system.cpus[0,2].numThreads = 2

sets it for cpus 0 and 2.

The intention is that the helper method is called to override default
values before calling m5.instantiate.

Change-Id: I73f99da21d6d8ce1ff2ec8db2bb34338456f6799
Reviewed-on: https://gem5-review.googlesource.com/c/12984
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

Completed in 38 milliseconds