[Qemu-devel] Re: [PATCH] Use a Linux-style MAINTAINERS file

2010-09-10 Thread Magnus Damm
On Fri, Sep 10, 2010 at 6:18 AM, Anthony Liguori wrote: >  SH4 > -  shix.c                  ? > -  r2d.c                   Magnus Damm > +M: qemu-devel@nongnu.org > +S: Orphan > +F: target-sh4/ I don't mind having my name on the list. I'd like to spend more time on

[Qemu-devel] Re: [PATCH] Use a Linux-style MAINTAINERS file

2010-09-13 Thread Magnus Damm
Hi Anthony, On Fri, Sep 10, 2010 at 10:59 PM, Anthony Liguori wrote: > Hi Magnus, > > On 09/10/2010 03:25 AM, Magnus Damm wrote: >> >> On Fri, Sep 10, 2010 at 6:18 AM, Anthony Liguori >>  wrote: >> >>> >>>  SH4 >>> -  shix.c        

[Qemu-devel] [PATCH] fix make clean targets

2009-11-13 Thread Magnus Damm
From: Magnus Damm This patch fixes clean in case of missing directories and also adds code to distclean that removes the following files: qemu-monitor.texi roms/seabios/config.mak roms/vgabios/config.mak Signed-off-by: Magnus Damm --- Makefile |5 +++-- 1 file changed, 3 insertions

[Qemu-devel] [PATCH] sh4 disasm fixes

2009-11-13 Thread Magnus Damm
From: Magnus Damm Add the sh4 target to the monitor disassembly function, and remove a duplicate "0x" printout from the sh4 dis- assembly code. Signed-off-by: Magnus Damm --- disas.c |4 sh4-dis.c |2 +- 2 files changed, 5 insertions(+), 1 deletion(-) --- 00

[Qemu-devel] [PATCH] remove duplicate sar opcode from i386 tcg code

2009-11-13 Thread Magnus Damm
From: Magnus Damm Remove duplicate sar opcode from the i386 tcg code. Signed-off-by: Magnus Damm --- tcg/i386/tcg-target.c |1 - 1 file changed, 1 deletion(-) --- 0001/tcg/i386/tcg-target.c +++ work/tcg/i386/tcg-target.c 2009-11-13 16:34:21.0 +0900 @@ -1147,7 +1147,6 @@ static

[Qemu-devel] [PATCH] experimental sh4 host support

2009-11-13 Thread Magnus Damm
From: Magnus Damm This patch adds experimental sh4 host support to QEMU. The patch contains a work-in-progresss snapshot, and only the bare essentials are in place at this point. The sh4 host support has been tested with the sh4 target using the QEMU sh4 user space emulator and tiny assembly

[Qemu-devel] [PATCH] experimental sh4 host support V2

2009-11-15 Thread Magnus Damm
From: Magnus Damm This is V2 of the QEMU sh4 host support patch. The code is of a somewhat experimental nature, which means that only the bare essentials are in place. The sh4 host support has been tested with the sh4 target inside the QEMU sh4 user space emulator. Only tiny assembly snippets

[Qemu-devel] sh4: minor fixes for current cvs

2007-04-25 Thread Magnus Damm
: Use 16-bit uid wrappers Without this patch a simple hello world program emits this: qemu: Unsupported syscall: 47 Signed-off-by: Magnus Damm <[EMAIL PROTECTED]> --- 0001/linux-user/syscall.c +++ work/linux-user/syscall.c 2007-04-17 11:48:24.0 +0900 @@ -74,7 +74,7 @@ //#define DEBUG

[Qemu-devel] sh4: further updates

2007-05-09 Thread Magnus Damm
shift left once, so fix that. XREG() is used in some places where FREG() is more suitable. Signed-off-by: Magnus Damm <[EMAIL PROTECTED]> --- 0001/target-sh4/translate.c +++ work/target-sh4/translate.c 2007-05-07 17:11:49.0 +0900 @@ -236,7 +236,7 @@ static void gen_delayed_condi

Re: [Qemu-devel] sh4: further updates

2007-05-14 Thread Magnus Damm
our problem? Apply on top of sh4-fpu-new. / magnus sh4: Fix new fpu opcodes This patch works around problems with references to the cst8 section that occured on powerpc. This fix has been tested using gentoo crossdev and a combination of gcc-3.4.6 and glibc-2.4. Signed-off-by: Magnus Damm <

[Qemu-devel] sh4: user space emulator patches

2007-06-12 Thread Magnus Damm
Hi everyone, Here comes a batch of patches for the sh4 user space emulator. I have another 10 patches in my local queue that are specific to the sh4 user space emulator, and when I'm done with them I'll spend time on fixing up the sh4 system emulator. Maybe it's time for some CVS write access? Un

[Qemu-devel] sh4: more patches

2007-06-22 Thread Magnus Damm
Hi everyone, Here comes a few more patches for the sh4 emulator. The should be applied on top of the patches that I posted a few weeks ago: http://www.mail-archive.com/qemu-devel@nongnu.org/msg10830.html Good news is that the user space emulator is in a much better shape now - with all the patc

Re: [Qemu-devel] sh4: more patches

2007-06-24 Thread Magnus Damm
Hi Thiemo, Thanks for the review and commit help! On 6/22/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: Magnus Damm wrote: > The patches attached in this email contain the following fixes: > > - sh4: Swap word order when accessing double floats Doesn't this one als

Re: [Qemu-devel] sh4: more patches

2007-07-03 Thread Magnus Damm
On 6/25/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: Can you also provide a regression test like some of the other targets have? It would be very useful to detect breakage. Sure, what about the attached hello-sh4 test patch? And while at it I've attached two minor patches for fixing trapa sing

Re: [Qemu-devel] sh4: more patches

2007-07-03 Thread Magnus Damm
On 6/26/07, Blue Swirl <[EMAIL PROTECTED]> wrote: On 6/22/07, Magnus Damm <[EMAIL PROTECTED]> wrote: > The method used to locate emulation bugs may be of value for other > fellow qemu hackers. I've written a small gdb script that single steps > in an endless loop dump

[Qemu-devel] sh4: system emulator - interrupt controller

2007-10-03 Thread Magnus Damm
Hi everyone, Attached is a patch that implements a table driver interrupt controller for the sh architecture. The tables that describes the registers and interrupt sources are very similar to the linux kernel code that I rewrote recently. Included are tables for sh775x but it should be fairly easy

[Qemu-devel] sh4: more system emulator patches

2007-11-14 Thread Magnus Damm
Hi everyone, Here comes another batch of sh4 system emulator patches. sh: add sh.h header sh_serial: enable tx after reset sh_intc: improve interrupt controller code sh: connect cpu core to interrupt controller sh_timer: add interrupt support These patches mainly improve the sh interrupt control

Re: [Qemu-devel] [PATCH] SH4 Fix missing 6th arg of syscall.

2007-11-20 Thread Magnus Damm
Hi there, On Nov 20, 2007 11:48 PM, <[EMAIL PROTECTED]> wrote: > I found 6th arg for syscall is missing on SH4 linux-user emulation. > This seems to be the cause of shared library mapping failure. > I successfully run shared-lib'd binary, after applying following fix. Hehe, I managed to create t

Re: [Qemu-devel] [PATCH] SH4 Fix missing 6th arg of syscall.

2007-11-21 Thread Magnus Damm
Hi there, On Nov 21, 2007 2:07 PM, Tomoyoshi ASANO <[EMAIL PROTECTED]> wrote: > I tested big-endian binaries by sh4(eb)-linux-user > with a small patch(attached) for building sh4eb-linux-user. > But I don't understand that this patch is needed or not. I'm not sure if that patch is all that is nee

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

2007-11-21 Thread Magnus Damm
Hi everyone, This adds SH support to the user space signal emulation code. Please apply. Thanks, / magnus qemu-cvs-20071121c-sh4-signal.patch Description: Binary data

Re: [Qemu-devel] [PATCH] sh4: add signal handling support for user space emulator

2007-11-21 Thread Magnus Damm
On Nov 21, 2007 5:40 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > On Wed, Nov 21, 2007 at 05:16:55PM +0900, Magnus Damm wrote: > > +#define MOVW(n) (0x9300|((n)-2)) /* Move mem word at PC+n to R3 */ > > +#define TRAP_NOARG 0xc310 /* Syscall w/no args (NR in R3)

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

2007-11-28 Thread Magnus Damm
Hi everyone, This patch updates the delay slot handling for the sh4 target. The main feature is that delay slot flags now are stored in the tlb. This is needed for signal emulation and interrupts. There are also some correctness fixes included in this patch - with this patch applied i'm able to r

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

2007-11-28 Thread Magnus Damm
Hi Paul, Thanks for your comments. On Nov 28, 2007 9:49 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > On Wed, Nov 28, 2007 at 06:54:20PM +0900, Magnus Damm wrote: > > +#define DELAY_SLOT_TRUE(1 << 2) > > +#define DELAY_SLOT_CLEARME (1 << 3)

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

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

2007-11-29 Thread Magnus Damm
Hi everyone, This patch updates the interrupt and exception code for the sh4 system emulator. Together with the delay slot patch posted yesterday this patch implements working interrupts for the sh4 system emulator. There are unfortunately no sources that actually hook up to the interrupt controll

[Qemu-devel] [PATCH] execve syscall fix

2007-11-29 Thread Magnus Damm
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 the old NULL values from previous get_user_ual() calls. E

[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] Outstanding patches - Nov 30

2007-11-30 Thread Magnus Damm
rt. Please let me know if you have any updates to the list. Thank you. User space emulator: Date: Nov 19, 2007 From: Kirill A. Shutemov Subject: [Qemu-devel] [PATCH] Fix for execve syscall Note: Acked by Magnus Damm Date: Nov 21, 2007 From: Thayne Harbaugh Subject: [Qem

[Qemu-devel] Re: [PATCH] r2d: Add R2D-PLUS FPGA support.

2007-12-05 Thread Magnus Damm
y: Paul Mundt <[EMAIL PROTECTED]> Acked-by: Magnus Damm <[EMAIL PROTECTED]> Looking good, thanks. Please apply. / magnus

[Qemu-devel] Re: [PATCH] target-sh4: Support CPU versioning.

2007-12-05 Thread Magnus Damm
On Dec 3, 2007 5:40 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > Trivial patch adding CPU listing and the ability to do per-subtype > CVR/PVR/PRR values. The existing semantics aren't changed, as only > the SH7751R values are stubbed in for the moment, but the kernel is at > least able to get the ca

[Qemu-devel] [PATCH] mark host pages as reserved

2007-12-05 Thread Magnus Damm
Hi all, This patch teaches the user space emulator about host pages. It marks present host page mappings with PAGE_RESERVED so mmap_find_vma() properly can detect that pages at mmap_next_start should be skipped over instead of being overwritten using mmap(). Without this patch I experience crashes

[Qemu-devel] [PATCH] sh4: add interrupt support to sh_timer.c

2007-12-05 Thread Magnus Damm
Hi everyone, This patch adds interrupt support to the sh specific timer code. Tested with a 2.6.24-rc guest kernel. hw/sh.h |7 ++- hw/sh7750.c | 12 +--- hw/sh_timer.c | 32 ++-- 3 files changed, 33 insertions(+), 18 deletions(-) / magnus

[Qemu-devel] Re: [PATCH] mark host pages as reserved

2007-12-10 Thread Magnus Damm
Hi everyone, On Dec 5, 2007 5:45 PM, Magnus Damm <[EMAIL PROTECTED]> wrote: > Hi all, > > This patch teaches the user space emulator about host pages. It marks > present host page mappings with PAGE_RESERVED so mmap_find_vma() > properly can detect that pages at mmap_next_st

[Qemu-devel] [PATCH] cirrus_vga.c and win95, another one

2005-06-15 Thread Magnus Damm
Hello, Here comes another small fix for the cirrus code. This makes win95 (swedish version) behave correctly. I am not sure if the patch breaks something else though. Have a look at the attached pictures, compare the funny looking striped background behind the text with the correct checkered bac

Re: [Qemu-devel] Re: Building a disk image?

2005-07-05 Thread Magnus Damm
On 7/6/05, Jim C. Brown <[EMAIL PROTECTED]> wrote: > On Tue, Jul 05, 2005 at 12:55:49PM -0500, Matt Lawrence wrote: > > I guess I don't don't quite understand how to get the partition table set > > up correctly with losetup. It looks like another issue. Also, how do I > > get the bootloader confi

Re: [Qemu-devel] Re: Building a disk image?

2005-07-06 Thread Magnus Damm
On 7/7/05, Jim C. Brown <[EMAIL PROTECTED]> wrote: > This is quite clever. I don't see the sources for fsimage (the host program) > anywhere though - it would be a lot more useful if one could tinker with both > the host and the guest sides. This can be made to cover everything except > resizing qc

Re: [Qemu-devel] [patch] non-blocking disk IO

2005-10-03 Thread Magnus Damm
John, On 10/3/05, John Coiner <[EMAIL PROTECTED]> wrote: > > Non-blocking disk IO now works for any type of disk image, not just > "raw" format. There is no longer any format-specific code in the patch: > > http://people.brandeis.edu/~jcoiner/qemu_idedma/qemu_dma_patch.html > > You might want this

[Qemu-devel] [PATCH] pc: boot sector writes and -kernel

2005-11-25 Thread Magnus Damm
Hello there, This patch adds write support to the overlapping boot sector used by the -kernel command line option. Without the patch, guests booted with -kernel will fail updating boot sector. This results in a fdisk that is unable to update the partition table in the running kernel, but is able

Re: [Qemu-devel] Current x86_64 status

2005-12-15 Thread Magnus Damm
Hi Jan, On 12/15/05, Jan Kratochvil <[EMAIL PROTECTED]> wrote: > I could not find anywhere - is the current QEMU CVS snapshot GNU/Linux x86_64 > incompatibility a known bug? > > I tried to install Fedora Core 4, 5test1, Mandriva 2006.0, Debian 3.1r0a and > all of these always somehow crash during

[Qemu-devel] qemu-system-x86_64, Xen and CONFIG_IA32_EMULATION

2006-04-19 Thread Magnus Damm
Hi there, I'm currently using qemu-system-x86_64 (from cvs) to do Xen development for the x86_64 architecture. I find that x86_64 emulation in qemu works pretty well as long as I use a non-smp x86_64 linux kernel and ia32 user space together with CONFIG_IA32_EMULATION. Unfortunately, if I run the

Re: [Qemu-devel] [PATCH 06/10] r2d: Flash memory creation is confused about size, mark FIXME

2019-03-03 Thread Magnus Damm
Hi guys, On Wed, Feb 20, 2019 at 2:31 AM Markus Armbruster wrote: > > Philippe Mathieu-Daudé writes: > > > On 2/19/19 4:45 PM, Markus Armbruster wrote: > >> Peter Maydell writes: > >> > >>> On Mon, 18 Feb 2019 at 13:07, Markus Armbruster wrote: > > pflash_cfi02_register() takes a siz

Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan

2020-06-09 Thread Magnus Damm
Hi Markus and Thomas, On Tue, Jun 9, 2020 at 5:41 PM Markus Armbruster wrote: > > Thomas Huth writes: > > > On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote: > >> Last commit from Magnus Damm is fc8e320ef583, which date is > >> Fri Nov 13 2009. As nobody els