qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Patch] Darwin and qemu-system-ppc
@ 2004-07-12 12:18 Pierre d'Herbemont
  2004-07-12 13:49 ` Jocelyn Mayer
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre d'Herbemont @ 2004-07-12 12:18 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

Hi!

Here is a fix for Mac OS X/Darwin. You must define OPCODES_SECTION if 
you don't want to get the errorat launch time:
*** ERROR: opcode ff already assigned in main opcode table
*** ERROR initializing PPC instruction 0xff 0xff 0xff

Thank,

Pierre

[-- Attachment #2: translate_ppc.diff.txt --]
[-- Type: text/plain, Size: 619 bytes --]

Index: target-ppc/translate.c
===================================================================
RCS file: /cvsroot/qemu/qemu/target-ppc/translate.c,v
retrieving revision 1.20
diff -u -r1.20 translate.c
--- target-ppc/translate.c	10 Jul 2004 15:33:29 -0000	1.20
+++ target-ppc/translate.c	12 Jul 2004 12:16:52 -0000
@@ -279,6 +279,9 @@
 #if defined(__linux__)
 #define OPCODES_SECTION \
     __attribute__ ((section(".opcodes"), unused, aligned (8) ))
+#elif defined(__APPLE__)
+#define OPCODES_SECTION \
+    __attribute__ ((section("__TEXT,__opcodes"), unused, aligned (8) ))
 #else
 #define OPCODES_SECTION
 #endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Patch] Darwin and qemu-system-ppc
  2004-07-12 12:18 [Qemu-devel] [Patch] Darwin and qemu-system-ppc Pierre d'Herbemont
@ 2004-07-12 13:49 ` Jocelyn Mayer
  0 siblings, 0 replies; 2+ messages in thread
From: Jocelyn Mayer @ 2004-07-12 13:49 UTC (permalink / raw)
  To: qemu mailing list

On Mon, 2004-07-12 at 14:18, Pierre d'Herbemont wrote:
> Hi!
> 
> Here is a fix for Mac OS X/Darwin. You must define OPCODES_SECTION if 
> you don't want to get the errorat launch time:
> *** ERROR: opcode ff already assigned in main opcode table
> *** ERROR initializing PPC instruction 0xff 0xff 0xff

IMHO, this is an error to define it has nothing, as emulation won't run
in that case.
So it would be better to replace:

#else
#define OPCODES_SECTION
#endif

with:

#else
#error "OPCODE_SECTION isn't defined for this host OS"
#endif

-- 
Jocelyn Mayer <l_indien@magic.fr>
Never organized

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-12 13:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12 12:18 [Qemu-devel] [Patch] Darwin and qemu-system-ppc Pierre d'Herbemont
2004-07-12 13:49 ` Jocelyn Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).