Get the vvp code to compile with the valgrind hooks again.

This patch updates the vvp code so it will compile with the valgrind hooks
again. There are still new constructs that need to be cleaned up correctly
and some old constructs were changed enough that the old code no longer
works, but the rest of this can be done as an incremental improvement.
This commit is contained in:
Cary R
2012-10-08 18:53:55 -07:00
parent e0f82981e7
commit f957deeca7
13 changed files with 110 additions and 73 deletions
+3 -1
View File
@@ -711,12 +711,14 @@ void print_vpi_call_errors()
#ifdef CHECK_WITH_VALGRIND
static void cleanup_vpi_call_args(unsigned argc, vpiHandle*argv)
{
#if 0
if (argc) {
struct __vpiSysTaskCall*obj = new struct __vpiSysTaskCall;
obj->nargs = argc;
obj->args = argv;
vpi_call_delete(&obj->base);
}
#endif
}
#endif
@@ -837,7 +839,7 @@ void vpi_call_delete(vpiHandle item)
/* The object can be NULL if there was an error. */
if (!obj) return;
for (unsigned arg = 0; arg < obj->nargs; arg += 1) {
switch (obj->args[arg]->vpi_type->type_code) {
switch (obj->args[arg]->get_type_code()) {
case vpiConstant:
switch (vpi_get(_vpiFromThr, obj->args[arg])) {
case _vpiNoThr: