diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-24 14:35:14 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-14 21:05:36 -0400 |
commit | 00330cd18a4ba83beabad4cb9f4215170828cd29 (patch) | |
tree | 5e2c26d6fa4f383e0ac7e933f33005d6b136fbcd /sim/arm/armos.c | |
parent | fcf102ba7abe6c8a64b2db41bfd02ac80e79e094 (diff) | |
download | gdb-00330cd18a4ba83beabad4cb9f4215170828cd29.zip gdb-00330cd18a4ba83beabad4cb9f4215170828cd29.tar.gz gdb-00330cd18a4ba83beabad4cb9f4215170828cd29.tar.bz2 |
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.
Diffstat (limited to 'sim/arm/armos.c')
-rw-r--r-- | sim/arm/armos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c index 77b256f..72bdf59 100644 --- a/sim/arm/armos.c +++ b/sim/arm/armos.c @@ -437,7 +437,7 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number) case SWI_Time: if (swi_mask & SWI_MASK_DEMON) { - state->Reg[0] = (ARMword) sim_callback->time (sim_callback, NULL); + state->Reg[0] = (ARMword) sim_callback->time (sim_callback); OSptr->ErrorNo = sim_callback->get_errno (sim_callback); } else @@ -592,7 +592,7 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number) break; case AngelSWI_Reason_Time: - state->Reg[0] = (ARMword) sim_callback->time (sim_callback, NULL); + state->Reg[0] = (ARMword) sim_callback->time (sim_callback); OSptr->ErrorNo = sim_callback->get_errno (sim_callback); break; @@ -781,7 +781,7 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number) break; case 17: /* Utime. */ - state->Reg[0] = state->Reg[1] = (ARMword) sim_callback->time (sim_callback, NULL); + state->Reg[0] = state->Reg[1] = (ARMword) sim_callback->time (sim_callback); OSptr->ErrorNo = sim_callback->get_errno (sim_callback); break; |