Re: [Gems-users] physical_address 0


Date: Thu, 18 Jan 2007 18:45:12 -0600
From: Philip Garcia <pcgarcia@xxxxxxxx>
Subject: Re: [Gems-users] physical_address 0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't know how solaris does it, but I know I have observed in Linux that memory that has been allocated with malloc will translate to physical address 0 before that page has been written to. The translation will be valid, however read only. Upon a write to the logical memory address linux will perform a page fault and point the logical address to a valid physical page in memory. This appears to be a trick on top of standard demand paging. You might want to check if this still happens after the memory has been written to.

Phil
On Jan 18, 2007, at 6:37 PM, Dave Z. wrote:

Hi,

I have a quick question about mem_trans object in SimicsProcessor::makeRequest. Is it something expected to have mem_trans->s.physical_address=0? I've printed the physical addresses of some logical addresses and they are all 0. Here is what I do:

 if (mem_trans->s.logical_address == XXX)
printf("logical address %x physical address %x\n", mem_trans- >s.logical_address, mem_trans->s.physical_address);

Thanks,

Dave





______________________________________________________________________ ______________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFsBSYkSK2LwjyZ3wRAkIjAJ9A00n8HTFPBq1GjbTHex83OIr8QgCfR8fH
tZHbc0ScCAbJzkDiEuTQGc4=
=jRBb
-----END PGP SIGNATURE-----
[← Prev in Thread] Current Thread [Next in Thread→]