cpu: Fix checker cpu instantiation
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Fri, 13 Sep 2019 17:23:33 +0000 (18:23 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 24 Sep 2019 13:24:55 +0000 (13:24 +0000)
commit9235ae56c282d5a02ada3ed9b4e0fe2ee5738bde
tree0b52866017f533d8c5c7bd6154488b8aa6d53165
parente5a82da26e29560f3e7121b600a12f8acd6a5a3f
cpu: Fix checker cpu instantiation

This change uses the params as instantiated from the default
constructor to create the checker cpu. If any of these parameters are
invalid for the checker cpu, the simulation will exit with a warning.

Change-Id: I0e58ed096c9ea5f413f2e9b64d8d184d9b0fc84e
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21079
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/dummy_checker.cc
src/cpu/o3/checker.cc