cpu: Do not generate a DTB node in the CheckerCPU

The CheckerCPU is not a real CPU and shouldn't generate a DTB
node. This is why we are skipping the BaseCPU implementation
and we are calling the base SimObject one.

Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Change-Id: I42326be9d4c440846fdf8d43bf809ad4d50f61d9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/46622
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Giacomo Travaglini
2021-06-07 15:53:24 +01:00
parent f1fd8cf747
commit 5d6bb698f2

View File

@@ -27,6 +27,7 @@
from m5.params import *
from m5.objects.BaseCPU import BaseCPU
from m5.SimObject import SimObject
class CheckerCPU(BaseCPU):
type = 'CheckerCPU'
@@ -37,3 +38,9 @@ class CheckerCPU(BaseCPU):
"Update the checker with the main CPU's state on an error")
warnOnlyOnLoadError = Param.Bool(True,
"If a load result is incorrect, only print a warning and do not exit")
def generateDeviceTree(self, state):
# The CheckerCPU is not a real CPU and shouldn't generate a DTB
# node. This is why we are skipping the BaseCPU implementation
# and we are calling the base SimObject one.
return SimObject.generateDeviceTree(self, state)