python: Improve SimObject's warning when parent specified twice
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 8 Dec 2020 01:45:18 +0000 (17:45 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 22 Dec 2020 09:52:23 +0000 (09:52 +0000)
commit350278b84d51bc4ec5c2ed7aa1bcdd22d3670078
tree706e59ffb7aeaf60f56a776c3aba36bf03cf9d5c
parent40af27b571137f1b2b0cea7a455857b310fb58aa
python: Improve SimObject's warning when parent specified twice

SimObject outputs a warning when its parent is specified more than
once. The cause is most likely that there is unexpected param
specified in the constructor called in the Python interface.

This commit adds a note about this probable cause of this potential
error to the warning message.

Change-Id: I9b6bf5d5fb0c77bfdad5fde42e88f814e8a4b72b
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38359
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/SimObject.py