3947f88d0f
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>
20 lines
353 B
Makefile
20 lines
353 B
Makefile
|
|
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
|