summaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2015-06-15 17:57:06 +0200
committerAlexander Graf <agraf@suse.de>2015-06-17 12:40:50 +0200
commitcbed0ba78f04ce9e2e718431f64eb4b621288aca (patch)
treeed5f90fb4b76b315149ba846e3929c435ce9f3b8 /target-s390x
parentcc0d079d4582ee0ed97b5e3e3da4f6cb2b5bd67f (diff)
target-s390x: fix s390_cpu_initial_reset
The s390_cpu_initial_reset function zeroes a big part of the CPU state structure, including CPU_COMMON, and thus the QEMU TLB structure. As they should not be initialized with zeroes only, we need to call the tlb_flush to initialize it correctly. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c
index cc9cc379cd..ba7a887eea 100644
--- a/target-s390x/cpu.c
+++ b/target-s390x/cpu.c
@@ -131,6 +131,7 @@ static void s390_cpu_initial_reset(CPUState *s)
if (kvm_enabled()) {
kvm_s390_reset_vcpu(cpu);
}
+ tlb_flush(s, 1);
}
/* CPUClass:reset() */