diff options
-rw-r--r-- | src/run.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run.cpp b/src/run.cpp index c3e2495..44a8319 100644 --- a/src/run.cpp +++ b/src/run.cpp @@ -373,7 +373,7 @@ static benchmark chase_pointers(int64 chains_per_thread, // memory loading per t std::vector<AsmJit::GPVar> heads(chains_per_thread); for (int i = 0; i < chains_per_thread; i++) { AsmJit::GPVar head = c.newGP(); - c.mov(head, ptr(chain)); + c.mov(head, ptr( chain, i * sizeof( Chain * ) ) ); heads[i] = head; } @@ -381,7 +381,7 @@ static benchmark chase_pointers(int64 chains_per_thread, // memory loading per t std::vector<AsmJit::GPVar> positions(chains_per_thread); for (int i = 0; i < chains_per_thread; i++) { AsmJit::GPVar position = c.newGP(); - c.mov(position, heads[0]); + c.mov(position, heads[i]); positions[i] = position; } |