diff --git a/t-vvm.cc b/t-vvm.cc index 84ccf81a0..e241a358f 100644 --- a/t-vvm.cc +++ b/t-vvm.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: t-vvm.cc,v 1.181 2000/10/28 00:51:42 steve Exp $" +#ident "$Id: t-vvm.cc,v 1.182 2000/10/29 17:10:02 steve Exp $" #endif # include @@ -2698,6 +2698,8 @@ bool target_vvm::proc_block(const NetBlock*net) defn << " thr->callee_["<callee_["<scope;" << endl; defn << " thr->callee_["<callee_ = new vvm_thread;" << endl; defn << " thr->callee_->back_ = thr;" << endl; defn << " thr->callee_->step_ = &" << name << "_step_0_;" << endl; + defn << " thr->callee_->scope = &" << mangle(net->name()) + << "_scope;" << endl; defn << " thr->callee_->thread_yield();" << endl; defn << " thr->step_ = &" << thread_class_ << "_step_" << out_step << "_;" << endl; @@ -3394,6 +3398,9 @@ extern const struct target tgt_vvm = { }; /* * $Log: t-vvm.cc,v $ + * Revision 1.182 2000/10/29 17:10:02 steve + * task threads ned their scope initialized. (PR#32) + * * Revision 1.181 2000/10/28 00:51:42 steve * Add scope to threads in vvm, pass that scope * to vpi sysTaskFunc objects, and add vpi calls diff --git a/vvm/vpi_scope.c b/vvm/vpi_scope.c index 22ec7b502..e97347d36 100644 --- a/vvm/vpi_scope.c +++ b/vvm/vpi_scope.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: vpi_scope.c,v 1.8 2000/10/28 00:51:42 steve Exp $" +#ident "$Id: vpi_scope.c,v 1.9 2000/10/29 17:10:02 steve Exp $" #endif # include "vpi_priv.h" @@ -30,7 +30,8 @@ static char* scope_get_str(int code, vpiHandle obj) assert((obj->vpi_type->type_code == vpiModule) - || (obj->vpi_type->type_code == vpiNamedBegin)); + || (obj->vpi_type->type_code == vpiNamedBegin) + || (obj->vpi_type->type_code == vpiTask)); switch (code) { case vpiFullName: @@ -147,6 +148,9 @@ void vpip_attach_to_scope(struct __vpiScope*ref, vpiHandle obj) /* * $Log: vpi_scope.c,v $ + * Revision 1.9 2000/10/29 17:10:02 steve + * task threads ned their scope initialized. (PR#32) + * * Revision 1.8 2000/10/28 00:51:42 steve * Add scope to threads in vvm, pass that scope * to vpi sysTaskFunc objects, and add vpi calls