[Arm64] Fix ResolveStub tokenHash lookup
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>
Sat, 22 Jul 2017 01:44:31 +0000 (21:44 -0400)
committerSteve MacLean, Qualcomm Datacenter Technologies Inc <sdmaclea@qti.qualcomm.com>
Mon, 24 Jul 2017 14:29:13 +0000 (10:29 -0400)
src/vm/arm64/virtualcallstubcpu.hpp

index b7c5209..68c9125 100644 (file)
@@ -217,8 +217,8 @@ struct ResolveHolder
          //w13- this._hashedToken
          //ldr w13, [x10 + DATA_OFFSET(_hashedToken)]
          offset = DATA_OFFSET(_hashedToken);
-         _ASSERTE(offset >=0 && offset%8 == 0);
-         _stub._resolveEntryPoint[n++] = 0xB940014D | offset<<7;
+         _ASSERTE(offset >=0 && offset%4 == 0);
+         _stub._resolveEntryPoint[n++] = 0xB940014D | offset<<8;
 
          //eor x9,x9,x13
          _stub._resolveEntryPoint[n++] = 0xCA0D0129;