m5: Expose m5 pseudo-instructions to C/C++ via a static library
authorJames Clarkson <james.clarkson@arm.com>
Tue, 9 Oct 2012 11:58:25 +0000 (12:58 +0100)
committerJames Clarkson <james.clarkson@arm.com>
Tue, 9 Oct 2012 11:58:25 +0000 (12:58 +0100)
commitfdcfbda38d02097720a3215422ee2fc2018b61f7
tree2e5bdac22bd0d6b51f0e219da6da9eff4d39ba28
parent81406018b0688e956452cd3e00c1ab9aeb9af764
m5: Expose m5 pseudo-instructions to C/C++ via a static library

Updated the util/m5/Makefile.arm so that m5op_arm.S is used to create
a static library - libm5.a. Allowing users to insert m5
psuedo-instructions into their applications for fine-grained
checkpointing, switching cpus or dumping statistics. e.g.

#include <m5op.h>

void foo(){
...
m5_reset_stats(<delay>,<period>)
m5_work_begin(<workid>,<threadid>);
...
m5_work_end(<workid>,<threadid>);
m5_dump_stats(<delay>,<period>);
}
util/m5/Makefile.arm
util/m5/Makefile.thumb
util/m5/m5op.h