qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 10/12] target-arm: A64: add support for conditio


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 10/12] target-arm: A64: add support for conditional branches
Date: Wed, 4 Dec 2013 00:22:17 +0000

On 4 December 2013 00:03, Richard Henderson <address@hidden> wrote:
> On 12/04/2013 10:51 AM, Peter Maydell wrote:
>> +    if (cond < 0x0e) {
>> +        /* genuinely conditional branches */
>> +        int label_nomatch = gen_new_label();
>> +        arm_gen_test_cc(cond ^ 1, label_nomatch);
>> +        gen_goto_tb(s, 0, addr);
>> +        gen_set_label(label_nomatch);
>> +        gen_goto_tb(s, 1, s->pc);
>
> Why swap the condition with "^ 1"?  You can just as easily swap the goto_tb.  
> I
> realize the A32 translator does it this way, but need we continue?

Good point; will change.

thanks
-- PMM



reply via email to

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