target/ppc: msgsnd and msgclr instructions need hypervisor privilege
authorCédric Le Goater <clg@kaod.org>
Tue, 16 Jan 2018 07:41:56 +0000 (08:41 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 20 Jan 2018 06:15:05 +0000 (17:15 +1100)
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c

index 0ef21cce33653fa53845ebd318a328c5f56b8018..396f422cf4077220a770768f673d463ef50dd3c1 100644 (file)
@@ -6174,7 +6174,7 @@ static void gen_msgclr(DisasContext *ctx)
 #if defined(CONFIG_USER_ONLY)
     GEN_PRIV;
 #else
-    CHK_SV;
+    CHK_HV;
     gen_helper_msgclr(cpu_env, cpu_gpr[rB(ctx->opcode)]);
 #endif /* defined(CONFIG_USER_ONLY) */
 }
@@ -6184,7 +6184,7 @@ static void gen_msgsnd(DisasContext *ctx)
 #if defined(CONFIG_USER_ONLY)
     GEN_PRIV;
 #else
-    CHK_SV;
+    CHK_HV;
     gen_helper_msgsnd(cpu_gpr[rB(ctx->opcode)]);
 #endif /* defined(CONFIG_USER_ONLY) */
 }