diff options
author | Marc Orr <morr@cs.wisc.edu> | 2014-11-06 05:42:21 -0600 |
---|---|---|
committer | Marc Orr <morr@cs.wisc.edu> | 2014-11-06 05:42:21 -0600 |
commit | 3947f88d0fa35d2134fa3e999e05bb184a01e396 (patch) | |
tree | 0eeff86094d8721cffb673cb39d9434d55a1ab88 /tests/test-progs/mwait/Makefile | |
parent | bd32d55a2c457e7e68c1462d05fa126aa131a21a (diff) | |
download | gem5-3947f88d0fa35d2134fa3e999e05bb184a01e396.tar.xz |
tests: A test program for the new mwait implementation.
This is a simple test program for the new mwait implemenation. It is uses
m5threads to create to threads of execution in syscall emulation mode that
interact using the mwait instruction.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'tests/test-progs/mwait/Makefile')
-rw-r--r-- | tests/test-progs/mwait/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test-progs/mwait/Makefile b/tests/test-progs/mwait/Makefile new file mode 100644 index 000000000..6b888118d --- /dev/null +++ b/tests/test-progs/mwait/Makefile @@ -0,0 +1,20 @@ + +CPP := g++ + +TEST_OBJS := mwait.o +TEST_PROGS := $(TEST_OBJS:.o=) + +# ==== Rules ================================================================== + +.PHONY: default clean + +default: $(TEST_PROGS) + +clean: + $(RM) $(TEST_OBJS) $(TEST_PROGS) + +$(TEST_PROGS): $(TEST_OBJS) + $(CPP) -static -o $@ $@.o pthread.o + +%.o: %.c Makefile + $(CPP) -c -o $@ $*.c -msse3 |