[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: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 10/12] target-arm: A64: add support for conditional branches |
Date: |
Wed, 04 Dec 2013 13:03:13 +1300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
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?
Otherwise,
Reviewed-by: Richard Henderson <address@hidden>
r~
- [Qemu-devel] [PATCH 00/12] target-arm: A64 decoder, foundation plus branches, Peter Maydell, 2013/12/03
- [Qemu-devel] [PATCH 05/12] target-arm: A64: add stubs for a64 specific helpers, Peter Maydell, 2013/12/03
- [Qemu-devel] [PATCH 10/12] target-arm: A64: add support for conditional branches, Peter Maydell, 2013/12/03
- Re: [Qemu-devel] [PATCH 10/12] target-arm: A64: add support for conditional branches,
Richard Henderson <=
- [Qemu-devel] [PATCH 02/12] target-arm: A64: add set_pc cpu method, Peter Maydell, 2013/12/03
- [Qemu-devel] [PATCH 03/12] target-arm: A64: provide functions for accessing FPCR and FPSR, Peter Maydell, 2013/12/03
- [Qemu-devel] [PATCH 04/12] target-arm: Support fp registers in gdb stub, Peter Maydell, 2013/12/03
- [Qemu-devel] [PATCH 01/12] target-arm: Split A64 from A32/T32 gen_intermediate_code_internal(), Peter Maydell, 2013/12/03
- [Qemu-devel] [PATCH 11/12] target-arm: A64: add support for 'test and branch' imm, Peter Maydell, 2013/12/03