Make vthread_put_but expand the space if needed.

This commit is contained in:
steve 2001-05-20 00:56:48 +00:00
parent 224af78463
commit e6f1510a40
1 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) #if !defined(WINNT)
#ident "$Id: vthread.cc,v 1.39 2001/05/10 00:26:53 steve Exp $" #ident "$Id: vthread.cc,v 1.40 2001/05/20 00:56:48 steve Exp $"
#endif #endif
# include "vthread.h" # include "vthread.h"
@ -138,7 +138,7 @@ unsigned vthread_get_bit(struct vthread_s*thr, unsigned addr)
void vthread_put_bit(struct vthread_s*thr, unsigned addr, unsigned bit) void vthread_put_bit(struct vthread_s*thr, unsigned addr, unsigned bit)
{ {
assert(addr < thr->nbits); thr_check_addr(thr, addr);
thr_put_bit(thr, addr, bit); thr_put_bit(thr, addr, bit);
} }
@ -1005,6 +1005,9 @@ bool of_ZOMBIE(vthread_t thr, vvp_code_t)
/* /*
* $Log: vthread.cc,v $ * $Log: vthread.cc,v $
* Revision 1.40 2001/05/20 00:56:48 steve
* Make vthread_put_but expand the space if needed.
*
* Revision 1.39 2001/05/10 00:26:53 steve * Revision 1.39 2001/05/10 00:26:53 steve
* VVP support for memories in expressions, * VVP support for memories in expressions,
* including general support for thread bit * including general support for thread bit