Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2004 14:08:36 -0400
From:      "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko@verizon.net>
To:        bogorodskiy@inbox.ru
Cc:        freebsd-ports@freebsd.org
Subject:   PearPC port & FreeBSD 6.0
Message-ID:  <1098036515.1128.16.camel@RabbitsDen>

next in thread | raw e-mail | index | archive | help

--=-4TpaOzuhdUO0bz1yc6qk
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I have sent this to you since you are listed as the maintainer of
FreeBSD port of PearPC emulator. If you are not the proper person to
contact with this information, please, accept my apology. In this case,
I would appreciate if you can point me to the proper maintainer.

I have CC'd 'freebsd-ports' mailing list, but I do not subscribe to it,
so please, keep my address in the distribution list if you want your
reply to reach me.

Attached patch allows PearPC 0.3.1 to compile on FreeBSD 6.0 with JITC
support, and configure line like one below:

./configure --enable-fpo --disable-debug --enable-cpu=jitc_x86
--enable-ui=x11

Credit for the solution to 'offsetof' problem goes to Patrick Hartling.
Solution was published in 'http://news.gw.com/freebsd.bugs/33067'.

---
Alexandre "Sunny" Kovalenko.


--=-4TpaOzuhdUO0bz1yc6qk
Content-Disposition: attachment; filename=ppc_cpu.h.PATCH
Content-Type: text/plain; name=ppc_cpu.h.PATCH; charset=ASCII
Content-Transfer-Encoding: 7bit

--- src/cpu/cpu_jitc_x86/ppc_cpu.h.ORIG	Sat Aug 21 20:11:56 2004
+++ src/cpu/cpu_jitc_x86/ppc_cpu.h	Sun Oct 17 13:54:39 2004
@@ -24,6 +24,14 @@
 #include <stddef.h>
 #include "system/types.h"
 
+#undef offsetof
+/* The cast to "char &" below avoids problems with user-defined
+   "operator &", which can appear in a POD type.  */
+#define offsetof(TYPE, MEMBER)                                  \
+  (__offsetof__ (reinterpret_cast <size_t>                      \
+                 (&reinterpret_cast <const volatile char &>     \
+                  (static_cast<TYPE *> (0)->MEMBER))))
+
 #define PPC_MHz(v) ((v)*1000*1000)
 
 #define PPC_MODEL		"ppc_model"

--=-4TpaOzuhdUO0bz1yc6qk--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1098036515.1128.16.camel>