diff options
author | Lluís Vilanova <vilanova@ac.upc.edu> | 2013-01-08 08:54:12 -0500 |
---|---|---|
committer | Lluís Vilanova <vilanova@ac.upc.edu> | 2013-01-08 08:54:12 -0500 |
commit | 807168a1de1b101622d084c5fe160cf41ff3f59d (patch) | |
tree | 171b272f8fa038c30aceb957a0e259f9419be775 /util/m5/m5ops.h | |
parent | 858d99b7cc6515aa6a0e75859aa7b5f460b40bb7 (diff) | |
download | gem5-807168a1de1b101622d084c5fe160cf41ff3f59d.tar.xz |
util: add m5_fail op.
Used as a command in full-system scripts helps the user ensure the benchmarks have finished successfully.
For example, one can use:
/path/to/benchmark args || /sbin/m5 fail 1
and thus ensure gem5 will exit with an error if the benchmark fails.
Diffstat (limited to 'util/m5/m5ops.h')
-rw-r--r-- | util/m5/m5ops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/m5/m5ops.h b/util/m5/m5ops.h index f08524014..8ff1ac42f 100644 --- a/util/m5/m5ops.h +++ b/util/m5/m5ops.h @@ -40,6 +40,7 @@ #define deprecated2_func 0x11 // obsolete ivle #define deprecated3_func 0x20 // deprecated exit function #define exit_func 0x21 +#define fail_func 0x22 #define initparam_func 0x30 #define loadsymbol_func 0x31 #define resetstats_func 0x40 |