From 96443f1338ec79921185a5acca5dd90abf6833a3 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 20 Mar 2007 04:26:56 +0000 Subject: [PATCH] Clear lookaside even if source bit is a constant. --- tgt-vvp/vector.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tgt-vvp/vector.c b/tgt-vvp/vector.c index c552def3b..82cfe1968 100644 --- a/tgt-vvp/vector.c +++ b/tgt-vvp/vector.c @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vector.c,v 1.12 2007/02/26 19:49:50 steve Exp $" +#ident "$Id: vector.c,v 1.13 2007/03/20 04:26:56 steve Exp $" #endif # include "vvp_priv.h" @@ -200,7 +200,7 @@ void save_signal_lookaside(unsigned addr, ivl_signal_t sig, unsigned sig_word, u { unsigned idx; /* Don't bind any of hte low bits to a signal. */ - if (addr < 8) + if (addr < 8 && wid > 0) return; assert((addr+wid) <= MAX_VEC); @@ -372,6 +372,9 @@ unsigned allocate_vector_exp(ivl_expr_t exp, unsigned wid, /* * $Log: vector.c,v $ + * Revision 1.13 2007/03/20 04:26:56 steve + * Clear lookaside even if source bit is a constant. + * * Revision 1.12 2007/02/26 19:49:50 steve * Spelling fixes (larry doolittle) *