Hi Everyone,

As part of the Adaptive Dyanmic ROB implementation I am trying to add 2 new
parameters to be accessed on cpu.cc

I added the parameters in build/ALPHA_SE/params/DerivO3CPU.hh
I also modified src/cpu/o3/O3CPU.py to add the parameters

In conifgs/example/se.py I added this code

CPUClass.robEvalPeriod = Param.Unsigned(152000, "ROB Eval Period")
CPUClass.allocations_per_thread = Param.Unsigned(4, "Allocations per thread
ROB partition")

The variables are declared in src/cpu/o3/cpu.hh as unsigned int

However When i run the se.py script I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/javier/m5/src/python/m5/main.py", line 359, in main
    exec filecode in scope
  File "/home/javier/m5/configs/example/se.py", line 142, in <module>
    CPUClass.robEvalPeriod = Param.Unsigned(152000, "ROB Eval Period")
  File "/home/javier/m5/src/python/m5/SimObject.py", line 325, in
__setattr__
    cls._set_param(attr, value, param)
  File "/home/javier/m5/src/python/m5/SimObject.py", line 274, in _set_param
    cls._values[name] = param.convert(value)
  File "/home/javier/m5/src/python/m5/params.py", line 152, in convert
    return self.ptype(value)
  File "/home/javier/m5/src/python/m5/params.py", line 358, in __init__
    % type(value).__name__
TypeError: Can't convert object of type ParamDesc to CheckedInt
Error setting param TmpClass.robEvalPeriod to <m5.params.ParamDesc object at
0xb770614c>

I also tried:

CPUClass.robEvalPeriod = Param.Int(152000, "ROB Eval Period")
CPUClass.allocations_per_thread = Param.Int(4, "Allocations per thread ROB
partition")

But, got the same errors.

I appreciate the help.
Javier Malave
Texas A&M University
Computer Science & Engineering Department
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to