aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/cpu.c
diff options
context:
space:
mode:
authorMatheus Ferst <matheus.ferst@eldorado.org.br>2022-10-11 17:48:26 -0300
committerDaniel Henrique Barboza <danielhb413@gmail.com>2022-10-28 13:15:22 -0300
commit6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0 (patch)
tree0d1a2ce0036f8c824a34ad5d8fae7b5c88ecce6a /target/ppc/cpu.c
parent022b7128535d0ec963f724008a5f8b6a842d92ae (diff)
downloadqemu-6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0.zip
qemu-6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0.tar.gz
qemu-6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0.tar.bz2
target/ppc: remove ppc_store_lpcr from CONFIG_USER_ONLY builds
Writes to LPCR are hypervisor privileged. Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Message-Id: <20221011204829.1641124-27-matheus.ferst@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'target/ppc/cpu.c')
-rw-r--r--target/ppc/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c
index 0ebac04..e95b4c5 100644
--- a/target/ppc/cpu.c
+++ b/target/ppc/cpu.c
@@ -73,6 +73,7 @@ void ppc_store_msr(CPUPPCState *env, target_ulong value)
hreg_store_msr(env, value, 0);
}
+#if !defined(CONFIG_USER_ONLY)
void ppc_store_lpcr(PowerPCCPU *cpu, target_ulong val)
{
PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
@@ -82,6 +83,7 @@ void ppc_store_lpcr(PowerPCCPU *cpu, target_ulong val)
/* The gtse bit affects hflags */
hreg_compute_hflags(env);
}
+#endif
static inline void fpscr_set_rounding_mode(CPUPPCState *env)
{