Message ID | 53271F18.7080201@de.ibm.com |
---|---|
State | New |
Headers | show |
Am 17.03.2014 17:13, schrieb Christian Borntraeger: > I need the following to not crash on migration post load: > > tlb_flush wants an CPUState. This was unnoticed by gcc because env_ptr > is a void pointer. > > Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Thanks, applied to qom-cpu with reworked commit message: https://github.com/afaerber/qemu-cpu/commits/qom-cpu Andreas
--- a/exec.c +++ b/exec.c @@ -420,7 +420,7 @@ static int cpu_common_post_load(void *opaque, int version_id) /* 0x01 was CPU_INTERRUPT_EXIT. This line can be removed when the version_id is increased. */ cpu->interrupt_request &= ~0x01; - tlb_flush(cpu->env_ptr, 1); + tlb_flush(cpu, 1); return 0; }
I need the following to not crash on migration post load: tlb_flush wants an CPUState. This was unnoticed by gcc because env_ptr is a void pointer. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)