Hi,

When I was trying to restore my checkpoint (single thread run, SE model), I
got the following error message:

fatal: Number of ISAs (0) assigned to the CPU does not equal number of
threads (1).

I searched for this message and found it is in the end of the function of
"BaseCPU::BaseCPU" in "src/cpu/base.cc". Then I tried to track where the
value isa is assigned  and found it is assigned in the file of
"src/cpu/BaseCpu.py". I noticed the isa is initialized to empty like the
following statement (take x86 for example):

isa = VectorParam.X86ISA([], "ISA instance")

Then I searched for the changes related to the above statement and found
the change called "Don't override ISA if provided by user" did this change (
https://www.mail-archive.com/[email protected]/msg23775.html):

-        isa = VectorParam.X86ISA([ isa_class() ], "ISA instance")
+        isa = VectorParam.X86ISA([], "ISA instance")

Obviously, this change removed previous initial value to empty. After I
changed the above assignment statement to the previous version, that is,
"isa = VectorParam.X86ISA([ isa_class() ], "ISA instance")", the above
error message was gone and my checkpoint was restored successfully.

So I'll appreciate it if any maintainer would like to fix it.

gjins
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to