|
Lucio Andrés Illanes Albornoz |
a91763 |
diff -ru qemu-3.1.0.orig/block/file-posix.c qemu-3.1.0/block/file-posix.c
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
--- qemu-3.1.0.orig/block/file-posix.c 2018-12-11 18:44:34.000000000 +0100
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -68,6 +68,9 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#ifdef __s390__
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#include <asm/dasd.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#endif
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#ifdef __midipix__
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#include <sys/ioctl.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#endif
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#ifndef FS_NOCOW_FL
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#define FS_NOCOW_FL 0x00800000
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#endif
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
diff -ru qemu-3.1.0.orig/configure qemu-3.1.0/configure
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
--- qemu-3.1.0.orig/configure 2018-12-11 18:44:34.000000000 +0100
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -631,6 +631,8 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
if check_define __linux__ ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
targetos="Linux"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+elif check_define __midipix__ ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+ targetos='Midipix'
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
elif check_define _WIN32 ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
targetos='MINGW32'
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
elif check_define __OpenBSD__ ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -882,6 +884,10 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
supported_os="yes"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
libudev="yes"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+Midipix)
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+ midipix="yes"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+ supported_os="yes"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+;;
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
esac
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
if [ "$bsd" = "yes" ] ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -4361,7 +4367,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
}
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
EOF
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
if compile_prog "" "" ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
- epoll=yes
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+ epoll=no
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
fi
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -4384,7 +4390,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
}
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
EOF
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
if compile_prog "" "" ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
- epoll_create1=yes
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+ epoll_create1=no
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
fi
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
# check for sendfile support
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -5254,7 +5260,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
vector16=no
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
if compile_prog "" "" ; then
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
- vector16=yes
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+ vector16=no
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
fi
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
diff -ru qemu-3.1.0.orig/util/oslib-posix.c qemu-3.1.0/util/oslib-posix.c
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
--- qemu-3.1.0.orig/util/oslib-posix.c 2018-12-11 18:44:35.000000000 +0100
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -43,6 +43,10 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#include <sys/syscall.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#endif
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#ifdef __midipix__
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#include <sys/syscall.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#endif
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#ifdef __FreeBSD__
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#include <sys/sysctl.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#include <sys/user.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -76,7 +80,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
int qemu_get_thread_id(void)
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
{
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
-#if defined(__linux__)
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#if defined(__linux__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
return syscall(SYS_gettid);
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#else
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
return getpid();
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
diff -ru qemu-3.1.0.orig/util/qemu-openpty.c qemu-3.1.0/util/qemu-openpty.c
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
--- qemu-3.1.0.orig/util/qemu-openpty.c 2018-12-11 18:44:35.000000000 +0100
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
@@ -35,7 +35,7 @@
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#include "qemu/osdep.h"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#include "qemu-common.h"
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
-#if defined(__GLIBC__)
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
+#if defined(__GLIBC__) || defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
# include <pty.h>
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
#elif defined CONFIG_BSD
|
|
Lucio Andrés Illanes Albornoz |
a91763 |
# include <termios.h>
|