summaryrefslogtreecommitdiff
path: root/src/mem/cache/mshr_queue.cc
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-01-26 08:40:40 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-02-20 18:27:10 +0000
commitb2f6cc8ca6435a8d955081f173d5331d49c361a6 (patch)
treeba7cf223ca1ede9be6f5d0f2e14bfc6452e3058c /src/mem/cache/mshr_queue.cc
parent33ba44709b74add1a1aff16c09c707b57c97acb3 (diff)
downloadgem5-b2f6cc8ca6435a8d955081f173d5331d49c361a6.tar.xz
python: Fix Param initialization issue in Python 3
When initializing a param with a SimObject NULL pointer, convert() checks if the 'ptype' attribute has been created and whether the value is NULL. In that case, it assumes that the object is being initizalized as a part of SimObject initialization and defers the conversion. This check is implemented using hasattr() which in turn is implemented using the __getattr__ implementation that asserts because all SimObjects haven't been initialized yet. Implement the check using a lookup in the object's dictionary instead to prevent the SimObject lookup. Change-Id: I7367563c4fb71f6d2be541ebdc0be418e9f73d48 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15990 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/mshr_queue.cc')
0 files changed, 0 insertions, 0 deletions