mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
x86: avoid AREG0 for condition code helpers
Add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
d3eb5eaeb5
commit
f0967a1add
10 changed files with 179 additions and 169 deletions
|
@ -2294,7 +2294,7 @@ target_ulong helper_lsl(target_ulong selector1)
|
|||
int rpl, dpl, cpl, type;
|
||||
|
||||
selector = selector1 & 0xffff;
|
||||
eflags = helper_cc_compute_all(CC_OP);
|
||||
eflags = cpu_cc_compute_all(env, CC_OP);
|
||||
if ((selector & 0xfffc) == 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
@ -2341,7 +2341,7 @@ target_ulong helper_lar(target_ulong selector1)
|
|||
int rpl, dpl, cpl, type;
|
||||
|
||||
selector = selector1 & 0xffff;
|
||||
eflags = helper_cc_compute_all(CC_OP);
|
||||
eflags = cpu_cc_compute_all(env, CC_OP);
|
||||
if ((selector & 0xfffc) == 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
@ -2390,7 +2390,7 @@ void helper_verr(target_ulong selector1)
|
|||
int rpl, dpl, cpl;
|
||||
|
||||
selector = selector1 & 0xffff;
|
||||
eflags = helper_cc_compute_all(CC_OP);
|
||||
eflags = cpu_cc_compute_all(env, CC_OP);
|
||||
if ((selector & 0xfffc) == 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
@ -2428,7 +2428,7 @@ void helper_verw(target_ulong selector1)
|
|||
int rpl, dpl, cpl;
|
||||
|
||||
selector = selector1 & 0xffff;
|
||||
eflags = helper_cc_compute_all(CC_OP);
|
||||
eflags = cpu_cc_compute_all(env, CC_OP);
|
||||
if ((selector & 0xfffc) == 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue