Skip to content

Commit

Permalink
Fix valgrind code to work with new SV types.
Browse files Browse the repository at this point in the history
  • Loading branch information
caryr authored and steveicarus committed Nov 2, 2010
1 parent fc2ab8f commit 77feb50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions vvp/vpi_scope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions vvp/vpi_signal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions vvp/vvp_net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77feb50

Please sign in to comment.