qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 11/13] target/i386: execute multiple REP/REPZ iterations with


From: Paolo Bonzini
Subject: Re: [PATCH 11/13] target/i386: execute multiple REP/REPZ iterations without leaving TB
Date: Sun, 15 Dec 2024 16:17:27 +0100



Il dom 15 dic 2024, 16:07 Richard Henderson <richard.henderson@linaro.org> ha scritto:
> @@ -1384,6 +1409,12 @@ static void do_gen_rep(DisasContext *s, MemOp ot,
>           gen_jcc_noeob(s, (JCC_Z << 1) | (nz ^ 1), done);
>       }
>   
> +    if (can_loop) {
> +        tcg_gen_subi_tl(cx_next, cpu_regs[R_ECX], 1);

Since we've just written back cx_next to ECX, this is the same as cx_next -= 1, yes?

Yeah, I wanted to make cx_next die at the assignment to ECX but it probably does not make a difference to generated code.

Paolo 


Anyway,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~


reply via email to

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