]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target-mips: check CP0 enabled for CACHE instruction also in R6
authorLeon Alrae <leon.alrae@imgtec.com>
Fri, 25 Mar 2016 13:49:35 +0000 (13:49 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 30 Mar 2016 08:14:00 +0000 (09:14 +0100)
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/translate.c

index a5b8805f7772f2a69eeec6b717cfb92569e87697..65f2caff3efacdc08bdb2e73007d4552f52ec53b 100644 (file)
@@ -17194,6 +17194,7 @@ static void decode_opc_special3_r6(CPUMIPSState *env, DisasContext *ctx)
         /* Treat as NOP. */
         break;
     case R6_OPC_CACHE:
+        check_cp0_enabled(ctx);
         /* Treat as NOP. */
         break;
     case R6_OPC_SC: