diff options
| author | Brian Campbell | 2020-10-12 22:51:24 +0100 |
|---|---|---|
| committer | Brian Campbell | 2020-10-14 22:46:27 +0100 |
| commit | 1badb1e51560be89951fff0cd04cdc59fcf4b1f3 (patch) | |
| tree | 435b868aa6e003b170be6736916534475efe37f6 /lib/rts.c | |
| parent | 8b6a4923645c733af26d0650617844200996b350 (diff) | |
Support C coverage when sail_exit is used
Diffstat (limited to 'lib/rts.c')
| -rw-r--r-- | lib/rts.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -10,9 +10,12 @@ static uint64_t g_elf_entry; uint64_t g_cycle_count = 0; static uint64_t g_cycle_limit; +extern void model_pre_exit(); + unit sail_exit(unit u) { fprintf(stderr, "[Sail] Exiting after %" PRIu64 " cycles\n", g_cycle_count); + model_pre_exit(); exit(EXIT_SUCCESS); return UNIT; } |
