Hi Anouar,

I've never tried to use the checker CPU myself, so I can't tell you exactly
what's wrong. Have you used gdb to find out where the error is occuring? I
assume it's a null pointer dereference. So what object isn't allocated that
should be?

Jason

On Fri, Oct 21, 2016 at 10:16 AM anoir nechi <[email protected]> wrote:

>
> *Hi*
> *I made a script describing a multicore system based on ARM (cortex A9) it
> works fine when u tested it with "hello world!" example but when i added
> the checkerCPU like so:*
> np = 4
> system = System(cpu = [O3_ARM_A9_3(cpu_id=i) for i in xrange(np)],
>                 mem_mode = 'timing',
>                 mem_ranges = [AddrRange('512MB')],
>                 cache_line_size = 64)
> system.clk_domain = SrcClockDomain()
> system.clk_domain.clock = '1GHz'
> system.clk_domain.voltage_domain = VoltageDomain()
> #-------------------------------
> # Addeing !checkers to each CPU
> #-------------------------------
> for i in xrange(np):
>     system.cpu[i].addCheckerCpu()
> #-------------------------------
> # Defining I & D L1-caches and connecting them to the CPU side
> #-------------------------------
> for i in xrange(np):
>     system.cpu[i].icache = L1ICache(options)
>     system.cpu[i].dcache = L1DCache(options)
>     # Connect the instruction and data caches to the CPU
>     system.cpu[i].icache.connectCPU(system.cpu[i].icache_port)
>     system.cpu[i].dcache.connectCPU(system.cpu[i].dcache_port)
>
> *But, when i simulate the script, I get a segmentation fault :*
> command line: build/ARM/gem5.opt 'ARM _A9/ARM_A9_Config.py'
> --l1i_size=64kB --l1d_size=32kB --l2_size=2MB
>
> Global frequency set at 1000000000000 ticks per second
> warn: DRAM device capacity (4096 Mbytes) does not match the address range
> assigned (512 Mbytes)
> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
> 0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001
> 0: system.remote_gdb.listener: listening for remote gdb #2 on port 7002
> 0: system.remote_gdb.listener: listening for remote gdb #3 on port 7003
> Beginning simulation!
> info: Entering event queue @ 0.  Starting simulation...
> Segmentation fault (core dumped)
> *Anyone have a good idea about that ?*
> --
> *Anouar NECHI*
>
>
> *IT Engineer : Industrial systemsHigher Institute of Computer ScienceTunis
> - El Manar University*
> *Phone :* *(+216) 50 311 536 <+216%2050%20311%20536>*
> *E-mail :* *[email protected] <[email protected]>*
> _______________________________________________
> 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