util: add m5_fail op.
authorLluís Vilanova <vilanova@ac.upc.edu>
Tue, 8 Jan 2013 13:54:12 +0000 (08:54 -0500)
committerLluís Vilanova <vilanova@ac.upc.edu>
Tue, 8 Jan 2013 13:54:12 +0000 (08:54 -0500)
commit807168a1de1b101622d084c5fe160cf41ff3f59d
tree171b272f8fa038c30aceb957a0e259f9419be775
parent858d99b7cc6515aa6a0e75859aa7b5f460b40bb7
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.
configs/common/Simulation.py
src/arch/x86/isa/decoder/two_byte_opcodes.isa
src/sim/pseudo_inst.cc
src/sim/pseudo_inst.hh
util/m5/m5.c
util/m5/m5op.h
util/m5/m5op_x86.S
util/m5/m5ops.h