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); vthreads_delete(lscope);
delete (scope->intern)[idx]; delete (scope->intern)[idx];
break; break;
case vpiIntegerVar:
break;
case vpiMemory: case vpiMemory:
case vpiNetArray: case vpiNetArray:
memory_delete((scope->intern)[idx]); memory_delete((scope->intern)[idx]);
@ -78,6 +76,11 @@ static void delete_sub_scopes(struct __vpiScope *scope)
break; break;
case vpiNet: case vpiNet:
case vpiReg: case vpiReg:
case vpiIntegerVar:
case vpiLongIntVar:
case vpiShortIntVar:
case vpiIntVar:
case vpiByteVar:
signal_delete((scope->intern)[idx]); signal_delete((scope->intern)[idx]);
break; break;
case vpiParameter: 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: case 63:
obj->vpi_type = &vpip_longint_rt; obj->vpi_type = &vpip_longint_rt;
break; break;
default:
assert(0);
} }
return obj; return obj;

View File

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