Re: [Qemu-devel] [PATCH] User mode: Handle x86_64 vsyscall

2010-02-06 Thread malc
On Sun, 7 Feb 2010, Jamie Lokier wrote: > Laurent Desnogues wrote: > > On Sat, Feb 6, 2010 at 8:49 AM, Stefan Weil wrote: > > [...] > > > I tested two different hosts with x86_64-linux-user: > > > > > > * 32 bit Intel (i386) - does not work with your patch > > > > For me x86_64 on i386 has alway

Re: [Qemu-devel] MIPS(EL) broken on i386 Linux host?

2010-02-06 Thread Dirk Ullrich
Hi Aurelien, 2010/2/6 Aurelien Jarno : > On Thu, Feb 04, 2010 at 08:40:23AM +0100, Dirk Ullrich wrote: >> Hi, >> >> I have a problem running a MIPS(EL) guest on a i386 linux host >> (actually, on Debian testing with a 2.6.32 kernel) when using the >> current Git master code for QEMU (compiled at t

Re: [Qemu-devel] [PATCH] User mode: Handle x86_64 vsyscall

2010-02-06 Thread Jamie Lokier
Laurent Desnogues wrote: > On Sat, Feb 6, 2010 at 8:49 AM, Stefan Weil wrote: > [...] > > I tested two different hosts with x86_64-linux-user: > > > > * 32 bit Intel (i386) - does not work with your patch > > For me x86_64 on i386 has always failed without > even calling vsyscall :-) > > > * 64

Re: [Qemu-devel] [PATCH] User mode: Handle x86_64 vsyscall

2010-02-06 Thread Laurent Desnogues
On Sat, Feb 6, 2010 at 8:49 AM, Stefan Weil wrote: [...] > I tested two different hosts with x86_64-linux-user: > > * 32 bit Intel (i386) - does not work with your patch For me x86_64 on i386 has always failed without even calling vsyscall :-) > * 64 bit AMD (x86_64)  - works with your patch > >

Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel

2010-02-06 Thread Stefan Weil
Aurelien Jarno schrieb: > On Wed, Feb 03, 2010 at 04:23:01PM +0800, daniel tian wrote: > >> Hi, Aurelien Jarno: >> >> I just encounter a problem in running kernel on qemu mips malta board, >> I don't know how to bring up the graphic mode. >> with the option --nographic, it's ok: the kernel and r

Re: [Qemu-devel] [PATCH 01/14] arm host: Fix compiler warning

2010-02-06 Thread Aurelien Jarno
On Wed, Jan 20, 2010 at 07:43:25PM +0100, Stefan Weil wrote: > Compilation for arm (native or cross) results in this > warning: > > fpu/softfloat-native.c: In function ‘float64_round_to_int’: > fpu/softfloat-native.c:387: error: control reaches end of non-void function > > float64_round_to_int us

Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel

2010-02-06 Thread Aurelien Jarno
On Wed, Feb 03, 2010 at 04:23:01PM +0800, daniel tian wrote: > Hi, Aurelien Jarno: > > I just encounter a problem in running kernel on qemu mips malta board, > I don't know how to bring up the graphic mode. > with the option --nographic, it's ok: the kernel and rootfs run successfully. > > But I

Re: [Qemu-devel] [PATCH 0/2] tcg-i386 setcond, round 7

2010-02-06 Thread Aurelien Jarno
On Sat, Feb 06, 2010 at 11:48:41AM -0800, Richard Henderson wrote: > Fixes the coding style error pointed out in round 6. > > > r~ > > > Richard Henderson (2): > tcg-i386: Implement small forward branches. > tcg-i386: Implement setcond. > > elf.h |2 + > tcg/i386/tcg-t

Re: [Qemu-devel] [PATCH] Add -static earlier to LDFLAGS for compile_prog()

2010-02-06 Thread Aurelien Jarno
On Sun, Jan 31, 2010 at 12:23:45PM +0100, Loïc Minier wrote: > Add -static to LDFLAGS earlier as to run the compile_prog() tests with > this flags, this will avoid turning on features for which a shared > library is available but not a static one. Thanks, applied. > Signed-off-by: Loïc Minier >

Re: [Qemu-devel] [PATCH] Fix missing symbols in .rel/.rela.plt sections

2010-02-06 Thread Aurelien Jarno
On Sun, Jan 31, 2010 at 12:22:52PM +0100, Loïc Minier wrote: > Fix .rel.plt sections in the output to not only include .rel.plt > sections from the input but also the .rel.iplt sections and to define > the hidden symbols __rel_iplt_start and __rel_iplt_end around > .rel.iplt as otherwise we get und

Re: [Qemu-devel] [PATCH] User mode: Handle x86_64 vsyscall

2010-02-06 Thread Richard Henderson
On 02/05/2010 02:57 PM, Stefan Weil wrote: I tried to modify x86_64-linux-user to set up a vsyscall page in high memory, but this seems to be difficult (at least with 32 bit host). A 64-bit userland guest can only use the low 32-bits of its address space with a 32-bit host at the moment. If y

[Qemu-devel] [PATCH 1/2] tcg-i386: Implement small forward branches.

2010-02-06 Thread Richard Henderson
There are places, like brcond2, where we know that the destination of a forward branch will be within 127 bytes. Add the R_386_PC8 relocation type to support this. Add a flag to tcg_out_jxx and tcg_out_brcond* to enable it. Set the flag in the brcond2 label_next branches; pass along the input fl

[Qemu-devel] [PATCH 2/2] tcg-i386: Implement setcond.

2010-02-06 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c | 73 +++-- 1 files changed, 70 insertions(+), 3 deletions(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 052af49..b69b5b0 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i3

[Qemu-devel] [PATCH 0/2] tcg-i386 setcond, round 7

2010-02-06 Thread Richard Henderson
Fixes the coding style error pointed out in round 6. r~ Richard Henderson (2): tcg-i386: Implement small forward branches. tcg-i386: Implement setcond. elf.h |2 + tcg/i386/tcg-target.c | 188 ++--- 2 files changed, 150 inse

[Qemu-devel] [PATCH] Add assignment operation to config file parser..

2010-02-06 Thread john cooper
This patch reworks support for both assignment and append in the config file parser. It was motivated by comments received on the cpu model config file format. Commit dc9ca4ba27be4fe6a0284061b8f056c4364fb0d9 changed the behavior of "=" from assign to append. This patch preserves the ability to ap

Re: [Qemu-devel] [PATCH] PPC: Add wrapper for target long DCR operations

2010-02-06 Thread Alexander Graf
Am 06.02.2010 um 17:15 schrieb Aurelien Jarno : On Thu, Jan 14, 2010 at 06:04:25PM +0100, Alexander Graf wrote: On 14.01.2010, at 18:02, Aurelien Jarno wrote: On Thu, Jan 14, 2010 at 04:19:31PM +0100, Alexander Graf wrote: On 14.01.2010, at 16:13, Aurelien Jarno wrote: On Fri, Jan 01, 2

[Qemu-devel] [PATCH 4/8] target-sh4: MMU: fix ITLB priviledge check

2010-02-06 Thread Aurelien Jarno
There is an ITLB access violation if SR_MD=0 (user mode) while the high bit of the protection key is 0 (priviledge mode). Signed-off-by: Aurelien Jarno --- target-sh4/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c inde

[Qemu-devel] [PATCH 5/8] target-sh4: MMU: optimize UTLB accesses

2010-02-06 Thread Aurelien Jarno
With the current code, the QEMU TLB is setup to match the read/write mode of the MMU fault. This means when read access is done, the page is setup in read-only mode. When the page is later accessed in write mode, an MMU fault happened, and the page is switch in write-only mode. This flip-flop cause

[Qemu-devel] [PATCH 1/8] sh7750: handle MMUCR TI bit

2010-02-06 Thread Aurelien Jarno
When the MMUCR TI bit is set, all the UTLB and ITLB entries should be flushed. Signed-off-by: Aurelien Jarno --- hw/sh7750.c |7 +-- target-sh4/cpu.h|2 ++ target-sh4/helper.c | 18 ++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/sh

[Qemu-devel] [PATCH 3/8] target-sh4: MMU: simplify call to tlb_set_page()

2010-02-06 Thread Aurelien Jarno
tlb_set_page() doesn't need addresses with offset, but simply the page aligned addresses. Signed-off-by: Aurelien Jarno --- target-sh4/helper.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index e7c494f..f9bf5e2 100644

[Qemu-devel] [PATCH 8/8] target-sh4: MMU: fix store queue addresses

2010-02-06 Thread Aurelien Jarno
The store queues are located from 0xe000 to 0xe3ff. Signed-off-by: Aurelien Jarno --- target-sh4/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 9b3a259..0a2a90e 100644 --- a/target-sh4/helper.c +++ b/targ

[Qemu-devel] [PATCH 6/8] target-sh4: MMU: reduce the size of a TLB entry

2010-02-06 Thread Aurelien Jarno
Reduce the size of the TLB entry from 32 to 16 bytes, reorganising members and using a bit field. Signed-off-by: Aurelien Jarno --- target-sh4/cpu.h | 23 +++ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 015d598.

[Qemu-devel] [PATCH 0/8] SH4 MMU fixes and optimisation

2010-02-06 Thread Aurelien Jarno
This patch series fix some bugs in SH4 MMU emulation, and optimise it, so that it now runs at an acceptable speed.

[Qemu-devel] [PATCH 2/8] target-sh4: MMU: fix mem_idx computation

2010-02-06 Thread Aurelien Jarno
The mem_idx is wrongly computed. As written in target-sh4/cpu.h, mode 0 corresponds to kernel mode (SR_MD = 1), while mode 1 corresponds to user mode (SR_MD = 0). Signed-off-by: Aurelien Jarno --- target-sh4/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ta

[Qemu-devel] [PATCH 7/8] target-sh4: MMU: remove dead code

2010-02-06 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-sh4/helper.c | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 2d00dfa..9b3a259 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -261,24 +261,6 @@ static

[Qemu-devel] [PATCH] target-sh4: minor optimisations

2010-02-06 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-sh4/translate.c | 52 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 895b978..8f0a986 100644 --- a/target-sh4/translate.c +++ b/targe

[Qemu-devel] [PATCH] SH4/R2D: fix poweroff

2010-02-06 Thread Aurelien Jarno
The write the the PA_POWOFF register is currently ignored. Fix that by calling qemu_system_shutdown_request() when a poweroff is requested. Signed-off-by: Aurelien Jarno --- hw/r2d.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/r2d.c b/hw/r2d.c index e4c02f

Re: [Qemu-devel] MIPS(EL) broken on i386 Linux host?

2010-02-06 Thread Aurelien Jarno
On Thu, Feb 04, 2010 at 08:40:23AM +0100, Dirk Ullrich wrote: > Hi, > > I have a problem running a MIPS(EL) guest on a i386 linux host > (actually, on Debian testing with a 2.6.32 kernel) when using the > current Git master code for QEMU (compiled at the same Debian host). > The MIPS(EL) guests I

Re: [Qemu-devel] [PATCH, RESEND] usb: increase buffer for USB control requests

2010-02-06 Thread Aurelien Jarno
On Sun, Jan 24, 2010 at 05:34:52PM +0100, Christian Krause wrote: > Resend. The patch was already sent to the list on 2009-12-11. It would > be great if it could be reviewed and applied. Thank you very much > in advance. > > The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large > usb contro

Re: [Qemu-devel] [PATCH] PPC: Add wrapper for target long DCR operations

2010-02-06 Thread Aurelien Jarno
On Thu, Jan 14, 2010 at 06:04:25PM +0100, Alexander Graf wrote: > > On 14.01.2010, at 18:02, Aurelien Jarno wrote: > > > On Thu, Jan 14, 2010 at 04:19:31PM +0100, Alexander Graf wrote: > >> > >> On 14.01.2010, at 16:13, Aurelien Jarno wrote: > >> > >>> On Fri, Jan 01, 2010 at 04:41:06PM +0100,

Re: [Qemu-devel] [PATCH 0/6] tcg conditional set, round 5

2010-02-06 Thread Aurelien Jarno
On Thu, Jan 07, 2010 at 10:46:55AM -0800, Richard Henderson wrote: > Changes since round 4: > > * Document double-word support opcodes in a new section of the README, >as requested by Aurelien. > > * Shorten the branch-to-next in the EQ case of i386 brcond2, as >pointed out by Laurent.

Re: [Qemu-devel] [PATCH 4/6] tcg-i386: Implement small forward branches.

2010-02-06 Thread Aurelien Jarno
On Thu, Jan 07, 2010 at 10:46:59AM -0800, Richard Henderson wrote: > There are places, like brcond2, where we know that the destination > of a forward branch will be within 127 bytes. > > Add the R_386_PC8 relocation type to support this. Add a flag to > tcg_out_jxx and tcg_out_brcond* to enable

[Qemu-devel] [PATCH] configure: Add --enable-docs and --disable-docs to --help

2010-02-06 Thread Dirk Ullrich
This patch adds the documentation-related options "--enable-docs" and "--disable-docs" to the help message of "configure". Signed-off-by: Dirk Ullrich --- configure |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 42ef628..eac2a15 100755 --- a