qemu-stable
[Top][All Lists]
Advanced

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

Re: [PATCH] target/arm: Fix 32-bit SMOPA


From: Richard Henderson
Subject: Re: [PATCH] target/arm: Fix 32-bit SMOPA
Date: Tue, 5 Mar 2024 05:51:28 -1000
User-agent: Mozilla Thunderbird

On 3/4/24 23:19, Philippe Mathieu-Daudé wrote:
+        uint32_t *za_row = &za[H4(tile_vslice_index(row))];
+        uint32_t n = zn[H4(row)];
+
+        for (col = 0; col < oprsz; ++col) {
+            uint8_t pb = pm[H1(col >> 1)] >> ((col & 1) * 4);
+            uint32_t *a = &za_row[col];

Shouldn't this be:

               uint32_t *a = &za_row[H4(col)];

to work on big endian hosts?

Oof.  Yes, the H4 adjustment belongs here, not on za_row above.


r~



reply via email to

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