]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
linux-user/alpha: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 4 Jul 2021 18:37:44 +0000 (20:37 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 7 Jul 2021 19:25:10 +0000 (21:25 +0200)
Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2).

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210704183755.655002-2-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/alpha/target_syscall.h

index fd389422e31e762a316d0557097eb2f62ff7c601..4e6f93605660bf9b42e24fc5410a1c7cffdc085c 100644 (file)
@@ -44,6 +44,8 @@ struct target_pt_regs {
 #define UNAME_MACHINE "alpha"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 
+#undef TARGET_EWOULDBLOCK
+#define TARGET_EWOULDBLOCK      TARGET_EAGAIN /* Operation would block */
 #undef TARGET_EDEADLK
 #define TARGET_EDEADLK         11
 #undef TARGET_EAGAIN