x86 isa: This patch attempts an implementation at mwait.
Review Request #2471 - Created Nov. 3, 2014 and submitted - Latest diff uploaded
| Information | |
|---|---|
| Marc Orr | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Note: This was orginally posted by Derek Hower as: http://reviews.m5sim.org/r/1622/ I've updated the patch to work with the tip of the repository and done some simple testing on it. Thanks, Marc Changeset 10501:d945f688d61f --------------------------- x86 isa: This patch attempts an implementation at mwait. Mwait works as follows: 1. A cpu monitors an address of interest (monitor instruction) 2. A cpu calls mwait - this loads the cache line into that cpu's cache. 3. The cpu goes to sleep. 4. When another processor requests write permission for the line, it is evicted from the sleeping cpu's cache. This eviction is forwarded to the sleeping cpu, which then wakes up.
