qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 15/23] target/mips: Extract break code into env->error_cod


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v3 15/23] target/mips: Extract break code into env->error_code
Date: Wed, 3 Nov 2021 18:01:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

On 11/3/21 16:38, Richard Henderson wrote:
> On 11/3/21 11:11 AM, Philippe Mathieu-Daudé wrote:
>>> +            /*
>>> +             * As described in the original Linux kernel code, the
>>> below
>>> +             * checks on 'code' are to work around an old assembly bug.
>>> +             */
>>> +            code = env->error_code;
>>> +            if (code >= (1 << 10)) {
>>> +                code >>= 10;
>>
>> Shouldn't we also move this to the translation (not in R6_BREAK16)?
> 
> No, because it's a kernel thing, not a cpu thing:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/kernel/traps.c#n1056

Oh indeed, I see.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> PS: Just above, it looks like the kernel would need to grow support for
> R6_BREAK.  At present it only handles mips16e and micromips.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]