Skip to content

Commit

Permalink
now also can thread synchronization works <3
Browse files Browse the repository at this point in the history
  • Loading branch information
rschoene committed Aug 21, 2024
1 parent a6a61a2 commit d00a163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Here we try to implement ARM support.
Current status:
- asmjit does not support SVE yet - sponsors needed
- Some NEON workload can be build
- The thread synchronization does not work, you have to `kill -9` your AArch64 build process
- Some NEON workload can be build that acts like the SSE2 workload on x86

# FIRESTARTER - A Processor Stress Test Utility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,14 @@ int AArch64DefaultPayload::compilePayload(
cb.bind(SkipRegistersDump);
}
*/
if (errorDetection) {
/* if (errorDetection) {
this->emitErrorDetectionCode<decltype(iter_reg), VecD>(
cb, iter_reg, addrHigh_reg, pointer_reg, temp_reg, temp_reg2);
}
*/
cb.ldr(temp_reg,ptr(addrHigh_reg));
cb.sub(temp_reg,temp_reg,Imm(LOAD_HIGH));
cb.cbnz(temp_reg,Loop);
cb.cmp(temp_reg,Imm(LOAD_HIGH));
cb.b_eq(Loop);

cb.bind(FunctionExit);

Expand All @@ -381,14 +382,6 @@ int AArch64DefaultPayload::compilePayload(

cb.finalize();

/* workerLog::error() << fl.data();
fflush(stderr);
fflush(stdout);
sleep(10);
*/
// String sb;
// cb.dump(sb);

Error err = this->rt.add(&this->loadFunction, &code);
if (err) {
workerLog::error() << "Asmjit adding Assembler to JitRuntime failed in "
Expand Down

0 comments on commit d00a163

Please sign in to comment.