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

/gem5/src/python/m5/
H A Dparams.pydiff 12194:742ec08ee956 Mon Sep 25 18:24:00 EDT 2017 Gabe Black <gabeblack@google.com> sim: Check the SimObjectVector.has_parent function to use the "any" function.

The existing code was essentially doing the same thing, but in a more
roundabout and obscure way. One difference between the two versions is that
I believe this will stop as soon as it encounters an element without a
parent, where the original version would call has_parent() on all the
elements regardless.

Change-Id: Ia1fef3083fc88fca11f8ecfca453476e33194695
Reviewed-on: https://gem5-review.googlesource.com/4842
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>

Completed in 47 milliseconds