Index: src/mips/assembler-mips.h |
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h |
index 4c7ce389801b4ff03ce0c6f2ee812c4ab3b3eb54..9040a43692168ff62ed989deb40816a98c9f61d5 100644 |
--- a/src/mips/assembler-mips.h |
+++ b/src/mips/assembler-mips.h |
@@ -528,7 +528,11 @@ class Assembler : public AssemblerBase { |
// Distance between the instruction referring to the address of the call |
// target and the return address. |
+#ifdef _MIPS_ARCH_MIPS32R6 |
+ static const int kCallTargetAddressOffset = 3 * kInstrSize; |
+#else |
static const int kCallTargetAddressOffset = 4 * kInstrSize; |
+#endif |
// Distance between start of patched debug break slot and the emitted address |
// to jump to. |
@@ -538,7 +542,11 @@ class Assembler : public AssemblerBase { |
// register. |
static const int kPcLoadDelta = 4; |
+#ifdef _MIPS_ARCH_MIPS32R6 |
+ static const int kDebugBreakSlotInstructions = 3; |
+#else |
static const int kDebugBreakSlotInstructions = 4; |
+#endif |
static const int kDebugBreakSlotLength = |
kDebugBreakSlotInstructions * kInstrSize; |