README revision 1851:c486924ed90e
1This is release m5_1.1 of the M5 simulator.
2
3This file contains brief "getting started" information and release
4notes.  For more information, see http://m5.eecs.umich.edu.  If you
5have questions, please send mail to m5sim-users@lists.sourceforge.net.
6
7WHAT'S INCLUDED (AND NOT)
8-------------------------
9
10Since you're reading this file, presumably you've managed to untar the
11distribution.  The archive you've unpacked has three subdirectories:
12 - m5: the simulator itself
13 - m5-test: regression tests and scripts to run them
14 - ext: less-common external packages needed to build m5
15 - alpha-system: source for Alpha console and PALcode
16
17M5 is a capable, full-system simulator that current supports both Linux
182.4/2.6 and the proprietary Compaq/HP Tru64 version of Unix. We are able 
19to distribute Linux bootdisks, but we are unable to distribute bootable
20disk images of Tru64 Unix. If you have a Tru64 license and are interested 
21in obtaining disk images, contact us at m5-dev@eecs.umich.edu.
22
23WHAT'S NEEDED
24-------------
25- GCC (version 3.3 or 3.4 recommended)
26- Python 2.3 or newer
27- SCons 0.96.1 (see http://www.scons.org)
28
29WHAT'S RECOMMENDED
30------------------
31- MySQL (for statistics complex statistics storage/retrieval)
32- Python-MysqlDB (for statistics analysis) 
33
34GETTING STARTED
35---------------
36
37There are two different build targets and three optimizations levels:
38
39Target:
40-------
41ALPHA_SE - Syscall emulation simulation
42ALPHA_FS - Full system simulation
43
44Optimization:
45-------------
46m5.debug - debug version of the code with tracing and without optimization
47m5.opt   - optimized version of code with tracing
48m5.fast  - optimized version of the code without tracing and asserts
49
50Different targets are built in different subdirectories of m5/build.
51Binaries with the same target but different optimization levels share
52the same directory.  Note that you can build m5 in any directory you
53choose by copying the SConstruct file there and creating symbolic links
54to the 'm5' and 'ext' directories.
55
56The following steps will build and test the simulator.  The variable
57"$top" refers to the top directory where you've unpacked the files,
58i.e., the one containing the m5, m5-test, and ext directories.  If you
59have a multiprocessor system, you should give scons a "-j N" argument (like
60make) to run N jobs in parallel.
61
62To build and test the syscall-emulation simulator:
63
641. In $top/m5/build, run "scons ALPHA_SE/m5.opt".
652. In $top/m5-test, run "./do-tests.pl -B ALPHA_SE".
66
67The tests should end with "finished do-tests successfully!"
68Note: if you're running under Cygwin, several tests will fail with an
69"EIO trace inconsistency: ICNT mismatch" error.  This is due to the
70lack of fesetround() under Cygwin causing differences in floating-point
71rounding.  Other than that discrepancy your simulator is working perfectly.
72
73To build and test the full-system simualator:
74
751. Download the full-system binary package from XXX.  This package includes
76   disk images and kernel, palcode, and console binaries for Linux and FreeBSD.
772. Edit SYSTEMDIR in $top/m5-test/SysPaths.py to point to your local copy
78   of the binaries.
793. In $top/m5/build, run "scons ALPHA_FS/m5.opt".
804. In $top/m5-test, run "./do-tests.pl -B ALPHA_FS".
81
82