From 8133f2460fa8a6201deb361989a1179a163140fb Mon Sep 17 00:00:00 2001 From: Anthony Gutierrez Date: Fri, 27 Jul 2012 16:08:04 -0400 Subject: 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. --- src/cpu/o3/O3CPU.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/o3/O3CPU.py') 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!" -- cgit v1.2.3