There is a virtual-to-physical address translation in SE mode, primarily to
allow sparse virtual address spaces to map onto a contiguous range of
physical addresses.  Typically SE mode uses a functional page table that's
just an STL map, as provided by the FuncPageTable class in
src/mem/page_table.{hh,cc}.

The page size is available as TheISA::PageBytes, which is defined in the
ISA-specific isa_traits.hh files (typically defined based on PageShift).

Steve

On Sat, Feb 6, 2016 at 9:39 PM Gnanambikai Krishnakumar <
[email protected]> wrote:

> Thanks Steve. I see that pkt->req->getVaddr() is not equal to
> pkt->req->getPaddr() in se.py. So what kind of address translation takes
> place here? Are there any page tables maintained in se.py ,even when there
> is no OS?
>
> How do I get the size of a page?
>
> I see this in isa_traits.hh
>
>> const Addr PageShift = 13;
>>
>
> Is this the correct place to look into ?
>
>
> On Sat, Feb 6, 2016 at 11:54 PM, Steve Reinhardt <[email protected]> wrote:
>
>> There was an effort several years ago to reorganize the documentation on
>> the wiki which led to creating an outline, but then the effort stalled and
>> parts of the outline were not filled in.  I expect that's what happened
>> here.
>>
>> If you have specific questions about address translation, feel free to
>> ask them on the mailing list.
>>
>> Steve
>>
>> On Sat, Feb 6, 2016 at 6:44 AM Gnanambikai Krishnakumar <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> The address translation wiki page
>>> <http://www.m5sim.org/Address_Translation> does not contain any
>>> information except for the titles. Can you someone help here?
>>>
>>> Thanks & Regards,
>>> Gnanambikai
>>> _______________________________________________
>>> 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
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to