gracefully kill htif thread, fixing tty stuff
This commit is contained in:
parent
a86ad08c1e
commit
d2e1828714
@ -176,6 +176,8 @@ int main(int argc, char** argv)
|
|||||||
if (vcd)
|
if (vcd)
|
||||||
fclose(vcdfile);
|
fclose(vcdfile);
|
||||||
|
|
||||||
|
delete htif;
|
||||||
|
|
||||||
if (failure)
|
if (failure)
|
||||||
{
|
{
|
||||||
fprintf(logfile, "*** FAILED *** (%s) after %lld cycles\n", failure, (long long)trace_count);
|
fprintf(logfile, "*** FAILED *** (%s) after %lld cycles\n", failure, (long long)trace_count);
|
||||||
|
@ -101,6 +101,11 @@ void htif_init
|
|||||||
htif = new htif_emulator_t(args);
|
htif = new htif_emulator_t(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void htif_fini()
|
||||||
|
{
|
||||||
|
delete htif;
|
||||||
|
}
|
||||||
|
|
||||||
void htif_tick
|
void htif_tick
|
||||||
(
|
(
|
||||||
vc_handle htif_in_valid,
|
vc_handle htif_in_valid,
|
||||||
|
Loading…
Reference in New Issue
Block a user