[gem5-users] Simulation terminates successfully on one machine and runs into assertion failure on another

2020-03-09 Thread Shehab Elsayed
Hello All,

I am trying to run the same experiment (ARM full system with RUBY
MESI_Three_level that boots from checkpoint) on two different machines. It
terminates successfully on one but runs into assertion failure on the other.

This is the terminating message:
Addr Request::getPaddr() const: Assertion `privateFlags.isSet(VALID_PADDR)'
failed

I tried running with the Exec debug flag and comparing both traces. This is
the difference I found:
< 47134939: system.cpu_cluster.bef_roi_cpus0 T0 : @ext4_iget+1244:
  ldrsw   x2, [x21, #8]: MemRead :  D=0x5e41dd0c
A=0xffc07b1ce008
< 471349390500: system.cpu_cluster.bef_roi_cpus0 T0 : @ext4_iget+1248:
  str   x2, [x19, #80] : MemWrite :  D=0x5e41dd0c
A=0xffc07c205d00
---

> 47134939: system.cpu_cluster.bef_roi_cpus0 T0 : @ext4_iget+1244:
  ldrsw   x2, [x21, #8]: MemRead :  D=0x5e4ebbdf
A=0xffc07b1ce008
> 471349390500: system.cpu_cluster.bef_roi_cpus0 T0 : @ext4_iget+1248:
  str   x2, [x19, #80] : MemWrite :  D=0x5e4ebbdf
A=0xffc07c205d00
17299344d17299343
< 474920248000: system.cpu_cluster.bef_roi_cpus0 T0 : 0x7fbf4f9510:   su

Any ideas how I should proceed with debugging this problem?

Thank you very much in advance.

Best Regards,
Shehab
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] [Questions] how to use the new GEM5 website

2020-03-09 Thread Bobby Bruce
Done,

I assigned them to Jared.

Bobby
--
Dr. Bobby R. Bruce
Room 2235,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Mon, Mar 9, 2020 at 8:42 AM Jason Lowe-Power  wrote:

> Hi Boya,
>
> Please let us know what links are broken. We can't fix them if we don't
> know what to fix :). Feel free to open an issue on our issue tracker:
> https://gem5.atlassian.net/projects/GEM5/issues
>
> Cheers,
> Jason
>
> On Mon, Mar 9, 2020 at 2:06 AM chenboya  wrote:
>
>> Hi, Abhishek
>>
>> Thank you very much.
>> Besides this one, I also found many links in the website are invalid.
>> Hope it can be fixed in the near future.
>>
>> Best Regards
>> Boya
>>
>> Date: Thu, 5 Mar 2020 16:46:13 -0500
>> From: Abhishek Singh 
>> To: gem5 users mailing list 
>> Subject: Re: [gem5-users] [Questions] how to use the new GEM5 website
>> Message-ID:
>> <
>> cab9mwuo3zlh_bbnikbgb5mure7nk13tuj8usojvlfzx+t6p...@mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>>
>> Here is the ISCA 2011 gem5 slides
>>
>> http://pages.cs.wisc.edu/~markhill/cs757/Spring2012/includes/isca_pres_2011.pdf
>>
>> Best regards,
>>
>> Abhishek
>>
>>
>> On Thu, Mar 5, 2020 at 4:43 PM chenboya  wrote:
>>
>> > Hi, Everybody
>> >
>> > I found some difficulties in using the new gem5.org For example, when
>> > I want to read the ISCA11 slides in the Event page, address is:
>> > http://www.gem5.org/dist/tutorials/isca_pres_2011.pdf
>> > But when I click, there will be a 404 error, and said:
>> > "Perhaps this can be found within our m5sim.org website archive:
>> > http://old.gem5.org/dist/tutorials/isca_pres_2011.pdf.html;
>> >
>> > but when I click the old link, there is this info : " This XML file
>> > does not appear to have any style information associated with it. The
>> > document tree is shown below."
>> >
>> > Is there any easy methods to find the old documents?
>> >
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] [Questions] how to use the new GEM5 website

2020-03-09 Thread chenboya
Hi, Jason

For example, in the events page, all the links of "HiPEAC Computer Systems 
Week"(held in Gothenburg, Sweden in April 2012) will direct to 404 error.
In the documents page, API documents https://gem5.github.io/gem5-doxygen/ will 
direct to 404 error.
Currently I found these, if have some new failed links, I will report to this 
mail group.
Thank you very much.

Best Regards
Boya


Message: 5
Date: Mon, 9 Mar 2020 08:41:36 -0700
From: Jason Lowe-Power 
To: gem5 users mailing list 
Subject: Re: [gem5-users] [Questions] how to use the new GEM5 website
Message-ID:

Content-Type: text/plain; charset="utf-8"

Hi Boya,

Please let us know what links are broken. We can't fix them if we don't know 
what to fix :). Feel free to open an issue on our issue tracker:
https://gem5.atlassian.net/projects/GEM5/issues

Cheers,
Jason

On Mon, Mar 9, 2020 at 2:06 AM chenboya  wrote:

> Hi, Abhishek
>
> Thank you very much.
> Besides this one, I also found many links in the website are invalid.
> Hope it can be fixed in the near future.
>
> Best Regards
> Boya
>
> Date: Thu, 5 Mar 2020 16:46:13 -0500
> From: Abhishek Singh 
> To: gem5 users mailing list 
> Subject: Re: [gem5-users] [Questions] how to use the new GEM5 website
> Message-ID:
> <
> cab9mwuo3zlh_bbnikbgb5mure7nk13tuj8usojvlfzx+t6p...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> Here is the ISCA 2011 gem5 slides
>
> http://pages.cs.wisc.edu/~markhill/cs757/Spring2012/includes/isca_pres
> _2011.pdf
>
> Best regards,
>
> Abhishek
>
>
> On Thu, Mar 5, 2020 at 4:43 PM chenboya  wrote:
>
> > Hi, Everybody
> >
> > I found some difficulties in using the new gem5.org For example, 
> > when I want to read the ISCA11 slides in the Event page, address is:
> > http://www.gem5.org/dist/tutorials/isca_pres_2011.pdf
> > But when I click, there will be a 404 error, and said:
> > "Perhaps this can be found within our m5sim.org website archive:
> > http://old.gem5.org/dist/tutorials/isca_pres_2011.pdf.html;
> >
> > but when I click the old link, there is this info : " This XML file 
> > does not appear to have any style information associated with it. 
> > The document tree is shown below."
> >
> > Is there any easy methods to find the old documents?
> >
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20200309/8854bd28/attachment-0001.html>

--

Subject: Digest Footer

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

--

End of gem5-users Digest, Vol 164, Issue 8
**
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] [Questions] how to use the new GEM5 website

2020-03-09 Thread Jason Lowe-Power
Hi Boya,

Please let us know what links are broken. We can't fix them if we don't
know what to fix :). Feel free to open an issue on our issue tracker:
https://gem5.atlassian.net/projects/GEM5/issues

Cheers,
Jason

On Mon, Mar 9, 2020 at 2:06 AM chenboya  wrote:

> Hi, Abhishek
>
> Thank you very much.
> Besides this one, I also found many links in the website are invalid.
> Hope it can be fixed in the near future.
>
> Best Regards
> Boya
>
> Date: Thu, 5 Mar 2020 16:46:13 -0500
> From: Abhishek Singh 
> To: gem5 users mailing list 
> Subject: Re: [gem5-users] [Questions] how to use the new GEM5 website
> Message-ID:
> <
> cab9mwuo3zlh_bbnikbgb5mure7nk13tuj8usojvlfzx+t6p...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> Here is the ISCA 2011 gem5 slides
>
> http://pages.cs.wisc.edu/~markhill/cs757/Spring2012/includes/isca_pres_2011.pdf
>
> Best regards,
>
> Abhishek
>
>
> On Thu, Mar 5, 2020 at 4:43 PM chenboya  wrote:
>
> > Hi, Everybody
> >
> > I found some difficulties in using the new gem5.org For example, when
> > I want to read the ISCA11 slides in the Event page, address is:
> > http://www.gem5.org/dist/tutorials/isca_pres_2011.pdf
> > But when I click, there will be a 404 error, and said:
> > "Perhaps this can be found within our m5sim.org website archive:
> > http://old.gem5.org/dist/tutorials/isca_pres_2011.pdf.html;
> >
> > but when I click the old link, there is this info : " This XML file
> > does not appear to have any style information associated with it. The
> > document tree is shown below."
> >
> > Is there any easy methods to find the old documents?
> >
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Sysmalloc assertion

2020-03-09 Thread Muhammet Abdullah Soytürk
Hi all,

I wrote a script that executes several gem5 simulations. It works perfectly
on my laptop but when I clone it to the workstation I am getting this
error:

pr(This is the applications name): malloc.c:2389: sysmalloc: Assertion
`(old_top == initial_top (av) && old_size == 0) || ((unsigned long)
(old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end &
(pagesize - 1)) == 0)' failed.
warn: need to stop all queues
Trace/breakpoint trap (core dumped)

Compiler versions etc are the same with my laptop. Does anyone have an idea
about this?

Best,
Muhammet
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Running bare-metal RISCV simulations ...

2020-03-09 Thread Anuj Falcon
I have attached the config script I developed and use for running baremetal
RISCV system.

Place the file at gem5/configs/example/riscv/
-- 
-
J ANUJ
-
#Author : Anuj J

from __future__ import print_function
from __future__ import absolute_import

import optparse
import sys

import m5
# from m5.defines import buildEnv
from m5.objects import *
from m5.util import addToPath  #, fatal, warn
# from m5.util.fdthelper import *

addToPath('../../')

from ruby import Ruby

from common.FSConfig import *
# from common.SysPaths import *
# from common.Benchmarks import *
from common import Simulation
from common import CacheConfig
# from common import CpuConfig
# from common import MemConfig
# from common import ObjectList

from m5.objects import Cache

# from common.learning_gem5.part1.caches import *
from common import Options
from common import SimpleOpts

class L1Cache(Cache):
"""Simple L1 Cache with default values"""

assoc = 2
tag_latency = 2
data_latency = 2
response_latency = 2
mshrs = 4
tgts_per_mshr = 20

def __init__(self, options=None):
super(L1Cache, self).__init__()
pass

def connectBus(self, bus):
"""Connect this cache to a memory-side bus"""
self.mem_side = bus.slave

def connectCPU(self, cpu):
"""Connect this cache's port to a CPU-side port
   This must be defined in a subclass"""
raise NotImplementedError

class L1ICache(L1Cache):
"""Simple L1 instruction cache with default values"""

# Set the default size
size = '16kB'

SimpleOpts.add_option('--l1i_size',
  help="L1 instruction cache size. Default: %s" % size)

def __init__(self, opts=None):
super(L1ICache, self).__init__(opts)
if not opts or not opts.l1i_size:
return
self.size = opts.l1i_size

def connectCPU(self, cpu):
"""Connect this cache's port to a CPU icache port"""
self.cpu_side = cpu.icache_port

class L1DCache(L1Cache):
"""Simple L1 data cache with default values"""

# Set the default size
size = '64kB'

SimpleOpts.add_option('--l1d_size',
  help="L1 data cache size. Default: %s" % size)

def __init__(self, opts=None):
super(L1DCache, self).__init__(opts)
if not opts or not opts.l1d_size:
return
self.size = opts.l1d_size

def connectCPU(self, cpu):
"""Connect this cache's port to a CPU dcache port"""
self.cpu_side = cpu.dcache_port

class L2Cache(Cache):
"""Simple L2 Cache with default values"""

# Default parameters
size = '256kB'
assoc = 8
tag_latency = 20
data_latency = 20
response_latency = 20
mshrs = 20
tgts_per_mshr = 12

SimpleOpts.add_option('--l2_size', help="L2 cache size. Default: %s" % size)

def __init__(self, opts=None):
super(L2Cache, self).__init__()
if not opts or not opts.l2_size:
return
self.size = opts.l2_size

def connectCPUSideBus(self, bus):
self.cpu_side = bus.master

def connectMemSideBus(self, bus):
self.mem_side = bus.slave


mulSgs = 2
divSgs = 32
SimpleOpts.add_option('--mul_stages',  help="Number of multiplier stages. Default: %s" % mulSgs)
SimpleOpts.add_option('--div_stages',  help="Number of divider stages. Default: %s" % divSgs)
# SimpleOpts.set_usage("usage: %prog [options] ")
(opts, args) = SimpleOpts.parse_args()

system = BareMetalRiscvSystem()

system.clk_domain = SrcClockDomain()
system.clk_domain.clock = '2GHz'
system.clk_domain.voltage_domain = VoltageDomain()

system.mem_mode = 'timing'
system.mem_ranges = [AddrRange('2GB')]
system.membus = SystemXBar()

system.mem_ctrl = DDR3_1600_8x8()
system.mem_ctrl.range = system.mem_ranges[0]
system.mem_ctrl.port = system.membus.master
system.system_port = system.membus.slave

if opts and opts.mul_stages:
mulSgs = opts.mul_stages
if opts and opts.div_stages:
divSgs = opts.div_stages

system.cpu = ProtoCPU(divStages = divSgs, mulStages = mulSgs)

system.cpu.icache = L1ICache(opts)
system.cpu.dcache = L1DCache(opts)
system.cpu.icache.connectCPU(system.cpu)
system.cpu.dcache.connectCPU(system.cpu)

system.l2bus = L2XBar()
# Hook the CPU ports up to the l2bus
system.cpu.icache.connectBus(system.l2bus)
system.cpu.dcache.connectBus(system.l2bus)

# Create an L2 cache and connect it to the l2bus
system.l2cache = L2Cache(opts)
system.l2cache.connectCPUSideBus(system.l2bus)
# Connect the L2 cache to the membus
system.l2cache.connectMemSideBus(system.membus)

# system.cpu.icache_port = system.membus.slave
# system.cpu.dcache_port = system.membus.slave

system.cpu.createInterruptController()

system.bootloader = '/home/-/gem5/Test_components/a.out'
# system.kernel = '/home/-/gem5/Test_components/a.out'


Re: [gem5-users] [Questions] how to use the new GEM5 website

2020-03-09 Thread chenboya
Hi, Abhishek

Thank you very much.
Besides this one, I also found many links in the website are invalid.
Hope it can be fixed in the near future.

Best Regards
Boya

Date: Thu, 5 Mar 2020 16:46:13 -0500
From: Abhishek Singh 
To: gem5 users mailing list 
Subject: Re: [gem5-users] [Questions] how to use the new GEM5 website
Message-ID:

Content-Type: text/plain; charset="utf-8"

Hi,

Here is the ISCA 2011 gem5 slides
http://pages.cs.wisc.edu/~markhill/cs757/Spring2012/includes/isca_pres_2011.pdf

Best regards,

Abhishek


On Thu, Mar 5, 2020 at 4:43 PM chenboya  wrote:

> Hi, Everybody
>
> I found some difficulties in using the new gem5.org For example, when 
> I want to read the ISCA11 slides in the Event page, address is: 
> http://www.gem5.org/dist/tutorials/isca_pres_2011.pdf
> But when I click, there will be a 404 error, and said:
> "Perhaps this can be found within our m5sim.org website archive:
> http://old.gem5.org/dist/tutorials/isca_pres_2011.pdf.html;
>
> but when I click the old link, there is this info : " This XML file 
> does not appear to have any style information associated with it. The 
> document tree is shown below."
>
> Is there any easy methods to find the old documents?
>

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Question about Data bus

2020-03-09 Thread DaHoon Park
Thank you for your reply, I will try that!
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users