Skip to content

Commit

Permalink
cpu: correlation with xiangshan div.
Browse files Browse the repository at this point in the history
Change-Id: Ia2142f1e766d9dc62a2e99ddd3b3f6e1e9ebeea1
  • Loading branch information
zephyrols committed Feb 18, 2025
1 parent db2d7b9 commit 8bf490b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cpu/o3/inst_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,7 @@ InstructionQueue::execLatencyCheck(const DynInstPtr& inst, uint32_t& op_latency)
if (__isnanf(*((float*)(&rs1))) ||
__isnanf(*((float*)(&rs2))) ||
__isinff(*((float*)(&rs1))) ||
__isinff(*((float*)(&rs2))) ||
(*((float*)(&rs2)) - 1.0f < 1e-6f)) {
__isinff(*((float*)(&rs2)))) {
op_latency = 2;
break;
}
Expand All @@ -627,8 +626,7 @@ InstructionQueue::execLatencyCheck(const DynInstPtr& inst, uint32_t& op_latency)
if (__isnan(*((double*)(&rs1))) ||
__isnan(*((double*)(&rs2))) ||
__isinf(*((double*)(&rs1))) ||
__isinf(*((double*)(&rs2))) ||
(*((double*)(&rs2)) - 1.0 < 1e-15)) {
__isinf(*((double*)(&rs2)))) {
op_latency = 2;
break;
}
Expand Down

0 comments on commit 8bf490b

Please sign in to comment.