diff options
| author | Kevin O'Connor | 2014-04-29 22:38:59 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-05-13 13:12:40 +0200 |
| commit | 7848c8d19f8556666df25044bbd5d8b29439c368 (patch) | |
| tree | 250b284ca81228ae073c19938cfefde8a008a26c /include | |
| parent | target-i386: set eflags prior to calling cpu_x86_load_seg_cache() in seg_help... (diff) | |
| download | qemu-7848c8d19f8556666df25044bbd5d8b29439c368.tar.gz qemu-7848c8d19f8556666df25044bbd5d8b29439c368.tar.xz qemu-7848c8d19f8556666df25044bbd5d8b29439c368.zip | |
target-i386: the x86 CPL is stored in CS.selector - auto update hflags accordingly.
Instead of manually calling cpu_x86_set_cpl() when the CPL changes,
check for CPL changes on calls to cpu_x86_load_seg_cache(R_CS). Every
location that called cpu_x86_set_cpl() also called
cpu_x86_load_seg_cache(R_CS), so cpu_x86_set_cpl() is no longer
required.
This fixes the SMM handler code as it was not setting/restoring the
CPL level manually.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
