diff options
author | Steve Reinhardt <Steve.Reinhardt@amd.com> | 2008-11-15 09:30:10 -0800 |
---|---|---|
committer | Steve Reinhardt <Steve.Reinhardt@amd.com> | 2008-11-15 09:30:10 -0800 |
commit | 4514f565e3dfe1de41bbaec05f3f0074e5299bac (patch) | |
tree | e70dc0c3c09f7b035a7c33c69b98562a6c198a23 /src/mem | |
parent | ba8936120e4de7a4cdf6093a0e0cb04e0d1b8a59 (diff) | |
download | gem5-4514f565e3dfe1de41bbaec05f3f0074e5299bac.tar.xz |
syscalls: fix latent brk/obreak bug.
Bogus calls to ChunkGenerator with negative size were triggering
a new assertion that was added there.
Also did a little renaming and cleanup in the process.
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/page_table.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mem/page_table.hh b/src/mem/page_table.hh index b8b52174c..6ff0be082 100644 --- a/src/mem/page_table.hh +++ b/src/mem/page_table.hh @@ -91,11 +91,19 @@ class PageTable /** * Translate function * @param vaddr The virtual address. - * @return Physical address from translation. + * @param paddr Physical address from translation. + * @return True if translation exists */ bool translate(Addr vaddr, Addr &paddr); /** + * Simplified translate function (just check for translation) + * @param vaddr The virtual address. + * @return True if translation exists + */ + bool translate(Addr vaddr) { Addr dummy; return translate(vaddr, dummy); } + + /** * Perform a translation on the memory request, fills in paddr * field of req. * @param req The memory request. |