Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 arch/x86/insn-selector_32.brg |    1 -
 jit/emulate.c                 |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/x86/insn-selector_32.brg b/arch/x86/insn-selector_32.brg
index 3d64ada..b3995ff 100644
--- a/arch/x86/insn-selector_32.brg
+++ b/arch/x86/insn-selector_32.brg
@@ -1429,7 +1429,6 @@ emulate_op_64(struct _MBState *state, struct basic_block 
*s,
 
        select_insn(s, tree, rel_insn(INSN_CALL_REL, (unsigned long) func));
        method_args_cleanup(s, tree, 4);
-       select_exception_test(s, tree);
 
        select_insn(s, tree, reg_reg_insn(INSN_MOV_REG_REG, eax, state->reg1));
        if (edx)
diff --git a/jit/emulate.c b/jit/emulate.c
index 2b89785..af9f999 100644
--- a/jit/emulate.c
+++ b/jit/emulate.c
@@ -44,6 +44,7 @@ long long emulate_ldiv(long long value1, long long value2)
        if (value2 == 0) {
                signal_new_exception(
                        "java/lang/ArithmeticException", "division by zero");
+               throw_from_jato_func(2 * sizeof(long long));
                return 0;
        }
 
@@ -55,6 +56,7 @@ long long emulate_lrem(long long value1, long long value2)
        if (value2 == 0) {
                signal_new_exception(
                        "java/lang/ArithmeticException", "division by zero");
+               throw_from_jato_func(2 * sizeof(long long));
                return 0;
        }
 
-- 
1.6.0.6


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to