| 1 | # |
| 2 | # Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
| 3 | # Use is subject to license terms. |
| 4 | # |
| 5 | # ident "@(#)README.exit_at 1.1 05/10/05 SMI" |
| 6 | # |
| 7 | # |
| 8 | # Using the 'exit_at' feature to stop the simulation |
| 9 | # |
| 10 | # This explains how to enable and use the 'exit_at' feature |
| 11 | # |
| 12 | |
| 13 | [-] Enabling this Features: |
| 14 | |
| 15 | 1) Recompile legion |
| 16 | You will need to compile legion with PERFORMANCE_CHECK=1. |
| 17 | Edit your GNUMakefile in your legion build directory and |
| 18 | re-compile legion. |
| 19 | |
| 20 | 2) Edit your config file |
| 21 | Modify your legion config file and add the 'exit_at' value |
| 22 | to your processor directive. |
| 23 | |
| 24 | Examples: |
| 25 | processor "niagara" { |
| 26 | clkfreq 5000000 ; |
| 27 | cores 1; |
| 28 | vthreads 1; |
| 29 | nglobals 4; |
| 30 | nwins 8; |
| 31 | rstv 0xfff0000020; |
| 32 | maxtl 7; |
| 33 | exit_at 0x1234567; // stop legion when instn cnt >= 0x1234567 |
| 34 | } |
| 35 | |
| 36 | [-] Output |
| 37 | |
| 38 | When running legion in this mode, the simulation will check for |
| 39 | a match between instn_count and the exit_at value every 10000000 |
| 40 | instructions. If your exit_at value is not a factor of this |
| 41 | interval, legion will stop within 10000000 of your exit_at |
| 42 | value. |
| 43 | |
| 44 | |
| 45 | Example: |
| 46 | |
| 47 | fatal: Reached the value for exit_at in conf file 0x1234567, current icount=0x1312d00 |
| 48 | |
| 49 | |
| 50 | |