main, model: don't 'initialize' system_context
[cdsspec-compiler.git] / model.h
diff --git a/model.h b/model.h
index 723ca43fe3a4f76a667d3ca921f07ea76fdf6f5b..dbf0654fc21b22aec59cb1c1d42ec6fef094a451 100644 (file)
--- a/model.h
+++ b/model.h
@@ -36,14 +36,8 @@ public:
        ModelChecker(struct model_params params);
        ~ModelChecker();
 
-       /** Stores the context for the main model-checking system thread (call
-        * once)
-        * @param ctxt The system context structure
-        */
-       void set_system_context(ucontext_t *ctxt) { system_context = ctxt; }
-
        /** @returns the context for the main model-checking system thread */
-       ucontext_t * get_system_context(void) { return system_context; }
+       ucontext_t * get_system_context() { return &system_context; }
 
        void check_current_action(void);
 
@@ -115,7 +109,7 @@ private:
        ModelAction *diverge;
        thread_id_t nextThread;
 
-       ucontext_t *system_context;
+       ucontext_t system_context;
        action_list_t *action_trace;
        HashTable<int, Thread *, int> *thread_map;