sim: callback: convert time interface to 64-bit

PR sim/27705
Rather than rely on time_t being the right size between the host &
target, have the interface always be 64-bit.  We can figure out if
we need to truncate when actually outputting it to the right target.
This commit is contained in:
Mike Frysinger
2021-04-24 14:35:14 -04:00
parent fcf102ba7a
commit 00330cd18a
11 changed files with 43 additions and 22 deletions

View File

@@ -68,11 +68,10 @@ sim_io_unlink (SIM_DESC sd,
}
long
sim_io_time (SIM_DESC sd,
long *t)
int64_t
sim_io_time (SIM_DESC sd)
{
return STATE_CALLBACK (sd)->time (STATE_CALLBACK (sd), t);
return STATE_CALLBACK (sd)->time (STATE_CALLBACK (sd));
}