# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# ident "@(#)README.exit_at 1.1 05/10/05 SMI"
# Using the 'exit_at' feature to stop the simulation
# This explains how to enable and use the 'exit_at' feature
[-] Enabling this Features:
You will need to compile legion with PERFORMANCE_CHECK=1.
Edit your GNUMakefile in your legion build directory and
Modify your legion config file and add the 'exit_at' value
to your processor directive.
exit_at 0x1234567; // stop legion when instn cnt >= 0x1234567
When running legion in this mode, the simulation will check for
a match between instn_count and the exit_at value every 10000000
instructions. If your exit_at value is not a factor of this
interval, legion will stop within 10000000 of your exit_at
fatal: Reached the value for exit_at in conf file 0x1234567, current icount=0x1312d00