Merge some Nacl/ARM changes from https://github.com/igotti-google/mono/commit/65d8d68...
[mono.git] / mono / arch / arm / arm-codegen.h
index d94653e4402926313bfd24305dcfe7470e7d6508..5a3dba02d4c70d30586a8787830b781c7d71eacf 100644 (file)
@@ -1031,7 +1031,11 @@ typedef struct {
        ARM_RORS_REG_COND(p, rd, rm, rs, ARMCOND_AL)
 #define ARM_RORS_REG_REG(p, rd, rm, rs) ARM_RORS_REG(p, rd, rm, rs)
 
+#ifdef __native_client_codegen__
+#define ARM_DBRK(p) ARM_EMIT(p, 0xE7FEDEF0)
+#else
 #define ARM_DBRK(p) ARM_EMIT(p, 0xE6000010)
+#endif
 #define ARM_IASM_DBRK() ARM_IASM_EMIT(0xE6000010)
 
 #define ARM_INC(p, reg) ARM_ADD_REG_IMM8(p, reg, reg, 1)