diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-04-29 14:11:56 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-08-14 19:01:25 +0000 |
commit | 7923057bae23e44f75a52ce3735c3bd5d55872c1 (patch) | |
tree | df72247930e53b1ca3cf37f1f062d1cf30a64002 /target-i386/shift_helper_template.h | |
parent | f0967a1add1e01df75607b9de5ef6cf83bfa0f82 (diff) |
x86: avoid AREG0 for integer helpers
Add an explicit CPUX86State parameter instead of relying on AREG0.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-i386/shift_helper_template.h')
-rw-r--r-- | target-i386/shift_helper_template.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target-i386/shift_helper_template.h b/target-i386/shift_helper_template.h index dacfdd22d4..dda0da30cf 100644 --- a/target-i386/shift_helper_template.h +++ b/target-i386/shift_helper_template.h @@ -41,7 +41,8 @@ #error unhandled operand size #endif -target_ulong glue(helper_rcl, SUFFIX)(target_ulong t0, target_ulong t1) +target_ulong glue(helper_rcl, SUFFIX)(CPUX86State *env, target_ulong t0, + target_ulong t1) { int count, eflags; target_ulong src; @@ -71,7 +72,8 @@ target_ulong glue(helper_rcl, SUFFIX)(target_ulong t0, target_ulong t1) return t0; } -target_ulong glue(helper_rcr, SUFFIX)(target_ulong t0, target_ulong t1) +target_ulong glue(helper_rcr, SUFFIX)(CPUX86State *env, target_ulong t0, + target_ulong t1) { int count, eflags; target_ulong src; |