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

2007-03-30 Thread andrzej zaborowski
On 31/03/07, Wessel, Jason <[EMAIL PROTECTED]> wrote: uint64_t now = qemu_get_clock(vm_clock); return (uint32_t)((now*3)/125); The optimizer should fix this up with no floating point ops. Adding to the bikeshed discussion (www.bikeshed.com) this is still not correct as vm_clock is to be used

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

2007-03-30 Thread Wessel, Jason
uint64_t now = qemu_get_clock(vm_clock); return (uint32_t)((now*3)/125); The optimizer should fix this up with no floating point ops. Jason. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Kalbfeld Sent: Friday, March 3

[Qemu-devel] PATCH: Solaris 9/x86 support

2007-03-30 Thread Ben Taylor
This patch helps solaris 9/x86 (and likely Solaris 8/x86, but I don't have a machine or cycles to test this, and would only require a small configure fix) compile and run qemu. The basic difference required for Solaris 9/x86 vs Solaris 9/Sparc is that the libm in Solaris sparc is already mostly C

[Qemu-devel] PATCH: qcow2 image corruption

2007-03-30 Thread Juergen Keil
There have been several reports recently that qemu qcow2 images get corrupted when they grow to ~ 4 gbytes. I've been able to reproduce this using an opensolaris (build 60) install into an 8GB qcow2 image. Installing from dvd works and fills the qcow2 image to ~ 4GB; fsck of the installed qcow2

Re: [Qemu-devel] Linux 2.6 kernel on PPC

2007-03-30 Thread Rob Landley
On Thursday 22 March 2007 2:48 pm, Ed Swierk wrote: > Has anyone succeeded in booting a Linux 2.6 kernel on Qemu PPC? If so, > what distribution did you use? I've never managed to boot a kernel I built. A year ago I did manage to get the Ubuntu 5.10 bootable CD to boot though. (Of course the _i

[Qemu-devel] qemu kqemu.c

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 19:20:50 Modified files: . : kqemu.c Log message: Switch include for Solaris to avoid namespace issues. By Juergen Keil. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/q

[Qemu-devel] PATCH: Solaris kqemu.c

2007-03-30 Thread Ben Taylor
This patch further isolates the functions needed for kqemu.c by Solaris. The original include has the unintended side effect of screwing up the mips targets on Solaris 9/x86 because there are some defines that get included via sys/modctl.h that change how the CPU structure in the mips-target/cpu

[Qemu-devel] qemu monitor.c qemu-doc.texi

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 18:58:01 Modified files: . : monitor.c qemu-doc.texi Log message: Spelling fixes, by Stefan Weil. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/monitor.c?cvsroot=q

[Qemu-devel] qemu/target-mips TODO

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 18:56:19 Modified files: target-mips: TODO Log message: Update mips TODO. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/TODO?cvsroot=qemu&r1=1.6&r2=1.7

[Qemu-devel] [PATCH] Fix spelling for qemu-doc.texi and monitor.c

2007-03-30 Thread Stefan Weil
This patch fixes the usage of medium and media in the documentation and in QEMU messages. one CDROM = medium (not media) two or more CDROMs = media (not medias) Please correct me if I was wrong - I'm not a native speaker but tried my best and looked at AskOxford. Stefan Index: qemu-doc.texi ===

[Qemu-devel] qemu/target-mips cpu.h

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 18:42:21 Modified files: target-mips: cpu.h Log message: Fix typo, suggested by Ben Taylor. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/cpu.h?cvsroot=qemu&r1=

[Qemu-devel] [PATCH] Update qemu-binfmt-conf.sh

2007-03-30 Thread Stefan Weil
The patch updates the comments, makes modprobe conditional, adds a mount needed at least for Debian, and tries to add m68k. I have no m68k executable available, perhaps somebody can check the header bytes and the cpu type for this platform? Maybe the cpu list for mips must be completed, too. Ste

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

2007-03-30 Thread Jonathan Kalbfeld
If you're ok you can shift it left 4 bits, then add half that result then shift right 10 bits. Of course, you'll only get 23.4Mhz that way :-) jonathan On 3/30/07, Paul Brook <[EMAIL PROTECTED]> wrote: > + uint64_t now = qemu_get_clock(vm_clock); > + return (uint32_t)(now*.024); We should be

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

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 17:48:00 Modified files: target-mips: helper.c Log message: Squash logic bugs while they are fresh... CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/helper.c?cvs

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

2007-03-30 Thread Paul Brook
> +        uint64_t now = qemu_get_clock(vm_clock); > +        return (uint32_t)(now*.024); We should be able to do this without resorting to floating point arithmetic. Paul

[Qemu-devel] [SPARC][PATCH] Generate cp_disabled trap for Cpop instructions

2007-03-30 Thread Aurelien Jarno
Hi all, Both of the SPARC CPU currently emulated in QEMU do not have a coprocessor. In such case executing a Cpop1 or a Cpop2 instruction should generate a cp_disabled trap, but the current implementation generates a illegal_instruction instead. The patch below fixes that. Bye, Aurelien Index

[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

[Qemu-devel] qemu cpu-exec.c dyngen-exec.h hw/mips_int.c tar...

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 16:44:54 Modified files: . : cpu-exec.c dyngen-exec.h hw : mips_int.c target-mips: cpu.h helper.c op.c op_helper.c translate.c Log message:

[Qemu-devel] qemu vl.h

2007-03-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/03/30 16:41:55 Modified files: . : vl.h Log message: Fix build failure. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemu&r1=1.197&r2=1.198

[Qemu-devel] [SPARC] Looking for SuperSPARC User's Guide

2007-03-30 Thread Peter
I've been searching high and low for the "SuperSPARC User's Guide". At one time it was published as Sun part number 801-4272-01 and TI part number 2647726-9761. A previous TI version was apparently published as SPKU005 (and possibly 2647726-9721, although that could be a typo). Sun and TI don't

Re: [Qemu-devel] Re: 3 bugs found

2007-03-30 Thread Christian MICHON
On 3/30/07, James Jacobs <[EMAIL PROTECTED]> wrote: Host type is Win98SE. Guest types are Debian Linux 3.1 and Knoppix. Not specifying a type of image to qemu-img (using default, whichever filesystem that is - it doesn't say). no experience whatsoever on win98se host. I usually use it as guest.

[Qemu-devel] Re: 3 bugs found

2007-03-30 Thread James Jacobs
>> 3 more bugs that need attention... >> >> a) serious: Image files, even those created by the version of qemu-img.exe >> that comes with QEMU 0.90, are unreadable by QEMU 0.90, QEMU 0.82 works fine >> with them. >> >> b) less serious: "Out of environment space" error when starting. >> >> c) seriou

Re: [Qemu-devel] no meta key?

2007-03-30 Thread Daniel Jacobowitz
On Thu, Mar 29, 2007 at 07:43:01PM -0600, C.W. Betts wrote: > When I was trying to get the PowerPC qemu to go into open Firmware > mode, The mode you're looking for doesn't exist :-) Open Hack'ware implements a bunch of PROM operations that let the OS query it, et cetera, but the Forth interprete

Re: [Qemu-devel] Bugs found

2007-03-30 Thread Christian MICHON
On 3/30/07, James Jacobs <[EMAIL PROTECTED]> wrote: 3 more bugs that need attention... a) serious: Image files, even those created by the version of qemu-img.exe that comes with QEMU 0.90, are unreadable by QEMU 0.90, QEMU 0.82 works fine with them. b) less serious: "Out of environment space" e

[Qemu-devel] Bugs found

2007-03-30 Thread James Jacobs
3 more bugs that need attention... a) serious: Image files, even those created by the version of qemu-img.exe that comes with QEMU 0.90, are unreadable by QEMU 0.90, QEMU 0.82 works fine with them. b) less serious: "Out of environment space" error when starting. c) serious: "audio: Failed to cre

Re: [Qemu-devel] Re: PC traces from QEMU

2007-03-30 Thread Stuart Brady
On Thu, Mar 29, 2007 at 06:28:14PM -0700, Shashidhar Mysore wrote: > Hi Stuart, > > Thanks for the reply, but since I'm a little new to qemu, can you please > elaborate on how to insert the op_dump_pc function to extract the PC values? Well, here's a patch that does it: Index: target-i386/exec.h

[Qemu-devel] qemu/target-ppc op.c op_helper.c op_helper.h tr...

2007-03-30 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer 07/03/30 10:22:46 Modified files: target-ppc : op.c op_helper.c op_helper.h translate.c Log message: Fix rfi instruction: do not depend on current execution mode but on the execution m

[Qemu-devel] qemu/target-ppc cpu.h translate_init.c

2007-03-30 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer 07/03/30 10:07:33 Modified files: target-ppc : cpu.h translate_init.c Log message: Fix / update PowerPC BookE definitions. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/cpu.h

[Qemu-devel] qemu cpu-exec.c vl.h hw/openpic.c hw/ppc.c hw/p...

2007-03-30 Thread Jocelyn Mayer
CVSROOT:/sources/qemu Module name:qemu Changes by: Jocelyn Mayer 07/03/30 09:38:04 Modified files: . : cpu-exec.c vl.h hw : openpic.c ppc.c ppc_chrp.c ppc_prep.c target-ppc : cpu.h helper.c Log message: New model for