From: Cédric Le Goater Date: Tue, 16 Jan 2018 07:41:56 +0000 (+0100) Subject: target/ppc: msgsnd and msgclr instructions need hypervisor privilege X-Git-Tag: qemu-xen-4.12.0-rc1~506^2~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ebca5e6d5ec2f1cf6c886a114e161261af28dc0a;p=qemu-xen.git target/ppc: msgsnd and msgclr instructions need hypervisor privilege Signed-off-by: Cédric Le Goater Signed-off-by: David Gibson --- diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 0ef21cce33..396f422cf4 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -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) */ }