On 11/13/26 08:11, Philippe Mathieu-Daudé wrote:
CACHE and CACHEE share pseudo-code raising Reserved Instruction on
NMS cores without caches, but only CACHEE performed that check.
See MD01247 rev 01.01, "CACHE/CACHEE" (printed page 63).

Fixes: 8f1d9b6d6397 ("target/mips: Add emulation of nanoMIPS 32-bit LD/ST")
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
  target/mips/tcg/nanomips_translate.c.inc | 1 +
  1 file changed, 1 insertion(+)

diff --git a/target/mips/tcg/nanomips_translate.c.inc 
b/target/mips/tcg/nanomips_translate.c.inc
index c883b5514f1c..20e96f2ad9be 100644
--- a/target/mips/tcg/nanomips_translate.c.inc
+++ b/target/mips/tcg/nanomips_translate.c.inc
@@ -4131,6 +4131,7 @@ static int decode_nanomips_32_48_opc(CPUMIPSState *env, 
DisasContext *ctx)
                      }
                      break;
                  case NM_CACHE:
+                    check_nms_dl_il_sl_tl_l2c(ctx);
                      check_cp0_enabled(ctx);
                      if (ctx->hflags & MIPS_HFLAG_ITC_CACHE) {
                          gen_cache_operation(ctx, rt, rs, s);

Also missing check_eva.

Otherwise,
Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to