From: Connor Abbott Date: Tue, 27 Jun 2023 14:22:01 +0000 (+0200) Subject: afuc: Fix writing $00 X-Git-Tag: upstream/23.3.3~4929 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fd00074475adff87a5f9c25ed739417d9c5e62c;p=platform%2Fupstream%2Fmesa.git afuc: Fix writing $00 This is valid and should do nothing. Don't make the PC overlap $00 in the reg file, so that we can print out "writes" to $00 but they're still discarded. Part-of: --- diff --git a/src/freedreno/afuc/emu.h b/src/freedreno/afuc/emu.h index 1ff84c7..111b44b 100644 --- a/src/freedreno/afuc/emu.h +++ b/src/freedreno/afuc/emu.h @@ -35,10 +35,8 @@ struct emu_gpr_regs { BITSET_DECLARE(written, EMU_NUM_GPR_REGS); - union { - uint32_t pc; - uint32_t val[EMU_NUM_GPR_REGS]; - }; + uint32_t pc; + uint32_t val[EMU_NUM_GPR_REGS]; }; #define EMU_NUM_CONTROL_REGS 0x1000