Hi All,

Please can you tell me how to verify that the Linux has been booted with
the actual cache configuration passed in gem5? I have run GEM3 with L1, L2
and L3 having following sizes. I added L3 bus myself.

./build/X86/gem5.opt configs/example/fs.py
--kernel=x86_64-vmlinux-2.6.22.9.smp --cpu-type=detailed --caches
--num-l2caches=1 --num-l3caches=1 --l1d_size=32kB --l1d_assoc=8
--l1i_size=32kB --l1i_assoc=8 --l2cache --l2_size=256kB --l2_assoc=8
--l3_assoc=16 --l3_size=8192kB --cacheline_size=64 --l3cache

But when Ubuntu (Lucid) boots up then I don't see any cache configuration
through 'lscpu'

$lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
CPU(s):                1
Thread(s) per core:    1
Core(s) per socket:    1
CPU socket(s):         1
Vendor ID:             M5 Simulator
CPU family:            15
Model:                 37
Stepping:              1
CPU MHz:               2000.010

Moreover, 'ls /sys/devices/system/cpu/cpu0' only shows 'topology' dir and
no cache directory.

Also during the system bootup, the Linux shows wrong cache configuration
for both L1 and L2:
:
"Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)"

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

Reply via email to