@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-user-
Linux and We use the code of conditional trap instructions to emit
signals other than simple SIGTRAP. Currently, code 6 (overflow),
7 (div by zero) are supported. It means that if code 7 is used with
a conditional trap instruction, a SIGFPE instead of SIGTRAP will emit.
But when `gen_trap` we did
Maciej W. Rozycki 于2024年6月21日周五 08:41写道:
>
> On Fri, 21 Jun 2024, YunQiang Su wrote:
>
> > Linux and We use the code of conditional trap instructions to emit
> > signals other than simple SIGTRAP. Currently, code 6 (overflow),
> > 7 (div by zero) are supported. It m
Richard Henderson 于2024年6月21日周五 12:21写道:
>
> On 6/20/24 16:46, YunQiang Su wrote:
> > @@ -4553,7 +4559,7 @@ static void gen_trap(DisasContext *ctx, uint32_t opc,
> > if (ctx->hflags != ctx->saved_hflags) {
> > tcg_ge
gt; 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
32eb-> x86_64 -> i386
n32eb-> x86_64 -> amd64
32eb -> i386 -> i386
32eb -> x86_64 -> i386
32eb -> x86_64 -> a
Signed-off-by: YunQiang Su
On Tue, Jan 9, 2018 at 11:39 PM, Richard Henderson
wrote:
> On 01/08/2018 03:34 PM, Laurent Vivier wrote:
>> Peter, Riku,
>>
>> what do you think of the idea of using the ELF header to select the CPU
>> to emulate?
>
> I thi
On Sat, Jan 13, 2018 at 10:48 PM, Laurent Vivier wrote:
> From: YunQiang Su
>
> 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()]
> Signed-off-by: Laurent Vivier
> ---
>
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
---
linux-user
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
linux-user/elfload
: YunQiang Su
---
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/main.c
@@ -4323,7 +4323,7
l < 0) {
+return 0;
+}
works?
On Sun, Dec 24, 2017 at 12:34 AM, Laurent Vivier 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 encoding for some.
>>
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 pl
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"
https://bugs.launchpad.net/qemu/+bug/1818483/+attachment/5252516/+fil
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 notificat
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
16 matches
Mail list logo