Gabe Black has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/50349 )

 (

5 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
 )Change subject: sim: Drop a hack from MemPools which reset the free page.
......................................................................

sim: Drop a hack from MemPools which reset the free page.

This made it skip over 70 pages to be "what it was before" my page table
changes. I'm not sure what changes this is referring to, and the class
which manages page tables in the guest memory uses the allocPhysPages
method to allocate its memory and would cooperate with anything else
using this mechanism without having to have special accomodation.

I removed this hack and hello world seems to work fine, but there may be
some other test case which exposes some problems.

Change-Id: I16e0d8835452df9c3e79738a1eed05b4cc9372b7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/50349
Tested-by: kokoro <[email protected]>
Reviewed-by: Matthew Poremba <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/sim/mem_pool.cc
1 file changed, 22 insertions(+), 6 deletions(-)

Approvals:
  Matthew Poremba: Looks good to me, approved
  Gabe Black: Looks good to me, approved
  kokoro: Regressions pass




diff --git a/src/sim/mem_pool.cc b/src/sim/mem_pool.cc
index a0d7f53..e489110 100644
--- a/src/sim/mem_pool.cc
+++ b/src/sim/mem_pool.cc
@@ -157,12 +157,6 @@

     for (const auto &mem : memories)
         pools.emplace_back(pageShift, mem.start(), mem.end());
-
-    /*
-     * Set freePage to what it was before Gabe Black's page table changes
-     * so allocations don't trample the page table entries.
-     */
-    pools[0].setFreePage(pools[0].freePage() + 70);
 }

 Addr

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/50349
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I16e0d8835452df9c3e79738a1eed05b4cc9372b7
Gerrit-Change-Number: 50349
Gerrit-PatchSet: 10
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthew Poremba <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to