From e7c2e06260652bc62bcde812ffe4dc30bc319ee2 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 5 Mar 2005 05:45:18 +0000 Subject: [PATCH] Check that lead.mv vector width matches word. --- vvp/vthread.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vvp/vthread.cc b/vvp/vthread.cc index baf0a0e08..521a9e2e1 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vthread.cc,v 1.130 2005/03/03 04:33:10 steve Exp $" +#ident "$Id: vthread.cc,v 1.131 2005/03/05 05:45:18 steve Exp $" #endif # include "config.h" @@ -1707,6 +1707,10 @@ bool of_LOAD_MV(vthread_t thr, vvp_code_t cp) vvp_vector4_t word = memory_get_word(cp->mem, adr); + if (word.size() != wid) { + fprintf(stderr, "internal error: mem width=%u, word.size()=%u, wid=%u\n", + memory_word_width(cp->mem), word.size(), wid); + } assert(word.size() == wid); for (unsigned idx = 0 ; idx < wid ; idx += 1, bit += 1) { @@ -3095,6 +3099,9 @@ bool of_JOIN_UFUNC(vthread_t thr, vvp_code_t cp) /* * $Log: vthread.cc,v $ + * Revision 1.131 2005/03/05 05:45:18 steve + * Check that lead.mv vector width matches word. + * * Revision 1.130 2005/03/03 04:33:10 steve * Rearrange how memories are supported as vvp_vector4 arrays. *