[Qemu-devel] [PATCH] sh4: signal handling for the user space emulator

2007-11-29 Thread Magnus Damm
Hi everyone, Here comes a patch that implements signal handling for the sh4 user space emulator. Please apply on top of the recently posted delay slot patch. linux-user/main.c | 12 + linux-user/sh4/target_signal.h |5 linux-user/signal.c| 321

Re: [Qemu-devel] [PATCH] Fix for execve syscall

2007-11-29 Thread Magnus Damm
On Nov 19, 2007 10:39 PM, Kirill A. Shutemov <[EMAIL PROTECTED]> wrote: > There is error in execve syscall implementation. guest_argp and guest_envp > should not be altered during argument list checking. > > This bug was introduced by commit "suppressed tgetx and tputx (initial > patch by Thayne Ha

Re: [Qemu-devel] [PATCH] [RESEND] hw/sh7750.c: use TARGET_FMT_plx to printf target_phys_addr_t

2007-11-29 Thread Magnus Damm
On Nov 19, 2007 6:18 AM, Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> wrote: > The following patch changes the formatting string from %08x to TARGET_FMT_plx > to accommodate for compilation in 64bit hosts and that manifests with the > following warning : > > qemu/hw/sh7750.c: In function `error

[Qemu-devel] qemu/target-sparc helper.c

2007-11-29 Thread Blue Swirl
CVSROOT:/cvsroot/qemu Module name:qemu Changes by: Blue Swirl 07/11/29 17:08:01 Modified files: target-sparc : helper.c Log message: Increase prom size for boot mode CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/helper.c?cvsroot=qemu&r1=

Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"

2007-11-29 Thread Balazs Attila-Mihaly (Cd-MaN)
Le mercredi 28 novembre 2007 à 14:24 +, Samuel Thibault a écrit : > Hi, > > Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit : > > +ret = posix_memalign((void**)&buf, 0x200, 512); > > For making this more easily portable, maybe it should be a new > qemu_memalign() function? Al

Re: [Qemu-devel] PATCH: ide.c: send irq for WIN_DIAGNOSE

2007-11-29 Thread Tristan Gingold
On Nov 29, 2007, at 4:07 PM, Carlo Marcelo Arenas Belon wrote: On Thu, Nov 29, 2007 at 02:05:36PM +0100, Tristan Gingold wrote: according to ATA std: which ATA std? A rather old one: ATA-3 The pending interrupt condition shall be set by: ??? the completion of a command; or This patc

Re: [Qemu-devel] [PATCH] execve syscall fix

2007-11-29 Thread Kirill A. Shutemov
On [Thu, 29.11.2007 22:42], Magnus Damm wrote: > Hi everyone, > > The execve syscall currently fails on sh4 with -EFAULT. I tracked it > down to what looks like a generic problem. This patch makes sure that > the two variables "guest_argp" and "guest_envp" are set to "arg2" and > "arg3" instead of

Re: [Qemu-devel] [PATCH] execve syscall fix

2007-11-29 Thread Kirill A. Shutemov
On [Thu, 29.11.2007 22:42], Magnus Damm wrote: > Hi everyone, > > The execve syscall currently fails on sh4 with -EFAULT. I tracked it > down to what looks like a generic problem. This patch makes sure that > the two variables "guest_argp" and "guest_envp" are set to "arg2" and > "arg3" instead of

Re: [Qemu-devel] PATCH: ide.c: send irq for WIN_DIAGNOSE

2007-11-29 Thread Carlo Marcelo Arenas Belon
On Thu, Nov 29, 2007 at 02:05:36PM +0100, Tristan Gingold wrote: > according to ATA std: which ATA std? > The pending interrupt condition shall be set by: > ??? the completion of a command; or > > This patch sends an irq for WIN_DIAGNOSE (and WIN_SRST) DEVICE RESET or DEVICE DIAGNOSTIC in T

[Qemu-devel] fstat bug on armeb stll exists!

2007-11-29 Thread Claudio Scordino
Hi all, more than one year ago we sent a patch on this mailing list to fix a problem of the fstat syscall for armeb. See http://lists.gnu.org/archive/html/qemu-devel/2006-09/msg00137.html We found the bug compiling a Linux kernel for armeb on scratchbox. Qemu seemed to ignore the fact that

[Qemu-devel] [PATCH] execve syscall fix

2007-11-29 Thread Magnus Damm
alues from previous get_user_ual() calls. Execve now works as expected on sh4 with this fix. Please apply. / magnus qemu-cvs-20071129-execve-fix.patch Description: Binary data

[Qemu-devel] PATCH: ide.c: send irq for WIN_DIAGNOSE

2007-11-29 Thread Tristan Gingold
Hi, according to ATA std: The pending interrupt condition shall be set by: − the completion of a command; or This patch sends an irq for WIN_DIAGNOSE (and WIN_SRST) Tristan. qemu.diff Description: Binary data

[Qemu-devel] [PATCH sh4: system emulator interrupt update

2007-11-29 Thread Magnus Damm
| 75 --- target-sh4/op.c |2 7 files changed, 169 insertions(+), 47 deletions(-) Please apply. / magnus qemu-cvs-20071129-sh-irq.patch Description: Binary data

Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"

2007-11-29 Thread Laurent Vivier
Le mercredi 28 novembre 2007 à 14:24 +, Samuel Thibault a écrit : > Hi, > > Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit : > > +ret = posix_memalign((void**)&buf, 0x200, 512); > > For making this more easily portable, maybe it should be a new > qemu_memalign() function? Als

[Qemu-devel] multiple virtual network with qemu

2007-11-29 Thread nik600
Hi i'm trying to set up some virtual network with qemu but i'm experiencing some problems: starting the hosted system with dhcp it gets the ip 10.0.2.15 and gw 10.0.2.2, if i activate the forwarding ip on the hosting system all works fine. But i'd like to do something like that: - gw (192.168.

[Qemu-devel] AltGR-Key in QEmu-VNC

2007-11-29 Thread Elmar Haneke
When using VNC Server build into qemu the AltGr-Key seems to be ignored. The alternative Ctrl-Alt seems to work (at least when usind linux based VNC-client) but it is less comfortable to press three keys. The "-k de" switch is in use. Any idea how to fix it? Elmar

Re: [Qemu-devel] [PATCH]: sh4 delay slot code update

2007-11-29 Thread Paul Mundt
On Thu, Nov 29, 2007 at 06:18:32PM +0900, Magnus Damm wrote: > On Nov 29, 2007 2:55 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > > The T-state check for bt/bf happens _prior_ to execution of the delay > > slot instruction, while any delay-slot resident T-bit modifier is > > executed by the time we e

Re: [Qemu-devel] [PATCH]: sh4 delay slot code update

2007-11-29 Thread Magnus Damm
On Nov 29, 2007 2:55 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > The only thing to be careful of is the ordering semantics for the T-bit > state, which is what I tried to convey in the code snippet. > > > > You can see an example in arch/sh/kernel/entry-common.S: > > > > > > syscall_exit_wo