On 11/5/26 20:22, James Hilliard wrote:
BADDU and DMUL write their results to rd, not rt.  Route writes through
gen_store_gpr() so rd == $zero is handled consistently.

Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: James Hilliard <[email protected]>
---
Changes v1 -> v2:
   - Split the BADDU/DMUL destination handling fix out of the Octeon
     arithmetic instruction patch.  (suggested by Philippe Mathieu-Daudé)

Changes v2 -> v3:
   - Remove the rd == $zero fast paths and let gen_store_gpr() discard
     writes to $zero.  (suggested by Richard Henderson)
---
  target/mips/tcg/octeon_translate.c | 16 ++++------------
  1 file changed, 4 insertions(+), 12 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to