Hi Samuel, 

self in this case is the system. 

./build/ARM/m5.opt
--list-sim-objects should provide you a list of all objects and
parameters, however now that I run it there is a bug and it's not
printing everything. Until we get it fixed looking at the *py files in
src is your best bet. 

Ali 

On 29.02.2012 10:49, Samuel Hitz wrote:


> Hi Ali, 
> Thanks for your help. 
> Just to make clear, this would
be in my config python script right? And to which class 'self' refers to
in this example? Also is there some centralized documentation, or do I
have to search through the implementation files to get all the possible
settings I can make in the config script? 
> Best, 
> Samuel 
> 
> On
Wed, Feb 29, 2012 at 5:35 PM, Ali Saidi <sa...@umich.edu [4]> wrote:
>

>> Hi Samuel, 
>> 
>> You can include a ram disk by taking part of the
physical memory and placing a ram disk there. For example for a ram disk
in linux (provided you had a ram disk driver is the kernel), you could
add something like: 
>> 
>> self.ramdisk = PhysicalMemory(range =
AddrRange(Addr('128MB'), size = '128MB'), file='/path/to/ramdisk.img')

>> 
>> and assuming you only specified 128MB of DRAM the upper 128MB
would be used for ramdisk. 
>> 
>> The easiest thing to do is an ELF
file. 
>> 
>> Ali 
>> 
>> On 29.02.2012 10:15, Samuel Hitz wrote: 
>>

>>> Hi there, 
>>> I'm trying to port Barrelfish [1] to ARMv7 modeled
by gem5. As I'm new to using gem5, I have some simple questions to start
with. 
>>> 1. What's the best/easiest way to include a ramdisk in gem5?
Shall I pack it in the same file as the kernel or can I somehow specify,
where the ramdisk should be loaded into memory in the script? As far as
I see it, with gem5 one doesn't need/have a bootloader where such things
could be specified. 
>>> 2. What format should the kernel object file
have? Does it work with an ELF file or should I use a raw image? 
>>>
Help is much appreciated. 
>>> Best, 
>>> Samuel
>> 
>>
_______________________________________________
>> gem5-users mailing
list
>> gem5-users@gem5.org [2]
>>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [3]




Links:
------
[1] http://www.barrelfish.org/
[2]
mailto:gem5-users@gem5.org
[3]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[4]
mailto:sa...@umich.edu
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to