diff options
author | Giorgis Georgakoudis <g.georgakoudis@qub.ac.uk> | 2018-06-05 22:43:26 +0100 |
---|---|---|
committer | Giorgis Georgakoudis <g.georgakoudis@qub.ac.uk> | 2018-06-05 22:43:26 +0100 |
commit | 9f3ad5f1313be89da3b3fea6a7224fb72756be60 (patch) | |
tree | 1221dbadafe54863916b8e4ef0cb145c588aa9ce /src/run.cpp | |
parent | af8c6a9cedb5e431928647526e524d890e700b8e (diff) |
Fixed accessing multiple chains per thread
Diffstat (limited to 'src/run.cpp')
-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; } |