Re: [Qemu-devel] [PATCH v4 00/10] tcg mips64 and mips r6 improvements

2016-12-01 Thread YunQiang Su
ay with these paris. > >> However, Debian amd64 with qemu-system-x86_64 fails to boot kernel. >> A 'rep movsq' instruction is wrongly emulated. >> I will fix this bug within one or two days. > > Excellent, thanks. > >> But even Su cannot provide an R6 machine. > > Ok, I guess we will just have to drop the R6 patches for now, until imgtec is > able to provide feedback on them. > > > r~ -- YunQiang Su

[Qemu-devel] [PATCH v5 00/10] tcg mips64 and mips r6 improvements

2016-12-01 Thread YunQiang Su
32eb-> x86_64 -> i386 n32eb-> x86_64 -> amd64 32eb -> i386 -> i386 32eb -> x86_64 -> i386 32eb -> x86_64 -> a

[Qemu-devel] [PATCH] linux-user: Fix support MIPS o32 FP64 mode

2017-12-19 Thread YunQiang Su
MIPS o32 has a mode called FP64, who has 32 64Bit FPU registers. To use it: add PR_GET_FP_MODE and PR_SET_FP_MODE options for prctl set CP0St_FR when binary as EF_MIPS_FP64 https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking Signed-off-by: YunQiang Su <s...@debian.

[Qemu-devel] [PATCH] linux-user: MIPS set cpu to r6 CPU if binary is R6

2017-12-19 Thread YunQiang Su
MIPS r6 is not just simple super set for pre-R6, it also drops some instruction and even changes encoding for some. But r6 binary has the same header for binfmt_misc. So here we need to detect the version of binaries and set cpu_model for it. --- include/elf.h| 4

[Qemu-devel] [PATCH] linux-user: set P5600 as default for MIPS o32

2017-12-19 Thread YunQiang Su
-by: YunQiang Su <s...@debian.org> --- linux-user/main.c| 2 +- target/mips/translate_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index f2b02a99a2..7c0bffeff6 100644 --- a/linux-user/main.c +++ b/linux-user/

Re: [Qemu-devel] [PATCH] linux-user: MIPS set cpu to r6 CPU if binary is R6

2017-12-24 Thread YunQiang Su
l < 0) { +return 0; +} works? On Sun, Dec 24, 2017 at 12:34 AM, Laurent Vivier <laur...@vivier.eu> wrote: > Le 19/12/2017 à 12:50, YunQiang Su a écrit : >> MIPS r6 is not just simple super set for pre-R6, >> it also drops some instruction and even changes encod

Re: [Qemu-devel] [PATCH 3/3] linux-user: MIPS set cpu to r6 CPU if binary is R6

2018-01-16 Thread YunQiang Su
On Sat, Jan 13, 2018 at 10:48 PM, Laurent Vivier <laur...@vivier.eu> wrote: > From: YunQiang Su <s...@debian.org> > > So here we need to detect the version of binaries and set > cpu_model for it. > > [lv: original patch modified to move code into get_cpu_model()] &

Re: [Qemu-devel] [PATCH] linux-user: MIPS set cpu to r6 CPU if binary is R6

2018-01-24 Thread Yunqiang Su
Signed-off-by: YunQiang Su <s...@debian.org> On Tue, Jan 9, 2018 at 11:39 PM, Richard Henderson <richard.hender...@linaro.org> wrote: > On 01/08/2018 03:34 PM, Laurent Vivier wrote: >> Peter, Riku, >> >> what do you think of the idea of using the ELF heade

[Qemu-devel] [Bug 1818483] Re: qemu user mode does not support binfmt_misc config with flags include "P"

2019-04-03 Thread YunQiang Su
This patch is for linux kernel. It will set the 3rd bit of AT_FLAGS, if P is set for binfmt_misc. The major concern is that AT_FLAGS is never used, then, should we use it here? ** Patch added: "binfmt_preserve_argv0.patch"

[Qemu-devel] [Bug 1818483] Re: qemu user mode does not support binfmt_misc config with flags include "P"

2019-04-03 Thread YunQiang Su
This patch is for qemu itself. It test AT_FLAGS and determine whether it is start by binfmt_misc and whether P flag is used. ** Patch added: "preserve-argv0.patch" https://bugs.launchpad.net/qemu/+bug/1818483/+attachment/5252630/+files/preserve-argv0.patch -- You received this bug

[Qemu-devel] [Bug 1818483] Re: qemu user mode does not support binfmt_misc config with flags include "P"

2019-03-10 Thread YunQiang Su
@Peter Luyou and me are working on try to pass the info about whether P flag is enabled or not by enviroment var or auxval. While we have not found the right method to do it from binfmt_misc. In fact, currently qemu trys to process the O flag, and it cannot work at all. When you install

[Qemu-devel] [PATCH] binfmt_misc: pass info about P flag by AT_FLAGS

2019-04-16 Thread YunQiang Su
From: YunQiang Su Currently program invoked by binfmt_misc cannot be aware about whether P flag, aka preserve path is enabled. Some applications like qemu need to know since it has 2 use case: 1. call by hand, like: qemu-mipsel-static test.app OPTION so, qemu have to assume that P option

Re: [PATCH V13 2/9] meson.build: Re-enable KVM support for MIPS

2021-03-23 Thread YunQiang Su
Jiaxun Yang 于2021年3月24日周三 上午9:29写道: > > > > On Tue, Mar 23, 2021, at 9:56 PM, Philippe Mathieu-Daudé wrote: > > Hi Huacai, > > > > We are going to tag QEMU v6.0-rc0 today. > > > > I only have access to a 64-bit MIPS in little-endian to > > test KVM. > > > > Can you test the other configurations