Handle pathological case
authorbdemsky <bdemsky@uci.edu>
Tue, 21 Jul 2020 23:48:44 +0000 (16:48 -0700)
committerbdemsky <bdemsky@uci.edu>
Tue, 21 Jul 2020 23:48:44 +0000 (16:48 -0700)
execution.cc

index 9d80ba4..ce9fa35 100644 (file)
@@ -1197,6 +1197,10 @@ ClockVector * ModelExecution::get_hb_from_write(ModelAction *rf) const {
                                        vec = new ClockVector(rf->get_last_fence_release()->get_cv(), NULL);
                                else
                                        (vec=new ClockVector(vec, NULL))->merge(rf->get_last_fence_release()->get_cv());
+                       } else {
+                               if (vec == NULL && rf->is_rmw()) {
+                                       vec = new ClockVector(NULL, NULL);
+                               }
                        }
                        rf->set_rfcv(vec);
                }