test: A test program for the new mwait implementation.
Review Request #1621 - Created Jan. 14, 2013 and submitted
| Information | |
|---|---|
| Derek Hower | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9467:84decd4c3a2d --------------------------- test: 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. *Note* This patch was originally created by Marc Orr (morr@cs.wisc.edu)
Issue Summary
10
10
0
0
Review request changed
Updated (Jan. 14, 2013, 1:33 a.m.)
Description: |
|
|---|
Posted (Jan. 25, 2013, 1:23 a.m.)
-
tests/test-progs/mwait/mwait.c (Diff revision 1) -
This is not used anywhere.
-
tests/test-progs/mwait/mwait.c (Diff revision 1) -
It seems you are only using flags[0] and wait[0]. Why create space for 10?
-
tests/test-progs/mwait/mwait.c (Diff revision 1) -
Since the code is being copied from the linux kernel, would it not come under GPL?
-
tests/test-progs/mwait/mwait.c (Diff revision 1) -
How do you know this would run on a different cpu?
Review request changed
Updated (Jan. 25, 2013, 6:11 a.m.)
Posted (Feb. 8, 2013, 8:09 a.m.)
-
tests/test-progs/mwait/Makefile (Diff revision 3) -
Extra space at the end of line.
-
tests/test-progs/mwait/Makefile (Diff revision 3) -
Are sure that pthread.o is available?
-
tests/test-progs/mwait/Makefile (Diff revision 3) -
Why do have Makefile in the dependency list? Had it been the 'all' target which depends on the Makefile, that would look fine. But the .o file should only depend on the .c file.
-
tests/test-progs/mwait/mwait.c (Diff revision 3) -
These constants depend on the the cache line size, as you explained before. I think it would be good if you reintroduce that #define you had earlier (or may be a const variable) that is named cache line size and use that in place of 10.
-
tests/test-progs/mwait/mwait.c (Diff revision 3) -
This argument is not in use anywhere.
Posted (March 4, 2013, 5:43 a.m.)
-
tests/test-progs/mwait/Makefile (Diff revision 3) -
Normally CXX and should not even have to be defined in the Makefile (implicit)
-
tests/test-progs/mwait/Makefile (Diff revision 3) -
The %.o: %.c is an implicit rule. All you have to do is override CPPFLAGS or CXXFLAGS as appropriate
