X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cmodelint.cc;h=1632581101e0c5801f8ba14c05d3d12e1fa4c94c;hb=refs%2Fheads%2Fmaster;hp=76b4c90fa51b139cb8e70f891d8cc13692a34515;hpb=b35625b0499717b3caab5344d7278a31fbee9cb6;p=model-checker.git diff --git a/cmodelint.cc b/cmodelint.cc index 76b4c90..1632581 100644 --- a/cmodelint.cc +++ b/cmodelint.cc @@ -1,4 +1,5 @@ #include "model.h" +#include "action.h" #include "cmodelint.h" #include "threads-model.h" @@ -38,5 +39,5 @@ void model_rmwc_action(void *obj, memory_order ord) { /** Issues a fence operation. */ void model_fence_action(memory_order ord) { - model->switch_to_master(new ModelAction(ATOMIC_FENCE, ord, NULL)); + model->switch_to_master(new ModelAction(ATOMIC_FENCE, ord, FENCE_LOCATION)); }