qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] target-mips: add ERETNC instruction and Config5


From: Leon Alrae
Subject: Re: [Qemu-devel] [PATCH] target-mips: add ERETNC instruction and Config5.LLB bit
Date: Fri, 5 Jun 2015 20:54:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0

On 05/06/15 10:42, Aurelien Jarno wrote:
> On 2015-06-04 17:00, Leon Alrae wrote:
>> ERETNC is identical to ERET except that an ERETNC will not clear the LLbit
>> that is set by execution of an LL instruction, and thus when placed between
>> an LL and SC sequence, will never cause the SC to fail.
>>
>> Presence of ERETNC is denoted by the Config5.LLB.
>>
>> Signed-off-by: Leon Alrae <address@hidden>
>> ---
>>  disas/mips.c                 |  1 +
>>  target-mips/cpu.h            |  1 +
>>  target-mips/helper.h         |  1 +
>>  target-mips/op_helper.c      | 12 +++++++++++-
>>  target-mips/translate.c      | 20 +++++++++++++++-----
>>  target-mips/translate_init.c |  4 +++-
>>  6 files changed, 32 insertions(+), 7 deletions(-)
> 
> Reviewed-by: Aurelien Jarno <address@hidden>

Thanks for your review!

> As a side note, I have seen that you have added a check for MIPS2 to the
> ERET instruction. This is correct, but given in practice we don't
> emulate any MIPS1 CPU, I do wonder if it's not the time to make MIPS2
> the basic instruction set and remove all MIPS2 checks.

Yes, in current codebase the MIPS2 checks don't seem to have much value
and the removal makes sense. On the other hand I'm wondering if there
are QEMU users who maintain artificial MIPS1 CPU templates locally to
test if their compiler doesn't emit any non-MIPS1 instructions.

Leon



reply via email to

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