[Qemu-devel] [PATCH] target-i386: Fix regression with maxsd SSE2 instruction

2011-11-08 Thread Jason Wessel
binding tests where it prints the message: /binding/transform: GLib-GObject-WARNING **: value 24.00 of type `gdouble' is invalid or out of range for property `value' of type `gdouble' aborting... Using a signed comparison fixes the problem. Signed-off-by: Jason Wessel jason.wes...@windriver.com

Re: [Qemu-devel] [PATCH] target-i386: Fix regression with maxsd SSE2 instruction

2011-11-08 Thread Jason Wessel
On 11/08/2011 07:48 AM, Laurent Desnogues wrote: On Tue, Nov 8, 2011 at 2:00 PM, Jason Wessel jason.wes...@windriver.com wrote: The maxsd instruction needs to take into account the sign of the numbers 64 bit numbers. This is a regression that was introduced in 347ac8e356 (target-i386

[Qemu-devel] [PATCH] target-i386: Fix regression with maxsd SSE2 instruction v2

2011-11-08 Thread Jason Wessel
binding tests where it prints the message: /binding/transform: GLib-GObject-WARNING **: value 24.00 of type `gdouble' is invalid or out of range for property `value' of type `gdouble' aborting... Using a signed comparison fixes the problem. Signed-off-by: Jason Wessel jason.wes...@windriver.com

Re: [Qemu-devel] [PATCH] target-i386: Fix regression with maxsd SSE2 instruction

2011-11-08 Thread Jason Wessel
On 11/08/2011 08:40 AM, Peter Maydell wrote: On 8 November 2011 14:22, Jason Wessel jason.wes...@windriver.com wrote: +#define FPU_MIN(size, a, b) float ## size ## _lt(a, b, env-sse_status) ? (a) : (b) +#define FPU_MAX(size, a, b) float ## size ## _lt(b, a, env-sse_status) ? (a) : (b

Re: [Qemu-devel] [PATCH 0/3] PPC: E500: Support SPE guest

2011-08-23 Thread Jason Wessel
On 08/22/2011 11:55 PM, Alexander Graf wrote: When I bumped into Jason on Linuxcon, we tried out to run the e500 target on his Windriver build that used SPE and immediately ran into emulation issues. Fortunately there weren't too many, so here are the patches to get a guest using SPE

Re: [Qemu-devel] VxWorks kernel for qemu emulating PowerPC?

2010-06-25 Thread Jason Wessel
On 06/07/2010 04:03 AM, hadi motamedi wrote: Dear All Can you please let me know if the qemu emulating PowerPC (I mean qemu-system-ppc.exe) can accept VxWork kernet for boot up? Thank you As is, the QEMU PowerPC platform will definitely not boot a VxWorks image. It is possible to boot a

[Qemu-devel] [PATCH 0/1] possible fix for hw breakpoint crash on x86 32bit host

2010-01-26 Thread Jason Wessel
. If there is a better way to solve this, please let me know. Thanks, Jason. --- Jason Wessel (1): target-i386: fix crash on x86 32bit linux host with hw breakpoint exceptions target-i386/exec.h |1 + target-i386/helper.c|6 +++--- target-i386/op_helper.c |5 + 3 files

[Qemu-devel] [PATCH 1/1] target-i386: fix crash on x86 32bit linux host with hw breakpoint exceptions

2010-01-26 Thread Jason Wessel
. It is possible to work around the problem by restoring the value of env before calling raise_exception() using a new helper function that takes (CPUState *) as one of the arguments. Signed-off-by: Jason Wessel jason.wes...@windriver.com --- target-i386/exec.h |1 + target-i386/helper.c

[Qemu-devel] [PATCH] implement sysrq for the pl011

2008-03-12 Thread Jason Wessel
Implement sysrq for the pl011. This was tested on the ARM Versatile AB + kernel.org 2.6.X kernel. Signed-off-by: Jason Wessel [EMAIL PROTECTED] --- hw/pl011.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) --- a/hw/pl011.c +++ b/hw/pl011.c @@ -208,7 +208,24

Re: [PATCH][Qemu-devel] Single stepping for PPC broken!

2008-03-11 Thread Jason Wessel
run-time single stepping from the debugger stub single stepping * This fixes the hang problems when using single stepping via the msr_se Signed-off-by: Jason Wessel [EMAIL PROTECTED] --- target-ppc/translate.c | 14 -- vl.c |4 ++-- 2 files changed

[Qemu-devel] qemu-system-ppc problem with PVR access from user space

2007-11-02 Thread Jason Wessel
a user space PVR access exception. Signed-off-by: Jason Wessel [EMAIL PROTECTED] --- target-ppc/translate_init.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -92,6 +92,13 @@ static void spr_write_clear

Re: [Qemu-devel] Re: Network connections stalling (due to lost interrupts/ticks?)

2007-08-03 Thread Jason Wessel
error but my systems are not hanging. I can still get to them and they seem to handle a good load from time to time, 4 running proc. Is this a stability or performance issue? If it is a stability issue how do I test it? - Original Message From: Jason Wessel [EMAIL PROTECTED

Re: [Qemu-devel] Re: Network connections stalling (due to lost interrupts/ticks?)

2007-08-03 Thread Jason Wessel
by propagating the end of interrupt state. Signed-off-by: Jason Wessel [EMAIL PROTECTED] --- hw/apic.c | 23 +-- hw/pc.c |2 +- 2 files changed, 22 insertions(+), 3 deletions(-) Index: qemu/hw/apic.c

Re: [Qemu-devel] Problem with the -serial option of qemu

2007-07-05 Thread Jason Wessel
The MoonSeeker wrote: Hi everyone, I'm on gentoo 2.6.20-gentoo-r8 and I'm trying to send the serial port of my linux guest to a tcp server. To do that, i use this command : qemu -hda linux.img -serial tcp::4000,server,nowait And I get this error : qemu: could not open serial device

[Qemu-devel] [PATCH] fix dhcp with multiple nics an SLIRP

2007-06-29 Thread Jason Wessel
if there is a valid interface that packets can be sent on. Using the attached patch, a pxe boot can be used with more than one nic, in particular using nics of different types. I also tested to make sure it still worked with a single nic as well. Signed-off-by: Jason Wessel [EMAIL PROTECTED] Jason

[Qemu-devel] [PATCH] gdb stub support and loadvm should work together

2007-06-29 Thread Jason Wessel
a -loadvm from the command line while still having the gdb stub support active. Signed-off-by: Jason Wessel [EMAIL PROTECTED] Jason. --- vl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: qemu/vl.c === --- qemu.orig

[Qemu-devel] [PATCH] fix crash in set registers in PPC gdb-stub

2007-06-29 Thread Jason Wessel
than one way to fix problem. I opted to add the check for the halted state to the store msr routine which is called from the the translated code or the gdb stub. The halted state is always set when the stub is active. Signed-off-by: Jason Wessel [EMAIL PROTECTED] Jason. --- target-ppc

[Qemu-devel] [PATCH] e100 savevm/loadvm support

2007-06-29 Thread Jason Wessel
the short cut of pushing the struct members that were not being saved directly into the save buffer. If it is the case that the save/load images are supposed to be endian agnostic, there is definitely some more work that needs to be done in all the simulated hw drivers. Signed-off-by: Jason

Re: [Qemu-devel] [PATCH] e100 savevm/loadvm support

2007-06-29 Thread Jason Wessel
Thiemo Seufer wrote: Jason Wessel wrote: The attached patch adds loadvm and savevm support to the e100 driver. One note about this patch is that the image is not portable across big/little endian hosts. Since it already appeared that the save/load images in general are not portable

Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-27 Thread Jason Wessel
Aurelien Jarno wrote: As discussed on IRC, the problem is only present on 32-bit hosts. It is due to the do_ddivu which is falsely implemented using lldiv and then by casting the result. The patch below uses / and % as on the 64-bit host code. It is maybe slower than lldiv, but at least it gives

[Qemu-devel] [PATCH] mips64 gdb_stub

2007-05-21 Thread Jason Wessel
This patch allows gdb to debug a 64 bit kernel running on the mips64 target. signed-off-by: Jason Wessel [EMAIL PROTECTED] Jason. --- gdbstub.c | 80 +++--- 1 file changed, 40 insertions(+), 40 deletions(-) Index: qemu/gdbstub.c

[Qemu-devel] MIPS64 problem with ethernet

2007-05-21 Thread Jason Wessel
The ethernet device does not come up correctly on a 64 MIPS target with a 64 bit kernel. I narrowed it down a bit, so I thought I might mention it. If I add to the kernel the line: printk(\nTest ~0UL == %lx\n, (~0UL)); It will print correctly on the real HW: Test ~0UL ==

Re: [Qemu-devel] MIPS64 problem with ethernet

2007-05-21 Thread Jason Wessel
Aurelien Jarno wrote: Jason Wessel a écrit : The ethernet device does not come up correctly on a 64 MIPS target with a 64 bit kernel. Which Ethernet card are you using? The pcnet one is working correctly here. I am using a 2.6.21.1 kernel. It works perfectly fine if I boot a 32bit

[Qemu-devel] [PATCH] Fix sysrq support from the monitor mux

2007-05-18 Thread Jason Wessel
The monitor mux code calls uses the wrong opaque structure and crashes qemu. This patch fixes it such that the sysrq support works correctly. Signed-off-by: Jason Wessel [EMAIL PROTECTED] Jason. --- vl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: qemu/vl.c

[Qemu-devel] Problems with MIPS full system emulation and breakpoints

2007-04-20 Thread Jason Wessel
It seems there is an issue with the translation block flushing when writing to the code regions in the MIPS full system emulation. Using a 2.6 kernel which is basically running in single user mode, I use an extremely simple program: main () { int i; for (i = 0; i 10; i++) {

Re: Qemu-PPC problems (was [Qemu-devel] Just to add one single point)

2007-04-12 Thread Jason Wessel
compressed data Adjust prep loader to deal with larger kernel images. signed-off-by: Jason Wessel [EMAIL PROTECTED] Index: linux-2.6.21-rc3/arch/ppc/boot/simple/misc.c === --- linux-2.6.21-rc3.orig/arch/ppc/boot/simple/misc.c +++ linux

Re: Qemu-PPC problems (was [Qemu-devel] Just to add one single point)

2007-04-12 Thread Jason Wessel
Jason Wessel wrote: There is a new regression between Apr 9 and Apr 10 in the QEMU CVS HEAD where tcp checksums are failing again. :-( I stand corrected it not the TCP check sums. The new PPC pic code does not work so as to allow the ethernet device driver to receive packets. I guess

Re: [Qemu-devel] Is it possible to boot qemu-system-ppc with -kernel?

2007-04-03 Thread Jason Wessel
CONFIG_NET_ETHERNET=y CONFIG_NET_PCI=y CONFIG_NE2K_PCI=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y CONFIG_SQUASHFS=y -- Jason Wessel, SMTS Linux Products, Wind River direct +1.630.971.6420 mobile +1.630.715.4615 fax +1.630.971.6433

[Qemu-devel] [PATCH] add a simple 24mhz clock for the versatile

2007-03-30 Thread Jason Wessel
This patch implements a simple 24mhz clock for the versatile board such that functions in the linux kernel can make use of these stamps. An example user of this is the printk time stamps when using the time parameter on the kernel boot line. signed-off-by: [EMAIL PROTECTED] Cheers, Jason.

Re: [Qemu-devel] Re: Qemu PPC ethernet checksum bug [PATCH]

2007-03-22 Thread Jason Wessel
Attached is a patch as well as an example program, where I took the code from the from the linux kernel and made a call in with a dummy packet. It appears the problem is the addic translation does not correctly set/reset the carry bit, and this is a regression vs the source base on 3/7/2007.

[Qemu-devel] PATCH: 2nd serial port for Malta

2007-02-20 Thread Jason Wessel
Attached is a simple patch to enable the 2nd serial port on the malta board. Testing shows it even allows the use of KGDB over the second serial port. signed-off-by: [EMAIL PROTECTED] Jason. Index: qemu/hw/mips_malta.c === ---

[Qemu-devel] Monitor multiplexing

2007-02-05 Thread Jason Wessel
I would like to submit the monitor multiplexing patch again. It is ported against the latest CVS. It allows adding monitor capabilities like stdio but with tcp for instance, and the escape character can be changed from the default. signed-off-by: [EMAIL PROTECTED] Index: monitor.c

Re: [Qemu-devel] qemu vl.h hw/arm_boot.c hw/integratorcp.c hw/re...

2007-01-16 Thread Jason Wessel
Paul the code change that was checked in here causes the zImage files I generate not to work anymore. Please consider the small patch which fixes the problem. The load_elf() function is returning -1. signed-off-by: [EMAIL PROTECTED] Paul Brook wrote: CVSROOT:/sources/qemu Module

Re: [Qemu-devel] Re: weird slirp problems (dns lookups stopped working, and maybe more) [PATCH]

2007-01-11 Thread Jason Wessel
I posted a similar patch last year, but it was not accepted for some reason. Making this change allows UDP nfs to work to a remote file server as well. I would recommend, making one further change as included in this patch. It allows KGDBOE to operate on the local host or from a remote host

[Qemu-devel] [PATCH] PPC32 Trace Exception and Trap instruction

2006-12-27 Thread Jason Wessel
Please add this patch to CVS. The patch has two purposes: 1) The NIP needs to be updated for a tw instruction. I found that when executing protected mode traps the PC was always set to the begining of the code generation block instead of the instruction the trap occurred on.

[Qemu-devel] [PATCH] FC6 compat compiler fix

2006-12-08 Thread Jason Wessel
When using the gcc34 compiler in FC6 QEMU will not build. It seems that linux/compiler.h is not actually used for anything, as it continues to build fine on other linux varients. signed-off-by: [EMAIL PROTECTED] Jason. Index: qemu-101806/usb-linux.c

[Qemu-devel] [PATCH] GDB serial protocol fixes (detach, kill, and initial status query)

2006-07-31 Thread Jason Wessel
I have occasionally found that I have killed off gdb, and had no way to recover a debug session to QEMU. Also the detach/kill sequence does not work correctly protocol wise in the QEMU gdb-stub. This patch addresses these problems. I implemented the serial protocol commands the same way

[Qemu-devel] [PATCH] latest monitor / mux

2006-07-14 Thread Jason Wessel
This patch set has been brought up to date with cvs and the time stamp feature is abstracted now. This means you can do something like: -serial mon:vc Or my favorite: -serial mon:telnet::,server There are two patches attached to show the logical progress of the code

Re: [Qemu-devel] [PATCH] add serial port mux for debug monitor support

2006-07-02 Thread Jason Wessel
Following up to my last patch, I noticed a break; statement was missing and cause a bit of a problem with the -echr option. Fix is attached. signed-off-by: [EMAIL PROTECTED] Jason Wessel wrote: There are two patches attached to show the logical progress of the code and in the case that one

[Qemu-devel] [PATCH] add serial port mux for debug monitor support

2006-07-01 Thread Jason Wessel
There are two patches attached to show the logical progress of the code and in the case that one is not accepted the work is more easily broken down. The serial_mux_driver.patch must be applied first. It adds a generic mux support for the I/O drivers internal to vl.c. The main purpose is

[Qemu-devel] [PATCH] telnet IAC options and simplified tcp udp options

2006-06-27 Thread Jason Wessel
This patch simplifies the syntax of the tcp and udp options, as well as adding the telnet protocol. signed-off-by: [EMAIL PROTECTED] Jason. Index: qemu/vl.c === --- qemu.orig/vl.c +++ qemu/vl.c @@ -2203,16 +2203,16 @@ static void

Re: [Qemu-devel] qemu vl.c qemu-doc.texi

2006-06-26 Thread Jason Wessel
. Fabrice Bellard wrote: CVSROOT:/sources/qemu Module name:qemu Changes by: Fabrice Bellard bellard 06/06/25 14:49:44 Modified files: . : vl.c qemu-doc.texi Log message: UDP char device (initial patch by Jason Wessel) - TCP char device CVSWeb URLs: http

[Qemu-devel] gdb-stub support for Win32 host

2006-05-27 Thread Jason Wessel
This patch adds support for the gdb-stub to work on the Win32 host and compile in by default. I retested to make sure everything was compatible so as not to break the unix side. signed-off-by: [EMAIL PROTECTED] Thanks, Jason. Index: qemu/configure

Re: [Qemu-devel] [PATCH 1/5] single step with no IRQs and timers

2006-05-21 Thread Jason Wessel
Daniel, Here is the revised patch (against CVS HEAD 5/21/06). The docs are updated as well. signed-off-by: [EMAIL PROTECTED] Cheers, Jason. Daniel Jacobowitz wrote: Hi Jason, Not that I'm always good about this myself, but could I ask you to follow this paragraph from the GDB manual,

[Qemu-devel] [PATCH 0/5] 5 patches on the way

2006-05-20 Thread Jason Wessel
I am submitting 5 different patches for improvements to qemu as separate e-mails so as to get feedback and further change the patches if needed in the hope they will be accepted. I will make further changes to the docs if needed as well. Each feature has been tested on a linux 2.6 kernel and

[Qemu-devel] [PATCH 1/5] single step with no IRQs and timers

2006-05-20 Thread Jason Wessel
This patch adds the functionality to the gdb-stub to single step with the IRQs and timers disabled. It greatly improves gdb's ability to perform run control while running a linux kernel and stepping off of breakpoints or stepping into certain types of functions. I have also included

[Qemu-devel] [PATCH 3/5] ARM undefined instruction execution

2006-05-20 Thread Jason Wessel
This patch fixes the execution of undefined instructions for ARM. With out it the virtualized CPU incorrectly executes the do_abort vector instead. signed-off-by: [EMAIL PROTECTED] Jason. Index: qemu/target-arm/translate.c ===

[Qemu-devel] [PATCH 5/5] Netconsole and updated Monitor support

2006-05-20 Thread Jason Wessel
This patch add support for remote net consoles via udp similar to what you would do with a net console with u-boot or a linux kernel. Typically you use the netcat tool for this. This patch also partially abstracts the ability to switch between the monitor and the main focus of a port. I say

[Qemu-devel] [PATCH] undefined instruction handling to fix for ARM

2006-05-02 Thread Jason Wessel
stepping (Jason Wessel) version 0.8.0: Index: target-arm/translate.c === RCS file: /sources/qemu/qemu/target-arm/translate.c,v retrieving revision 1.41 diff -u -r1.41 translate.c --- target-arm/translate.c 9 Apr 2006 14:38:57 -

[Qemu-devel] [PATCH] versatile AB board support

2006-04-27 Thread Jason Wessel
Paul Brook did all the hard work for the Versatile PB. The Versatile AB is quite similar to the PB but has a different expansion bus and flash. This patch adds Versatile AB support so you can boot an unmodified ARM Versatile AB kernel. signed-off-by: [EMAIL PROTECTED] Thanks, Jason.

[Qemu-devel] Strange page fault problem in qemu-system-arm

2006-04-27 Thread Jason Wessel
Has anyone seen user land page fault problems where gdb does not work with the qemu-system-arm ? I compile my kernel with CONFIG_DEBUG_USER so as to add a debug hook for user land page faults, which you can see in the case of running gdb below. I ran gdb on /bin/ls just as a simple case,

[Qemu-devel] [PATCH] gdbstub.c fix for SIGINT

2006-04-17 Thread Jason Wessel
Attached is a patch to add the case for interrupting the gdbstub and sending the correct signal to gdb. The gdb serial protocol states that if you interrupt the stub with a control-c in gdb that it should stop with S02 (SIGINT) to indicate that it was interrupted. I also added the tlb flush