aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2021-06-27 18:27:13 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2021-07-09 10:38:19 +1000
commit5e994fc019862e77ee8fd2c8808c5fdcf2d249de (patch)
tree6210032a5727ad83d0995ed067059a3b8aad5404
parenta8eda5ed3db61d7de6fda4a5216ae126a6bb5eb6 (diff)
downloadqemu-5e994fc019862e77ee8fd2c8808c5fdcf2d249de.zip
qemu-5e994fc019862e77ee8fd2c8808c5fdcf2d249de.tar.gz
qemu-5e994fc019862e77ee8fd2c8808c5fdcf2d249de.tar.bz2
target/ppc: Allow virtual hypervisor on CPU without HV
Change the assert in ppc_store_sdr1() to allow vhyp to be set on CPUs without HV bit. This allows using the vhyp interface for firmware emulation on pegasos2. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-Id: <21c7745aabbb68fcc50bb2ffaf16b939ba21261c.1624811233.git.balaton@eik.bme.hu> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--target/ppc/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c
index 19d67b5..a292998 100644
--- a/target/ppc/cpu.c
+++ b/target/ppc/cpu.c
@@ -72,7 +72,7 @@ void ppc_store_sdr1(CPUPPCState *env, target_ulong value)
{
PowerPCCPU *cpu = env_archcpu(env);
qemu_log_mask(CPU_LOG_MMU, "%s: " TARGET_FMT_lx "\n", __func__, value);
- assert(!cpu->vhyp);
+ assert(!cpu->env.has_hv_mode || !cpu->vhyp);
#if defined(TARGET_PPC64)
if (mmu_is_64bit(env->mmu_model)) {
target_ulong sdr_mask = SDR_64_HTABORG | SDR_64_HTABSIZE;