[pypy-svn] r78264 - pypy/branch/arm-backend/pypy/jit/backend/arm
david at codespeak.net
david at codespeak.net
Mon Oct 25 16:41:21 CEST 2010
Author: david
Date: Mon Oct 25 16:41:19 2010
New Revision: 78264
Modified:
pypy/branch/arm-backend/pypy/jit/backend/arm/codebuilder.py
Log:
(david, arigo) Add breakpoint instruction
Modified: pypy/branch/arm-backend/pypy/jit/backend/arm/codebuilder.py
==============================================================================
--- pypy/branch/arm-backend/pypy/jit/backend/arm/codebuilder.py (original)
+++ pypy/branch/arm-backend/pypy/jit/backend/arm/codebuilder.py Mon Oct 25 16:41:19 2010
@@ -37,6 +37,9 @@
else:
raise NotImplentedError
+ def BKPT(self, cond=cond.AL):
+ self.write32(cond << 28 | 0x1200070)
+
def _encode_reg_list(self, instr, regs):
for reg in regs:
instr |= 0x1 << reg
@@ -87,7 +90,7 @@
def __init__(self):
map_size = 1024
- data = alloc(1024)
+ data = alloc(map_size)
self._pos = 0
self._init(data, map_size)
More information about the Pypy-commit
mailing list