action: allow fence ModelActions to have location == NULL
authorBrian Norris <banorris@uci.edu>
Mon, 3 Dec 2012 21:27:58 +0000 (13:27 -0800)
committerBrian Norris <banorris@uci.edu>
Mon, 3 Dec 2012 21:27:58 +0000 (13:27 -0800)
action.cc

index 9427c7d..402ff50 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -37,7 +37,7 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc,
        sleep_flag(false)
 {
        /* References to NULL atomic variables can end up here */
-       ASSERT(loc || type == MODEL_FIXUP_RELSEQ);
+       ASSERT(loc || type == ATOMIC_FENCE || type == MODEL_FIXUP_RELSEQ);
 
        Thread *t = thread ? thread : thread_current();
        this->tid = t->get_id();