qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* linux-user - time64 question
@ 2020-05-05 21:38 Sid Manning
  2020-05-27 16:23 ` Laurent Vivier
  0 siblings, 1 reply; 3+ messages in thread
From: Sid Manning @ 2020-05-05 21:38 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

I’m looking at a testcase failure when my target uses 64bit time in msg.h (struct msqid_ds).  I’ve been able to get around this but changing target_msqid_ds like so:

@@ -3900,18 +3901,9 @@ static inline abi_long do_semop(int semid, abi_long ptr,
unsigned nsops)
 struct target_msqid_ds
 {
     struct target_ipc_perm msg_perm;
-    abi_ulong msg_stime;
-#if TARGET_ABI_BITS == 32
-    abi_ulong __unused1;
-#endif
-    abi_ulong msg_rtime;
-#if TARGET_ABI_BITS == 32
-    abi_ulong __unused2;
-#endif
-    abi_ulong msg_ctime;
-#if TARGET_ABI_BITS == 32
-    abi_ulong __unused3;
-#endif
+    abi_ullong msg_stime;
+    abi_ullong msg_rtime;
+    abi_ullong msg_ctime;
     abi_ulong __msg_cbytes;
     abi_ulong msg_qnum;
     abi_ulong msg_qbytes;

It seems like either should have worked but I get garbage back in some of the elements below msg_time fields without the change.

If time_t is 64bits then it seems like stime/rtime/ctime should be abi_ullong.

My target is Hexagon and the TARGET_ABI_BITS is 32.

Thanks,

[-- Attachment #2: Type: text/html, Size: 2517 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-27 20:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 21:38 linux-user - time64 question Sid Manning
2020-05-27 16:23 ` Laurent Vivier
2020-05-27 20:15   ` Sid Manning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).