diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-04-29 12:45:34 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-08-14 19:01:25 +0000 |
commit | f0967a1add1e01df75607b9de5ef6cf83bfa0f82 (patch) | |
tree | b21da8d49a41d18123213fcd7a455f3849fa98d6 /target-i386/int_helper.c | |
parent | d3eb5eaeb56e48891bb98ab5f092f43e142e3f28 (diff) | |
download | hqemu-f0967a1add1e01df75607b9de5ef6cf83bfa0f82.zip hqemu-f0967a1add1e01df75607b9de5ef6cf83bfa0f82.tar.gz |
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>
Diffstat (limited to 'target-i386/int_helper.c')
-rw-r--r-- | target-i386/int_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target-i386/int_helper.c b/target-i386/int_helper.c index e1f66f5..1a13e4e 100644 --- a/target-i386/int_helper.c +++ b/target-i386/int_helper.c @@ -185,7 +185,7 @@ void helper_aaa(void) int al, ah, af; int eflags; - eflags = helper_cc_compute_all(CC_OP); + eflags = cpu_cc_compute_all(env, CC_OP); af = eflags & CC_A; al = EAX & 0xff; ah = (EAX >> 8) & 0xff; @@ -209,7 +209,7 @@ void helper_aas(void) int al, ah, af; int eflags; - eflags = helper_cc_compute_all(CC_OP); + eflags = cpu_cc_compute_all(env, CC_OP); af = eflags & CC_A; al = EAX & 0xff; ah = (EAX >> 8) & 0xff; @@ -232,7 +232,7 @@ void helper_daa(void) int old_al, al, af, cf; int eflags; - eflags = helper_cc_compute_all(CC_OP); + eflags = cpu_cc_compute_all(env, CC_OP); cf = eflags & CC_C; af = eflags & CC_A; old_al = al = EAX & 0xff; @@ -259,7 +259,7 @@ void helper_das(void) int al, al1, af, cf; int eflags; - eflags = helper_cc_compute_all(CC_OP); + eflags = cpu_cc_compute_all(env, CC_OP); cf = eflags & CC_C; af = eflags & CC_A; al = EAX & 0xff; |