mem: Resolve TrafficGen trace relative to the config
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 20 Jun 2016 13:49:37 +0000 (14:49 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 20 Jun 2016 13:49:37 +0000 (14:49 +0100)
commitefb7fb6f852eeedc2cd226332372e7544eb011d7
tree7e24c25bb0d53ec9258b1cce1365d14887d45b56
parent2c91ccfbe8efc59bf838e681d43f289adf663225
mem: Resolve TrafficGen trace relative to the config

The traffic generator currently resolves relative trace paths relative
to gem5's current working directory. This can lead to surprising
results for relative paths where the expectation would normally be
that they are resolved relative to the configuration file. This
changeset implements config-relative trace file lookups. The old
behavior is kept as a fallback for configs that expect that behavior.

Change-Id: I1bda4e16725842666ffc37dcb6838c23a6ff138c
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
src/cpu/testers/traffic_gen/traffic_gen.cc
src/cpu/testers/traffic_gen/traffic_gen.hh
tests/quick/se/70.tgen/tgen-simple-mem.cfg