aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-18 18:10:42 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-18 18:10:42 +0000
commit3b89f26c11e4060a203518d8bc203b6fb0b6cf96 (patch)
tree1d6356549f5aa54d550a6de60cfb32b4f0a06ac7 /target-sparc/op.c
parent2483386a6e77b7e480e8019bd1250694f146bdb1 (diff)
Convert udiv and sdiv ops to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4088 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op.c')
-rw-r--r--target-sparc/op.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c
index e9e735a9ea..3bd8d484ed 100644
--- a/target-sparc/op.c
+++ b/target-sparc/op.c
@@ -169,54 +169,6 @@
#include "fop_template.h"
#endif
-#define FLAG_SET(x) ((env->psr&x)?1:0)
-
-void OPPROTO op_udiv_T1_T0(void)
-{
- uint64_t x0;
- uint32_t x1;
-
- x0 = T0 | ((uint64_t) (env->y) << 32);
- x1 = T1;
-
- if (x1 == 0) {
- raise_exception(TT_DIV_ZERO);
- }
-
- x0 = x0 / x1;
- if (x0 > 0xffffffff) {
- T0 = 0xffffffff;
- T1 = 1;
- } else {
- T0 = x0;
- T1 = 0;
- }
- FORCE_RET();
-}
-
-void OPPROTO op_sdiv_T1_T0(void)
-{
- int64_t x0;
- int32_t x1;
-
- x0 = T0 | ((int64_t) (env->y) << 32);
- x1 = T1;
-
- if (x1 == 0) {
- raise_exception(TT_DIV_ZERO);
- }
-
- x0 = x0 / x1;
- if ((int32_t) x0 != x0) {
- T0 = x0 < 0? 0x80000000: 0x7fffffff;
- T1 = 1;
- } else {
- T0 = x0;
- T1 = 0;
- }
- FORCE_RET();
-}
-
/* Load and store */
#define MEMSUFFIX _raw
#include "op_mem.h"