You should be debugging this problem in C++ with gdb.

Gabe

On 11/10/11 21:57, Mahmood Naderan wrote:
> This is what I wrote:
>
> if options.detailed:
>     cpus = [DerivO3CPU(cpu_id = i,
>                        clock='1.0GHz')
>             for i in xrange(np)]
>
> # ----------------------
> # Create a system, and add system wide objects
> # ----------------------
> system = System(cpu = cpus, physmem = 
> PhysicalMemory(range=AddrRange("4096MB")),
>                 membus = Bus(clock = '1.0GHz'))
>
> system.toL2bus = Bus(clock = '1.0GHz')
> system.l2 = L2Cache()
>
> # ----------------------
> # Connect the L2 cache and memory together
> # ----------------------
> system.physmem.port = system.membus.port
> system.l2.cpu_side = system.toL2bus.port
> system.l2.mem_side = system.membus.port
>
> # ----------------------
> # Connect the L2 cache and clusters together
> # ----------------------
> for cpu in cpus:
>     cpu.addPrivateSplitL1Caches(L1Cache(size = '64kB'),
>                                 L1Cache(size = '64kB'))
>     # connect cpu level-1 caches to shared level-2 cache
>     cpu.connectAllPorts(system.toL2bus, system.membus)
>
> What should I add for TLB?
>
> On 11/11/11, Gabriel Michael Black <[email protected]> wrote:
>> It looks like the TLB pointer is NULL when something calls
>> invalidateAll on it. You should try to figure out why it's NULL. There
>> should always be a TLB, so either the TLBs haven't been set up
>> wherever this is being called or one is getting lost somehow.
>>
>> Gabe
>>
>> Quoting Mahmood Naderan <[email protected]>:
>>
>>> Hi,
>>> Is there any idea about the follwing segmentation fault:
>>>
>>> gdb --args build/X86_SE/m5.opt -d ./results/bzip2/
>>> configs/example/cmp.py -F 1000000 -d --caches --l2cache --maxtick
>>> 10000000000 -b zeusmp --take-checkpoints 10000000,100000
>>> --max-checkpoints 1
>>>
>>> ....
>>>
>>>
>>> info: Entering event queue @ 692462000.  Starting simulation...
>>> Writing checkpoint
>>>
>>> Program received signal SIGSEGV, Segmentation fault.
>>> X86ISA::TLB::invalidateAll (this=0x0) at build/X86_SE/arch/x86/tlb.cc:134
>>> 134         while (!entryList.empty()) {
>>> (gdb) backtrace
>>> #0  X86ISA::TLB::invalidateAll (this=0x0) at
>>> build/X86_SE/arch/x86/tlb.cc:134
>>> #1  0x0000000000710dd7 in X86ISA::copyMiscRegs (src=0x2008690,
>>> dest=0x3a29700)
>>>     at build/X86_SE/arch/x86/utility.cc:229
>>> #2  0x0000000000710e88 in X86ISA::copyRegs (src=0x2008690, dest=0x3a29700)
>>>     at build/X86_SE/arch/x86/utility.cc:242
>>> #3  0x0000000000cdd537 in SimpleThread::copyArchRegs (this=0x1606f40,
>>> context=0x2008690)
>>>     at build/X86_SE/cpu/simple_thread.cc:295
>>> #4  SimpleThread::copyState (this=0x1606f40, context=0x2008690)
>>>     at build/X86_SE/cpu/simple_thread.cc:182
>>> #5  SimpleThread::copyTC (this=0x1606f40, context=0x2008690) at
>>> build/X86_SE/cpu/simple_thread.cc:163
>>> #6  0x0000000000d3f194 in FullO3CPU<O3CPUImpl>::serialize(std::ostream&)
>>> ()
>>> #7  0x00000000006bcabf in SimObject::serializeAll (os=...) at
>>> build/X86_SE/sim/sim_object.cc:129
>>> #8  0x0000000000685654 in Serializable::serializeAll (cpt_dir=<value
>>> optimized out>)
>>>     at build/X86_SE/sim/serialize.cc:507
>>> #9  0x00000000004105a5 in serializeAll (args=<value optimized out>)
>>>     at build/X86_SE/python/swig/pyobject.hh:50
>>> #10 _wrap_serializeAll (args=<value optimized out>) at
>>> build/X86_SE/python/swig/core_wrap.cc:3611
>>> #11 0x00007ffff73fe030 in PyEval_EvalFrameEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #12 0x00007ffff73ffd60 in PyEval_EvalCodeEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #13 0x00007ffff73fe0ab in PyEval_EvalFrameEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #14 0x00007ffff73fe928 in PyEval_EvalFrameEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #15 0x00007ffff73ffd60 in PyEval_EvalCodeEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #16 0x00007ffff73ffe32 in PyEval_EvalCode () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #17 0x00007ffff73ff0b9 in PyEval_EvalFrameEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #18 0x00007ffff73ffd60 in PyEval_EvalCodeEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #19 0x00007ffff73fe0ab in PyEval_EvalFrameEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #20 0x00007ffff73ffd60 in PyEval_EvalCodeEx () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #21 0x00007ffff73ffe32 in PyEval_EvalCode () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #22 0x00007ffff741dd1c in PyRun_StringFlags () from
>>> /usr/lib/libpython2.6.so.1.0
>>> #23 0x000000000067db4f in m5Main (argc=<value optimized out>,
>>> argv=<value optimized out>)
>>>     at build/X86_SE/sim/init.cc:256
>>>
>>>
>>>
>>>
>>> Thanks
>>> --
>>> // Naderan *Mahmood;
>>> _______________________________________________
>>> 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
>>
>

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

Reply via email to