From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44715 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxSis-0007Od-DP for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxSir-0004p3-49 for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:02 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:49527) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxSiq-0004oS-NM for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:01 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 20 Sep 2010 00:50:42 +0200 Message-Id: <1284936650-1203-1-git-send-email-andreas.faerber@web.de> In-Reply-To: <7861078417-BeMail@haiku> References: <7861078417-BeMail@haiku> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/8] Add Haiku host support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: haikuports-devs@ports.haiku-files.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello, The following patch series together with qemu_madvise() allows to build a= nd run QEMU on Haiku, using GCC 4.x. Patches 1-5 add support for Haiku hosts to build ppc-softmmu. They are based on qemu_madvise() v7, since Haiku does not have madvise(), but they do not depend on it themselves so could be cherry-picked. Patch 6 fixes a build warning. The following patches are based on mmlr's 0.10.4 port and are not intende= d for upstream inclusion at this time: Patch 7 is needed for successful runtime execution. Patch 8 is included as a test case and to show where things are moving wr= t C++. Not yet included is his native Haiku audio backend, also using C++. Another issue that Michael had addressed and that I would like to see fix= ed differently is a mismatch between softfloat headers and sources wrt int t= ypes. I'll post a separate RFC since it's not strictly related to Haiku. Regards, Andreas Andreas F=C3=A4rber (8): configure: Add basic support for Haiku configure: Don't rely on special pthreads library Haiku doesn't have libm nbd: Haiku has _IO() in its BSD compatibility layer tap: Add stub for Haiku slirp: Silence warning on Haiku qemu_malloc: Use areas on Haiku for sizes > 1 MiB ui: Haiku frontend Makefile | 2 + Makefile.objs | 2 + Makefile.target | 2 + configure | 33 +++- console.h | 3 + nbd.c | 2 +- net/tap-haiku.c | 61 ++++++ qemu-malloc.c | 53 +++++ rules.mak | 6 +- slirp/slirp.h | 4 +- ui/haiku.cpp | 607 +++++++++++++++++++++++++++++++++++++++++++++++++= ++++++ ui/haiku.h | 96 +++++++++ vl.c | 10 +- 13 files changed, 869 insertions(+), 12 deletions(-) create mode 100644 net/tap-haiku.c create mode 100644 ui/haiku.cpp create mode 100644 ui/haiku.h