summaryrefslogtreecommitdiff
path: root/tests/configs/ruby_config.py
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-01-29 20:29:40 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-01-29 20:29:40 -0800
commitab2f864af2fd38cbf141708550409f3ca72c675f (patch)
tree75b861a290240275d872a58d393a6d6f7e5598d5 /tests/configs/ruby_config.py
parentceae8383ffeebdc2c12d9a383941c62653471de1 (diff)
downloadgem5-ab2f864af2fd38cbf141708550409f3ca72c675f.tar.xz
m5: Regression Tester Update
This patch includes the necessary regression updates to test the new ruby configuration system. The patch includes support for multiple ruby protocols and adds the ruby random tester. The patch removes atomic mode test for ruby since ruby does not support atomic mode acceses. These tests can be added back in when ruby supports atomic mode for real. --HG-- rename : tests/quick/50.memtest/test.py => tests/quick/60.rubytest/test.py
Diffstat (limited to 'tests/configs/ruby_config.py')
-rw-r--r--tests/configs/ruby_config.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/configs/ruby_config.py b/tests/configs/ruby_config.py
deleted file mode 100644
index 190337e67..000000000
--- a/tests/configs/ruby_config.py
+++ /dev/null
@@ -1,30 +0,0 @@
-import os
-import subprocess
-
-from os.path import dirname, join as joinpath
-
-import m5
-from m5.params import *
-
-def generate(config_file, cores=1, memories=1, memory_size=1024, \
- cache_size=32768, cache_assoc=8, dmas=1,
- ruby_tick='1t', ports_per_cpu=2, protocol='MOESI_CMP_directory'):
- default = joinpath(dirname(__file__), '../../src/mem/ruby/config')
- ruby_config = os.environ.get('RUBY_CONFIG', default)
- args = [ "ruby", "-I", ruby_config, joinpath(ruby_config, "print_cfg.rb"),
- "-c", str(protocol),
- "-r", joinpath(ruby_config, config_file), "-p", str(cores),
- "-m", str(memories), "-s", str(memory_size), "-C", str(cache_size),
- "-A", str(cache_assoc), "-D", str(dmas)]
-
- temp_config = joinpath(m5.options.outdir, "ruby.config")
- ret = subprocess.call(args, stdout=file(temp_config, "w"))
- if ret != 0:
- raise RuntimeError, "subprocess failed!"
-
- return m5.objects.RubyMemory(clock = ruby_tick,
- config_file = temp_config,
- num_cpus = cores,
- range = AddrRange(str(memory_size)+"MB"),
- num_dmas = dmas,
- ports_per_core = ports_per_cpu)