From 7d42c50253bbaaea4ae004fd3cead21681bc5c24 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 2 Feb 2007 04:48:49 +0000 Subject: [PATCH] Lookaside is invalid when working a new scope. --- tgt-vvp/vvp_process.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tgt-vvp/vvp_process.c b/tgt-vvp/vvp_process.c index 9d4190f60..1547e871b 100644 --- a/tgt-vvp/vvp_process.c +++ b/tgt-vvp/vvp_process.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vvp_process.c,v 1.129 2007/01/19 02:30:19 steve Exp $" +#ident "$Id: vvp_process.c,v 1.130 2007/02/02 04:48:49 steve Exp $" #endif # include "vvp_priv.h" @@ -536,6 +536,10 @@ static int show_stmt_block_named(ivl_statement_t net, ivl_scope_t scope) fprintf(vvp_out, " %%jmp t_%u;\n", out_id); fprintf(vvp_out, "t_%u ;\n", sub_id); + /* The statement within the fork is in a new thread, so no + expression lookaside is valid. */ + clear_expression_lookaside(); + rc = show_stmt_block(net, subscope); fprintf(vvp_out, " %%end;\n"); @@ -1546,6 +1550,9 @@ int draw_func_definition(ivl_scope_t scope) /* * $Log: vvp_process.c,v $ + * Revision 1.130 2007/02/02 04:48:49 steve + * Lookaside is invalid when working a new scope. + * * Revision 1.129 2007/01/19 02:30:19 steve * Fix bad lookaside references in vvp thread code generator. *