qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 17/21] Hexagon (target/hexagon) Move new_value to DisasContex


From: Richard Henderson
Subject: Re: [PATCH 17/21] Hexagon (target/hexagon) Move new_value to DisasContext
Date: Thu, 27 Apr 2023 12:01:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 4/26/23 01:42, Taylor Simpson wrote:
+    for (i = 0; i < TOTAL_PER_THREAD_REGS; i++) {
+        ctx->new_value[i] = NULL;
+    }

Perhaps

  memset(ctx->new_value, 0, sizeof(ctx->new_value));

Though probably the compiler would make that transformation.
Or perhaps

-    DisasContext ctx;
+    DisasContext ctx = { 0 };

in gen_intermediate_code, and eliminate other 0 init in gen_start_packet?

But it's not wrong as-is, so,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

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