[pypy-svn] r41145 - in pypy/dist/pypy: jit/codegen/ppc rpython
mwh at codespeak.net
mwh at codespeak.net
Fri Mar 23 10:40:15 CET 2007
Author: mwh
Date: Fri Mar 23 10:40:14 2007
New Revision: 41145
Modified:
pypy/dist/pypy/jit/codegen/ppc/rgenop.py
pypy/dist/pypy/rpython/extfuncregistry.py
Log:
don't import stuff from the ppc jit on every build.
thanks anto for the prod.
Modified: pypy/dist/pypy/jit/codegen/ppc/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/ppc/rgenop.py (original)
+++ pypy/dist/pypy/jit/codegen/ppc/rgenop.py Fri Mar 23 10:40:14 2007
@@ -4,6 +4,7 @@
from pypy.jit.codegen.model import ReplayBuilder, dummy_var
from pypy.rpython.lltypesystem import lltype, llmemory
from pypy.rpython.lltypesystem import lloperation
+from pypy.rpython.extfunc import register_external
from pypy.rlib.objectmodel import specialize, we_are_translated
from pypy.jit.codegen.conftest import option
from ctypes import POINTER, cast, c_void_p, c_int, CFUNCTYPE
@@ -34,6 +35,8 @@
cpath = py.magic.autopath().dirpath().join('_flush_icache.c')
_flush_icache = cpath._getpymodule()._flush_icache
_flush_icache(base, size)
+register_external(flush_icache, [int, int], None, "LL_flush_icache")
+
NSAVEDREGISTERS = 19
Modified: pypy/dist/pypy/rpython/extfuncregistry.py
==============================================================================
--- pypy/dist/pypy/rpython/extfuncregistry.py (original)
+++ pypy/dist/pypy/rpython/extfuncregistry.py Fri Mar 23 10:40:14 2007
@@ -50,11 +50,6 @@
llfakeimpl=llfake, oofakeimpl=oofake,
annotation_hook = hook)
-# ___________________________
-# bit of magic for the ppc jit
-from pypy.jit.codegen.ppc.rgenop import flush_icache
-register_external(flush_icache, [int, int], None, "LL_flush_icache")
-
# ___________________________
# os.path functions
More information about the Pypy-commit
mailing list