On 11/5/26 20:22, James Hilliard wrote:
ZCBT has the same user-mode memory effect as ZCB for QEMU's purposes.

Reuse the ZCB translator so both cache-block-zero forms clear the
containing 128-byte line.

Acked-by: Richard Henderson <[email protected]>
Signed-off-by: James Hilliard <[email protected]>
---
Changes v2 -> v3:
   - Split ZCBT out of the combined Octeon arithmetic and memory
     instruction patch.  (requested by Richard Henderson)

Changes v4 -> v5:
   - Fold ZCBT into the ZCB decodetree entry with a selector comment
     instead of adding a separate translator thunk.  (suggested by Richard
     Henderson)
---
  target/mips/tcg/octeon.decode | 1 +
  1 file changed, 1 insertion(+)

diff --git a/target/mips/tcg/octeon.decode b/target/mips/tcg/octeon.decode
index d8a1bfce77..5377f7b3ef 100644
--- a/target/mips/tcg/octeon.decode
+++ b/target/mips/tcg/octeon.decode
@@ -51,6 +51,7 @@ SAAD         011100 ..... ..... 00000 00000 011001 @saa
&zcb base
  ZCB          011100 base:5 00000 00000 11100 011111 &zcb
+ZCB          011100 base:5 00000 00000 11101 011111 &zcb  # ZCBT

What about using '-' instead?

ZCB          011100 base:5 00000 00000 1110- 011111 &zcb

Although if we were using decodetree for the disassembler
output then ZCBT would be preferred.

&lx base index rd
  @lx          ...... base:5 index:5 rd:5 ...... ..... &lx



Reply via email to