Do you know which version you were using when it worked? I'm not aware of any changes that would have broken what you're doing, but it's quite possible we broke something inadvertently.
Steve On Thu, May 17, 2012 at 3:19 AM, Tripti Warrier <[email protected]> wrote: > Hi all, > > I am trying to add replacement policy as an enumerated type but finding some > difficulty with it. > I have added the " class Replace(Enum): vals = ['no','lru', 'fa_lru']" > in BaseCache.py and done the corresponding change in > builder.cc.This compiles without error but when it simulate I get the > following error > > command line: ./build/ALPHA/gem5.opt configs/example/se.py --caches > --l3cache --cpu-type detailed -n 1 --bench bzip2 > executable= /home/tripti/cpu2006/binaries/bzip2 > inputs_dir = /home/tripti/cpu2006/data/bzip2/ref/input > outputs_dir = /home/tripti/cpu2006/data/bzip2/ref/output > Global frequency set at 1000000000000 ticks per second > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home/tripti/Downloads/gem5-f681719e2e99/src/python/m5/main.py", > line 359, in main > exec filecode in scope > File "configs/example/se.py", line 221, in <module> > Simulation.run(options, root, system, FutureClass) > File "/home/tripti/Downloads/gem5-new/configs/common/Simulation.py", > line 268, in run > m5.instantiate(checkpoint_dir) > File > "/home/tripti/Downloads/gem5-f681719e2e99/src/python/m5/simulate.py", line > 105, in instantiate > for obj in root.descendants(): obj.createCCObject() > File > "/home/tripti/Downloads/gem5-f681719e2e99/src/python/m5/SimObject.py", line > 1030, in createCCObject > self.getCCParams() > File > "/home/tripti/Downloads/gem5-f681719e2e99/src/python/m5/SimObject.py", line > 989, in getCCParams > setattr(cc_params, param, value) > TypeError: in method 'BaseCacheParams_replacement_policy_set', argument 2 > of type 'Enums::Replace' > > These changes were working with an older version hence the confusion. > I have the problem with adding ENUM with the latest version. > > Which version of SimObject.py should i use ? > > -- > Regards, > Tripti > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
