Laurent Vivier 3f9ac9b39b linux-user: remove duplicate tswap32() from do_getsockopt()
This issue has been detected with tests/linux-tests.c:

linux-test.c:330: getsockopt

327     len = sizeof(val);
328     chk_error(getsockopt(server_fd, SOL_SOCKET, SO_TYPE, &val, &len));
329     if (val != SOCK_STREAM)
330         error("getsockopt");

In linux-user/syscall.c:do_getsockopt(), we have:
...
        val = tswap32(val);
...
            if (put_user_u32(val, optval_addr))
...

whereas "put_user_u32" calls in the end "__put_user" which uses "tswap32".

So the "val = tswap32(val);" is useless and wrong.

This patch removes it.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
2009-06-16 16:58:45 +03:00
2009-06-15 14:04:34 +02:00
2009-06-13 08:44:31 +00:00
2009-06-13 08:44:31 +00:00
2009-05-13 20:54:26 +01:00
2009-05-13 20:54:26 +01:00
2009-06-15 13:52:27 +02:00
2009-03-07 21:48:00 +00:00
2009-06-15 14:04:22 +02:00
2009-03-07 15:46:23 +00:00
2009-03-10 21:43:35 +00:00
2009-04-07 17:57:09 +00:00
2009-04-07 17:57:09 +00:00
2009-05-19 16:17:58 +01:00
2009-05-26 21:10:28 +02:00
2009-05-13 20:54:26 +01:00
2009-05-24 21:24:33 +01:00
2009-05-26 21:10:28 +02:00
2009-05-26 21:10:28 +02:00
2009-03-05 23:01:23 +00:00
2009-05-27 09:46:03 -05:00
2009-06-05 15:16:41 +01:00
2009-03-08 12:41:36 +00:00
2009-05-30 01:59:37 +01:00
2009-06-13 19:19:25 -05:00
2009-05-28 14:00:49 +02:00
2009-06-09 18:45:16 +00:00
2009-05-25 18:56:13 +01:00
2009-06-09 11:38:50 +01:00
2009-05-13 22:21:47 +01:00
2009-05-08 15:51:19 -05:00
2009-06-15 13:52:27 +02:00
2009-05-14 22:35:09 +01:00
2009-05-09 23:22:35 +01:00
2009-05-19 22:29:20 +04:00
2009-06-15 12:51:37 -05:00
2009-05-08 16:11:49 -05:00
2009-03-05 23:01:23 +00:00
2009-05-14 17:03:49 -05:00
2009-04-07 21:47:27 +00:00
2009-05-13 22:21:47 +01:00
2009-05-22 10:50:35 -05:00
2009-03-05 23:01:23 +00:00
2009-03-06 23:44:29 +00:00
2009-03-06 23:44:29 +00:00
2009-03-06 23:44:29 +00:00
2009-03-06 23:44:29 +00:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%