Revision: 19461
Author:   [email protected]
Date:     Tue Feb 18 17:10:04 2014 UTC
Log:      A64: Let the Simulator trap BLR XZR instructions.

This instruction is used as a guard for the constant pool.

[email protected]

Review URL: https://codereview.chromium.org/170673003
http://code.google.com/p/v8/source/detail?r=19461

Modified:
 /branches/bleeding_edge/src/a64/simulator-a64.cc

=======================================
--- /branches/bleeding_edge/src/a64/simulator-a64.cc Mon Feb 17 15:20:54 2014 UTC +++ /branches/bleeding_edge/src/a64/simulator-a64.cc Tue Feb 18 17:10:04 2014 UTC
@@ -986,6 +986,11 @@
   switch (instr->Mask(UnconditionalBranchToRegisterMask)) {
     case BLR: {
       set_lr(instr->NextInstruction());
+      if (instr->Rn() == 31) {
+ // BLR XZR is used as a guard for the constant pool. We should never hit
+        // this, but if we do trap to allow debugging.
+        Debug();
+      }
       // Fall through.
     }
     case BR:

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to