From 6fd00074475adff87a5f9c25ed739417d9c5e62c Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 27 Jun 2023 16:22:01 +0200 Subject: [PATCH] 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: --- src/freedreno/afuc/emu.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.7.4