summaryrefslogtreecommitdiff
path: root/tests/configs/tgen-simple-mem.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:37 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-01-07 13:05:37 -0500
commit1da209140cd7bf267315b10698bf14c21a76b1b8 (patch)
treefdfc048fe02cdd6862a21361484e75c97fca4366 /tests/configs/tgen-simple-mem.py
parent9c5ef235cc595d0f51b0810786c2b512bef7c69f (diff)
downloadgem5-1da209140cd7bf267315b10698bf14c21a76b1b8.tar.xz
cpu: Add support for protobuf input for the trace generator
This patch adds support for reading input traces encoded using protobuf according to what is done in the CommMonitor. A follow-up patch adds a Python script that can be used to convert the previously used ASCII traces to protobuf equivalents. The appropriate regression input is updated as part of this patch.
Diffstat (limited to 'tests/configs/tgen-simple-mem.py')
-rw-r--r--tests/configs/tgen-simple-mem.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/configs/tgen-simple-mem.py b/tests/configs/tgen-simple-mem.py
index ae7364214..d402e557c 100644
--- a/tests/configs/tgen-simple-mem.py
+++ b/tests/configs/tgen-simple-mem.py
@@ -38,6 +38,11 @@
import m5
from m5.objects import *
+# both traffic generator and communication monitor are only available
+# if we have protobuf support, so potentially skip this test
+require_sim_object("TrafficGen")
+require_sim_object("CommMonitor")
+
# even if this is only a traffic generator, call it cpu to make sure
# the scripts are happy
cpu = TrafficGen(config_file = "tests/quick/se/70.tgen/tgen-simple-mem.cfg")