From: Anthony Gutierrez Date: Fri, 27 Jul 2012 20:08:04 +0000 (-0400) Subject: checker: make checker cpu id match its host's cpu id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8133f2460fa8a6201deb361989a1179a163140fb;p=gem5.git checker: make checker cpu id match its host's cpu id when using the checker i ran into problems where an instruction reading the cpu id register failed because the ids did not match, and hence, the result of the instruction did not match. this patch ensures that the ids match so this instruction does not fail. this problem only seemed to manifest itself when multiple cores were in the system, either multi-core, or extra switched- out cores present in the system. --- diff --git a/src/cpu/o3/O3CPU.py b/src/cpu/o3/O3CPU.py index 042c5e637..3138aebbf 100644 --- a/src/cpu/o3/O3CPU.py +++ b/src/cpu/o3/O3CPU.py @@ -141,6 +141,7 @@ class DerivO3CPU(BaseCPU): warnOnlyOnLoadError=True) self.checker.itb = ArmTLB(size = self.itb.size) self.checker.dtb = ArmTLB(size = self.dtb.size) + self.checker.cpu_id = self.cpu_id else: print "ERROR: Checker only supported under ARM ISA!"