target-mips: check CP0 enabled for CACHE instruction also in R6

Backports commit 40d48212f934d4deab40ffe84a0f9c4c553d4742 from qemu
This commit is contained in:
Leon Alrae 2018-02-22 10:47:52 -05:00 committed by Lioncash
parent 70306ec586
commit 0c5ebbd096
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -17322,6 +17322,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: