Commit 421c5aaf authored by Milad Farazmand's avatar Milad Farazmand Committed by Commit Bot

ppc: fixing ThreadId on ppc

Fixing ThreadId according to the following changes:
656254b1

Change-Id: I1e1943ac7e3ed03799c213e566816bfe5c21967d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1512718Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#60159}
parent 1f6fc830
...@@ -3982,7 +3982,7 @@ void Simulator::GlobalMonitor::NotifyStore(uintptr_t addr, TransactionSize size, ...@@ -3982,7 +3982,7 @@ void Simulator::GlobalMonitor::NotifyStore(uintptr_t addr, TransactionSize size,
tagged_addr_ + static_cast<uintptr_t>(size_); tagged_addr_ + static_cast<uintptr_t>(size_);
bool is_not_overlapped = transaction_end < exclusive_transaction_start || bool is_not_overlapped = transaction_end < exclusive_transaction_start ||
exclusive_transaction_end < transaction_start; exclusive_transaction_end < transaction_start;
if (!is_not_overlapped && !thread_id_.Equals(thread_id)) { if (!is_not_overlapped && thread_id_ != thread_id) {
Clear(); Clear();
} }
} }
...@@ -3993,7 +3993,7 @@ bool Simulator::GlobalMonitor::NotifyStoreExcl(uintptr_t addr, ...@@ -3993,7 +3993,7 @@ bool Simulator::GlobalMonitor::NotifyStoreExcl(uintptr_t addr,
ThreadId thread_id) { ThreadId thread_id) {
bool permission = access_state_ == MonitorAccess::Exclusive && bool permission = access_state_ == MonitorAccess::Exclusive &&
addr == tagged_addr_ && size_ == size && addr == tagged_addr_ && size_ == size &&
thread_id_.Equals(thread_id); thread_id_ == thread_id;
// The reservation is cleared if the processor holding the reservation // The reservation is cleared if the processor holding the reservation
// executes a store conditional instruction to any address. // executes a store conditional instruction to any address.
Clear(); Clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment