]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Add a marker to end of the region zeroed on reset
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 24 Apr 2015 18:49:15 +0000 (15:49 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 27 Sep 2016 19:17:17 +0000 (16:17 -0300)
commit5e992a8e337e710ea2d02f35668ac55a80e15f99
treee644d74361c1e9699479d4d240f114eb158f0aa6
parent0456441b5eb6694a561ad5bb8dad52483e6a08d0
target-i386: Add a marker to end of the region zeroed on reset

Instead of using cpuid_level, use an empty struct as a marker
(like we already did with {start,end}_init_save). This will avoid
accidentaly resetting the wrong fields if we change the field
ordering on CPUX86State.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c
target-i386/cpu.h