tests: Update x86 system.py for MemCtrl interface
authorJason Lowe-Power <jason@lowepower.com>
Thu, 10 Sep 2020 19:06:56 +0000 (12:06 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Fri, 11 Sep 2020 05:31:31 +0000 (05:31 +0000)
Change-Id: If4103b197720f74df70d0a24602e2b3715936826
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34315
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: mike upton <michaelupton@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/gem5/x86-boot-tests/system/system.py

index b050b6f3a03192f9895d46d45b65fb0c07995838..7b9bd6897aed31bcc40b6afd6cb1923af89bb5e5 100755 (executable)
@@ -171,8 +171,8 @@ class MySystem(System):
 
     def _createMemoryControllers(self, num, cls):
         self.mem_cntrls = [
-            cls(range = self.mem_ranges[0],
-                port = self.membus.master)
+            MemCtrl(dram = cls(range = self.mem_ranges[0]),
+                    port = self.membus.master)
             for i in range(num)
         ]