summaryrefslogtreecommitdiff
path: root/configs/example/ruby_direct_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'configs/example/ruby_direct_test.py')
-rw-r--r--configs/example/ruby_direct_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/configs/example/ruby_direct_test.py b/configs/example/ruby_direct_test.py
index fe96bdc2d..f511b0139 100644
--- a/configs/example/ruby_direct_test.py
+++ b/configs/example/ruby_direct_test.py
@@ -92,7 +92,8 @@ else:
# actually used by the rubytester, but is included to support the
# M5 memory size == Ruby memory size checks
#
-system = System(physmem = SimpleMemory())
+system = System(physmem = SimpleMemory(),
+ mem_ranges = [AddrRange(options.mem_size)])
# Create a top-level voltage domain and clock domain
@@ -136,6 +137,6 @@ m5.ticks.setGlobalFrequency('1ns')
m5.instantiate()
# simulate until program terminates
-exit_event = m5.simulate(options.maxtick)
+exit_event = m5.simulate(options.abs_max_tick)
print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()