#! /usr/bin/env perl
-# Copyright (c) 2003 The Regents of The University of Michigan
+# Copyright (c) 2003-2004 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# Everything else on the command line is taken to be an m5 argument to
# be given to both invocations
-$simargs = join(' ', @ARGV);
+$simargs = '"' . join('" "', @ARGV) . '"';
$cmd1 = "$sim1 $simargs --stats:file=tracediff-$$-1.stats 2>&1 |";
$cmd2 = "$sim2 $simargs --stats:file=tracediff-$$-2.stats 2>&1 |";