diff options
author | Richard Henderson <rth@twiddle.net> | 2013-01-23 18:06:18 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-02-18 15:52:32 -0800 |
commit | 5f1f4b177152286102475f9bffc359002a14d9c9 (patch) | |
tree | 7b26523cae4ac0a78ca6b9bd1474bacc8a4fed7c /target-i386/int_helper.c | |
parent | 02ea1e6b4fab803551bbea47eea29bc7709ba008 (diff) |
target-i386: Implement MULX
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386/int_helper.c')
-rw-r--r-- | target-i386/int_helper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-i386/int_helper.c b/target-i386/int_helper.c index 84b812dcca..4ec8cb78d2 100644 --- a/target-i386/int_helper.c +++ b/target-i386/int_helper.c @@ -385,6 +385,13 @@ void helper_mulq_EAX_T0(CPUX86State *env, target_ulong t0) CC_SRC = r1; } +target_ulong helper_umulh(target_ulong t0, target_ulong t1) +{ + uint64_t h, l; + mulu64(&l, &h, t0, t1); + return h; +} + void helper_imulq_EAX_T0(CPUX86State *env, target_ulong t0) { uint64_t r0, r1; |