does anyone knows how to run with #set not a power of 2? so far I made
changes in src/mem/cache/tags/lru.cc
1st: to comment out the error message:
/* if (numSets <= 0 || !isPowerOf2(numSets)) {
        fatal("# of sets must be non-zero and a power of 2");
    } */
when I do that I receive this error
Exiting @ tick 10432213315 because halt instruction encountered
I figure that it's because the function floorLog2(numSets) used to
calculate the number of bit to shift for tag calculation in *tagShift =
setShift + floorLog2(numSets);* will round to the nearest integer and some
addresses will be lost

2nd: I changed the above formula to
*tagShift = setShift + floorLog2(numSets) +1* //just to get the desired
index bits for my cachesize
then I received the following error:
panic: attempt to execute unknown instruction (inst 0x1ff920c8, opcode 0x7)
 @ tick 23751456
[execute:build/ALPHA/arch/alpha/generated/exec-ns.cc.inc, line 59]
Memory Usage: 23751456 KBytes
Program aborted at tick 9706443

any idea how to go further with this?anyone successfully done this?
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to