Fix valgrind code to work with new SV types.

This commit is contained in:
Cary R 2010-10-22 15:12:53 -07:00 committed by Stephen Williams
parent fc2ab8f7c2
commit 77feb50d7b
3 changed files with 7 additions and 5 deletions

View File

@ -63,8 +63,6 @@ static void delete_sub_scopes(struct __vpiScope *scope)
vthreads_delete(lscope);
delete (scope->intern)[idx];
break;
case vpiIntegerVar:
break;
case vpiMemory:
case vpiNetArray:
memory_delete((scope->intern)[idx]);
@ -78,6 +76,11 @@ static void delete_sub_scopes(struct __vpiScope *scope)
break;
case vpiNet:
case vpiReg:
case vpiIntegerVar:
case vpiLongIntVar:
case vpiShortIntVar:
case vpiIntVar:
case vpiByteVar:
signal_delete((scope->intern)[idx]);
break;
case vpiParameter:

View File

@ -997,6 +997,8 @@ vpiHandle vpip_make_int2(const char*name, int msb, int lsb, vvp_net_t*vec)
case 63:
obj->vpi_type = &vpip_longint_rt;
break;
default:
assert(0);
}
return obj;

View File

@ -155,9 +155,6 @@ vvp_net_t::vvp_net_t()
out_ = vvp_net_ptr_t(0,0);
fun = 0;
fil = 0;
#ifdef CHECK_WITH_VALGRIND
pool = NULL;
#endif
}
void vvp_net_t::link(vvp_net_ptr_t port_to_link)