Re: [Qemu-devel] [patch] cocoa.m - Core Graphics support

2008-01-30 Thread Pierre d'Herbemont
On Jan 30, 2008, at 9:30 PM, Mike Kronenberg wrote: Unfortunateley, there is no "official" direct access to the framebuffer anymore, since apple depreciated QuickDraw. [1] Well, you can using OpenGL and Apple's Extension have a nearly direct VRAM access, the idea is to use glEnable( GL_U

Re: [Qemu-devel] [PATCH] OSX x86_64 host support

2007-12-07 Thread Pierre d'Herbemont
On Dec 7, 2007, at 1:42 PM, Alexander Graf wrote: Right now there is no graphical output available except for VNC, as the cocoa output depends on deprecated APIs that are no longer available in 64-bit mode and SDL does not compile on x86_64 Darwin yet. This is the QuickDraw API? If so, i

[Qemu-devel] [Patch] darwin-user: Compile fix for ppc targets

2007-08-16 Thread Pierre d'Herbemont
Hello, this should address an darwin-user issue that has been creeping in trunk for sometime. Thanks, Pierre. 601-darwin-user-fix.diff Description: Binary data

Re: QEMU Automated Testing (was [Qemu-devel] qemu Makefile.target vl.h hw/acpi.c hw/adlib.c ...)

2007-04-10 Thread Pierre d'Herbemont
On 8 avr. 07, at 22:43, Natalia Portillo wrote: But that required some macro interface "click at x,y, wait some seconds, press 'k' key", that is not currently under QEMU. There is cxtest (GPL) which has been created for that matter, it should be interesting to give it a try: http://www.c

[Qemu-devel] [Patch] darwin-user: fix com mpage entry offset

2007-03-25 Thread Pierre d'Herbemont
Hi, This patch fix typos in the commpage definition. Pierre. Index: darwin-user/commpage.c === RCS file: /sources/qemu/qemu/darwin-user/commpage.c,v retrieving revision 1.1 diff -u -r1.1 commpage.c --- darwin-user/commpage.c 1

Re: [Qemu-devel] Page protection and i386 cmpxchg8b

2007-02-27 Thread Pierre d'Herbemont
On 27 févr. 07, at 08:22, Ilya Shar wrote: Please see the diff file attached. I meant send a diff to the qemu-devel in a new mail with [Patch] in the subject so that it can be committed :-) However, at second thought, I think that it might need some re-work, see [1], and the arguments m

Re: [Qemu-devel] Page protection and i386 cmpxchg8b

2007-02-24 Thread Pierre d'Herbemont
On 23 févr. 07, at 23:56, Ilya Shar wrote: Sure. At first I was hitting unsupported mach syscalls, so I modified darwin-user/syscall.h according to /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/mach/syscall_sw.h : $ diff syscall.c syscall.c.orig 458,465d457 < case -33: < DPRINTF("s

Re: [Qemu-devel] Page protection and i386 cmpxchg8b

2007-02-23 Thread Pierre d'Herbemont
Hi Ilya! On 23 févr. 07, at 21:32, Ilya Shar wrote: I'm running i386-darwin-usrer on i386 and some apps (Safari browser) crash because cmpxchg8b attempts to wrie to a qemu-allocated page which is readable but write-protected. When I comment out mprotect in exec.c Are you sure it does Safari

[Qemu-devel] [resent] [Patch] darwin-user: revert host_info patch and don't fail if sysctl is unknown when we are on the same host/target

2007-02-22 Thread Pierre d'Herbemont
Hi, This fix x86-on-x86 and ppc-on-ppc. Pierre. ChangeLog: Revert host_info changes and don't fail if sysctl is unknown when we are on the same host/target. Index: darwin-user/syscall.c === RCS file: /sources/qemu/qemu/darwin-u

[Qemu-devel] [Patch] darwin-user: revert host_info patch and don't fail if sysctl is unknown when we are on the same host/target

2007-02-16 Thread Pierre d'Herbemont
Hi, This fix the x86-on-x86 and ppc-on-ppc. Pierre. ChangeLog: Revert host_info changes and don't fail if sysctl is unknown when we are on the same host/target. Index: darwin-user/syscall.c === RCS file: /sources/qemu/qemu/darw

Re: [Qemu-devel] Please help fix an illegal instruction / SSE problem

2007-02-16 Thread Pierre d'Herbemont
On 16 févr. 07, at 04:51, Ilya Shar wrote: Every Cocoa application I try to run under i386-darwin-user/qemu-i386 exits on an illegal instruction: Starting /Applications/Calculator.app/Contents/MacOS/Calculator with qemu queue_signal: sig=4 qemu: uncaught target signal 4 (Illeg

Re: [Qemu-devel] Help with gdb on Mac OS

2007-02-12 Thread Pierre d'Herbemont
On 12 févr. 07, at 07:54, Ilya Shar wrote: I am trying to step through i386-darwin-user/qemu-i386 Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x2115eaf5 helper_cmpxchg8b () at ../cpu-all.h:344 344 ((uint32_t *)ptr)[0] = x

Re: [Qemu-devel] [Patch] darwin-user build failed

2007-02-07 Thread Pierre d'Herbemont
On 7 févr. 07, at 14:58, Toshimitsu Tanaka wrote: --- darwin-user/syscall.old 2007-02-07 22:23:53.0 +0900 +++ darwin-user/syscall.c 2007-02-07 22:04:53.0 +0900 @@ -1249,8 +1249,8 @@ }; struct sysctl_dir sysctls_kern[] = { -ENTRYE(KERN_TRANSLATE, "translate

Re: [Qemu-devel] [Patch] documentation: Change qemu-darwin-* to qemu-* and fix a typo about supported target

2007-02-06 Thread Pierre d'Herbemont
On 6 févr. 07, at 09:51, Phil Krylov wrote: Hi Pierre, [EMAIL PROTECTED] +target x86 on x86: Most apps (Cocoa and Carbon too) works. [1] [EMAIL PROTECTED] +target PowerPC on x86: Not working as the ppc commpage can't be mapped (yet!) [EMAIL PROTECTED] +target x86 on x86: Most apps (Cocoa an

[Qemu-devel] [Patch] documentation: Change qemu-darwin-* to qemu-*

2007-02-06 Thread Pierre d'Herbemont
Hi, This patch fixes a typo in the doc. Pierre. ChangeLog: Change qemu-darwin-* to qemu-* Index: qemu-doc.texi === RCS file: /sources/qemu/qemu/qemu-doc.texi,v retrieving revision 1.126 diff -u -r1.126 qemu-doc.texi --- qemu-doc.tex

[Qemu-devel] [Patch] darwin-user: fix com mpage entry offset

2007-02-05 Thread Pierre d'Herbemont
Hi, This patch fix typos in the commpage definition. Pierre. Index: darwin-user/commpage.c === RCS file: /sources/qemu/qemu/darwin-user/commpage.c,v retrieving revision 1.1 diff -u -r1.1 commpage.c --- darwin-user/commpage.c 1

[Qemu-devel] [Patch] cpu-exec.c: Make cpu_signal_handler work on Mac OS X/Darwin x86

2007-02-05 Thread Pierre d'Herbemont
Hi, This should fix: /Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c: In function 'cpu_x86_signal_handler': /Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307: error: request for member 'gregs' in something not a structure or union /Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:13

[Qemu-devel] [Patch] darwin-user: Clean up target_mach_msg_trap(), remove unuseful do_pread, begin sysctl implementation and implement fcntl

2007-02-03 Thread Pierre d'Herbemont
Hi, This patch cleans up target_mach_msg_trap(), removes unuseful do_pread, begins sysctl implementation and implements fcntl. Pierre.Index: darwin-user/syscall.c === RCS file: /sources/qemu/qemu/darwin-user/syscall.c,v retrievin

[Qemu-devel] [Patch] darwin-user: Update usage output, add a small comment on int 0x90 and suppress dead code.

2007-02-03 Thread Pierre d'Herbemont
Hi, This patch alters a bit the qemu-darwin-user usage output. It also add a bit more documentation on int 0x90, and suppress dead code. Pierre.Index: darwin-user/main.c === RCS file: /sources/qemu/qemu/darwin-user/main.c,v retri

[Qemu-devel] [Patch] documentation: Document qemu-darwin-user

2007-02-03 Thread Pierre d'Herbemont
Hi, I think that a small note about qemu-darwin-user in the doc should be quite useful... Pierre. Index: qemu-doc.texi === RCS file: /sources/qemu/qemu/qemu-doc.texi,v retrieving revision 1.126 diff -u -r1.126 qemu-doc.texi ---

Re: [Qemu-devel] Please help build qemu/darwin-user on Mac Intel

2007-02-02 Thread Pierre d'Herbemont
Hi, On 3 févr. 07, at 02:37, Ilya Shar wrote: I am trying to build i386-darwin-user to run it on an x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3 and I'm getting compiler errors right away: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/darwine Ilya, qemu's CVS has the most up-to-date version

Re: [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD

2007-01-26 Thread Pierre d'Herbemont
On 26 janv. 07, at 16:39, Thiemo Seufer wrote: Pierre d'Herbemont wrote: Hi, This fix, /qemu/hw/ide.c: In function `ide_atapi_io_error': /qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in this function) I committed a slightly different patch. And it'

[Qemu-devel] [Patch] darwin-user: Save some vm space for the regular program loading zone

2007-01-26 Thread Pierre d'Herbemont
Hi, This patch is a small hack, that is needed to load most of regular program (for some reason I forgot to put that on the initial darwin- user patch). Hopefully once darwin-user will have a sanitized guest / qemu memory interface, this could be removed. (I have in mind Paul Brook's guest

[Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD

2007-01-26 Thread Pierre d'Herbemont
Hi, This fix, /qemu/hw/ide.c: In function `ide_atapi_io_error': /qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in this function) on Darwin and certainly on other *BSDs Pierre. Index: vl.h === RCS file: /sources/q

[Qemu-devel] [Patch] siginfo fix for Darwin/Mac OS X

2007-01-24 Thread Pierre d'Herbemont
Hi, This patch is an attempt to suppress the anonymous "struct siginfo" trick, as it doesn't work on darwin since struct siginfo isn't defined, and stay anonymous. Here I use siginfo_t, assuming that it is defined on most platform. But feel free to add a "typedef struct siginfo siginfo_t;

[Qemu-devel] [Patch] Use Cocoa and CoreAudio backend by default on Darwin systems

2007-01-24 Thread Pierre d'Herbemont
Hi, This patch defaults the use of the Cocoa and CoreAudio drivers on Darwin. Most Darwin users are indeed Mac OS X users. And as Mac OS X doesn't have libSDL by default, but has Cocoa and CoreAudio, it sounds better to turn Cocoa and CoreAudio on by default. Pierre. Index: configure

[Qemu-devel] [Patch] darwin-user: Fix set_error return value

2007-01-24 Thread Pierre d'Herbemont
Hi, This fix set_error return value typo. Pierre.Index: darwin-user/main.c === RCS file: /sources/qemu/qemu/darwin-user/main.c,v retrieving revision 1.1 diff -u -r1.1 main.c --- darwin-user/main.c 18 Jan 2007 20:06:33 - 1.

Re: [Qemu-devel] [PATCH] siginfo fix for Darwin/Mac OS X on PowerPC and cleanup

2007-01-18 Thread Pierre d'Herbemont
On 18 janv. 07, at 23:57, Thiemo Seufer wrote: It might be better to keep the full set around for documentation. It's a good point. -int cpu_signal_handler(int host_signum, struct siginfo *info, +int cpu_signal_handler(int host_signum, struct siginfo *pinfo, void *p

Re: [Qemu-devel] [PATCH] darwin-user merge attempt - patch v3

2007-01-18 Thread Pierre d'Herbemont
On 17 janv. 07, at 23:13, Thiemo Seufer wrote: I figure it needs some more work to keep the Linux build happy. Oh sorry! Here goes the fix: darwin_user.3.diff.txt.gz Description: GNU Zip compressed data Thanks for the report, Pierre.___ Qemu-dev

[Qemu-devel] [PATCH] siginfo fix for Darwin/Mac OS X on PowerPC and cleanup

2007-01-18 Thread Pierre d'Herbemont
Hi, This patch addresses cpu-exec.c compilation on Mac OS X/ppc. It also cleans up unused Macro definition. Pierre. Index: cpu-exec.c === RCS file: /sources/qemu/qemu/cpu-exec.c,v retrieving revision 1.88 diff -u -r1.88 cpu-exec.

[Qemu-devel] [PATCH] define ENOMEDIUM if not defined

2007-01-18 Thread Pierre d'Herbemont
Hi, This patch fix block.c build on Mac OS X/Darwin. Pierre. Index: block.c === RCS file: /sources/qemu/qemu/block.c,v retrieving revision 1.40 diff -u -r1.40 block.c --- block.c 7 Jan 2007 18:22:37 - 1.40 +++ block.c

Re: [Qemu-devel] [PATCH] darwin-user merge attempt - patch v2

2007-01-16 Thread Pierre d'Herbemont
Here is an updated version of the patch: darwin_user.2.diff.txt.gz Description: GNU Zip compressed data It mostly fix i386-darwin-user on ppc which was broken in previous patch. Pierre. On 12 janv. 07, at 07:44, Pierre d'Herbemont wrote: Hi, Here is an attempt to merge the qemu

[Qemu-devel] [PATCH] darwin-user merge attempt

2007-01-11 Thread Pierre d'Herbemont
Hi, Here is an attempt to merge the qemu tree hosted in darwine CVS repository [1]. This branch contains a darwin-user target for qemu, which goal is similar to linux-user on linux. For now there is still much to do, like: 1- fill the ioctls*.h files 2- Accurately implement all the syscall.

Re: [Qemu-devel] qemu Makefile configure

2007-01-07 Thread Pierre d'Herbemont
On 3 janv. 07, at 15:23, Bernhard Fischer wrote: On Wed, Jan 03, 2007 at 01:59:50PM +, Thiemo Seufer wrote: ifeq ($(ARCH),ppc) -> CFLAGS+= -D__powerpc__ + CPPFLAGS += -D__powerpc__ (doesn't cpp already define that on ppc?) That's for the Darwin/Mac OS X PowerPC platforms where __powerp

Re: [Qemu-devel] ENOMEDIUM OS X patch

2006-08-28 Thread Pierre d'Herbemont
On Aug 28, 2006, at 5:45 PM, Jose Renau wrote: OS X does not include ENOMEDIUM on the error list (I think that the same is true for Solaris). This patch solves the problem. so this would be more appropriate: +#ifndef ENOMEDIUM +#define ENOMEDIUM 4097 +#endif than: +#ifdef CONFIG_COCOA +

Re: [Qemu-devel] User-space emulation on Mac OS X to run Mac OS X Intel applications

2005-10-23 Thread Pierre d'Herbemont
On 21 oct. 05, at 22:16, Steven wrote: Hi all, Looking at qemu, it seems as if it could be possible to allow it to run Intel OS X apps on PowerPC OS X, much like a reverse Rosetta. The x86 frameworks/libraries are included with Xcode, so possibly everything else could run natively, just have th

Re: [Qemu-devel] news on the OS X cocoa port

2005-07-22 Thread Pierre d'Herbemont
On 21 juil. 05, at 15:46, Hetz Ben Hamo wrote: On 7/21/05, Mike Kronenberg <[EMAIL PROTECTED]> wrote: Hetz Ben Hamo wrote: I just looked at the screenshots, and if you don't mind, I want to offer few suggestions for your GUI: 1. RAM size - how about adding up/down arrows (in addition to

Re: [Qemu-devel] Current CVS broken

2005-07-03 Thread Pierre d'Herbemont
Selon Natalia Portillo <[EMAIL PROTECTED]>: > Hi! > > Before last commits the monitor wasn't working on MacOS X (it appears > but anything I write on it is ignored), and not it even doesn't compile: > > gcc -Wall -O2 -g -fno-strict-aliasing -D__powerpc__ -I. -I/Users/ > claunia/qemu/target-mips -I

Re: [Qemu-devel] [PATCH] cocoa.m

2005-05-29 Thread Pierre d'Herbemont
On 28 mai 05, at 20:36, Mike Kronenberg wrote:Pierre d'Herbemont wrote:That  should be done with not much troubles, if we manage to get qemu  thread safe. Did you try that way? Until the 7. May I was trying to get all into qemu... sources are still there.I was looking into making the contoller one

Re: [Qemu-devel] cocoa.m using openGL

2005-05-29 Thread Pierre d'Herbemont
On 28 mai 05, at 20:39, Mike Kronenberg wrote:Pierre d'Herbemont wrote:It doesn't work on my iMac DV G3 400. I know that its ATI Rage 128 is very limited, but I think that we'll had to keep both version...Did You get an error-message so we could include a autoswitch?Nop... The main window's buffer

Re: [Qemu-devel] cocoa.m using openGL

2005-05-27 Thread Pierre d'Herbemont
On 24 mai 05, at 17:11, Mike Kronenberg wrote:Testbuild and diff are onhttp://www.kberg.ch/cocoaqemuIt doesn't work on my iMac DV G3 400. I know that its ATI Rage 128 is very limited, but I think that we'll had to keep both version...The PNG preview works but not the main screen.I'll be able to deb

Re: [Qemu-devel] [PATCH] cocoa.m

2005-05-27 Thread Pierre d'Herbemont
On 27 mai 05, at 16:51, Mike Kronenberg wrote: Pierre would like to put the whole thing in the head tree. I would be ready to do so, too, if this is wanted. I didn't realize that the Q app was a front end. It would be much cleaner to have it running in qemu as the cocoa qemu driver. That

Re: [Qemu-devel] [PATCH] Embed QEmu screen on a custom window

2005-05-27 Thread Pierre d'Herbemont
On 26 mai 05, at 23:07, Christian MICHON wrote: I do not know what cocoa.m implementation is, but I've seen screenshots. cocoa.m is just a qemu video driver which uses natives Mac OS X UI Libraries. It does require space, and if you go full-screen, you can't do modifications. I am not s

Re: [Qemu-devel] cocoa.m using openGL

2005-05-26 Thread Pierre d'Herbemont
Mike!Le 24 mai 05 à 17:11, Mike Kronenberg a écrit :[..]=> openGL is 3.5% faster on my systemImpressive ;)plus- it solves some issues i had with hiding/showing the toolbar (damaging the qd_view)- it could accelerate the generation of livethumbnails i am usingTestbuild and diff are onhttp://www.kber

Re: [Qemu-devel] cocoa.m using openGL

2005-05-26 Thread Pierre d'Herbemont
so that it can be merged in qemu's repository. It seems that cocoa.m is under heavy work, which is good :) Pierre. Le 22 mai 05 à 15:00, Peter Stewart a écrit : Hello to all, esp. Pierre d'Herbemont, I have changed cocoa.m (0.7.0) to use openGL with very fast texturing. I remov

Re: [Qemu-devel] [Patch] target-ppc mtcrf instruction not recognized

2005-05-18 Thread Pierre d'Herbemont
On 16 mai 05, at 09:54, Benjamin Herrenschmidt wrote: OK, I did put this in my working repository and I'll submit this to Fabrice. Please try to do this change to check if other bits need to be relax or not: Index: target-ppc/translate.c ==

Re: [Qemu-devel] [Patch] target-ppc mtcrf instruction not recognized

2005-05-14 Thread Pierre d'Herbemont
On 14 mai 05, at 20:15, J. Mayer wrote: Qemu assume all reserved fields are set to zero, not 1. PowerPC specifications says: (section 8.1 of PEM) "Some instructions fields are reserved or must contain a predefined value as shown in the individual instruction layouts. If a reserved field does not h

[Qemu-devel] [Patch] target-ppc mtcrf instruction not recognized

2005-05-14 Thread Pierre d'Herbemont
Hi, I have been playing with ppc-darwin-user. And I have to say that qemu- ppc is too strict with ppc opcode validity: On Mac OS X binary release called Tiger (or 10.4), the __bzero function [1] contains a mtcrf, which has been translated to 0x7c901120, by Apple's as. Current qemu rejects it,

Re: [Qemu-devel] QEMU CVS, X-Code 2.0 and Tiger

2005-05-05 Thread Pierre d'Herbemont
On 4 mai 05, at 08:48, Natalia Portillo wrote: Hi! I'm getting (along with a LOT of warnings) the following error when trying to compiler under Tiger/X-Code2 (GCC 4.0.0-apple): TiBook:~/qemu claunia$ make for d in i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu; do \ make -C $d all || exit

Re: [Qemu-devel] 2 Questions [Cocoa Driver]

2005-05-02 Thread Pierre d'Herbemont
On 2 mai 05, at 13:20, Mike Kronenberg wrote: It seams that my first Mail got eaten: Status on my Work for cocoasupport for qemu - made a Toolbar with options to save VM, change Image for CD-Rom/Floppy - made a Controlling app, to start and configure WMs (right now I'm integrating that ap im qe

Re: [Qemu-devel] Windows XP Home on qemu 0.6.0 and Mac OS X 10.3.8

2005-05-01 Thread Pierre d'Herbemont
On 1 mai 05, at 06:24, Karl Magdsick wrote: http://fabrice.bellard.free.fr/qemu/kqemu-doc.html indicates kqemu is only for x86 Linux 2.4.x and Linux 2.6.x, not PPC Xnu 7.9.x. Qemu 0.6.0 might also be too old to take advantage of kqemu. If he used the installer from Free OS Zoo, this would seem to