M5 sim installation
1. nrs@nrs-OptiPlex-745:~$ sudo apt-get install g++ python-dev scons swig zlib1g-dev m4 mercurial patch subversion
2. hg clone http://repo.m5sim.org/m5
3. nrs@nrs-OptiPlex-745:~/m5$ scons build_opts/X86_SE/m5.opt
scons: Reading SConscript files ...
You're missing the M5 style hook.
Please install the hook so we can ensure that all code fits a common style.
All you'd need to do is add the following lines to your repository .hg/hgrc
or your personal .hgrc
----------------
[extensions]
style = ./util/style.py
[hooks]
pretxncommit.style = python:style.check_style
pre-qrefresh.style = python:style.check_style
4. The program 'style' is currently not installed. You can install it by typing:
sudo apt-get install diction
during compilation don't use sudo. Simply compile using scons in the given directory.
5. sudo apt-get install diction
6. scons build/ALPHA_FS/m5.debug
7. scons build/X86_FS/m5.debug
8. download the vmlinux files for the respective ISA
9. mkdir /dist/m5/system and extract the files there.
10. now for running the program use
cd ~/m5
sudo ./build/ALPHA_FS/m5.opt configs/example/fs.py
1. nrs@nrs-OptiPlex-745:~$ sudo apt-get install g++ python-dev scons swig zlib1g-dev m4 mercurial patch subversion
2. hg clone http://repo.m5sim.org/m5
3. nrs@nrs-OptiPlex-745:~/m5$ scons build_opts/X86_SE/m5.opt
scons: Reading SConscript files ...
You're missing the M5 style hook.
Please install the hook so we can ensure that all code fits a common style.
All you'd need to do is add the following lines to your repository .hg/hgrc
or your personal .hgrc
----------------
[extensions]
style = ./util/style.py
[hooks]
pretxncommit.style = python:style.check_style
pre-qrefresh.style = python:style.check_style
4. The program 'style' is currently not installed. You can install it by typing:
sudo apt-get install diction
during compilation don't use sudo. Simply compile using scons in the given directory.
5. sudo apt-get install diction
6. scons build/ALPHA_FS/m5.debug
7. scons build/X86_FS/m5.debug
8. download the vmlinux files for the respective ISA
9. mkdir /dist/m5/system and extract the files there.
10. now for running the program use
cd ~/m5
sudo ./build/ALPHA_FS/m5.opt configs/example/fs.py