diff options
| author | Mat M <mathew1800@gmail.com> | 2021-05-14 14:33:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-14 14:33:24 -0400 |
| commit | 964fed77c5a6d6683f6e1b65fb685616ccd6d632 (patch) | |
| tree | d8e9c0627a59a4f1a9ffba8c1301ee43e64dc33d /Source/Core/VideoCommon/CommandProcessor.h | |
| parent | 16e91172b17eb2f223599a49658e3abb348b89f9 (diff) | |
| parent | b93983b50a8b2d50a2120601784aab022f46308c (diff) | |
Merge pull request #9707 from JosJuice/remove-atomic-header
Remove Atomic.h
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.h')
| -rw-r--r-- | Source/Core/VideoCommon/CommandProcessor.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/CommandProcessor.h b/Source/Core/VideoCommon/CommandProcessor.h index c246d5651d..bc0a8ede49 100644 --- a/Source/Core/VideoCommon/CommandProcessor.h +++ b/Source/Core/VideoCommon/CommandProcessor.h @@ -4,6 +4,8 @@ #pragma once +#include <atomic> + #include "Common/CommonTypes.h" class PointerWrap; @@ -17,15 +19,15 @@ namespace CommandProcessor struct SCPFifoStruct { // fifo registers - volatile u32 CPBase; - volatile u32 CPEnd; + std::atomic<u32> CPBase; + std::atomic<u32> CPEnd; u32 CPHiWatermark; u32 CPLoWatermark; - volatile u32 CPReadWriteDistance; - volatile u32 CPWritePointer; - volatile u32 CPReadPointer; - volatile u32 CPBreakpoint; - volatile u32 SafeCPReadPointer; + std::atomic<u32> CPReadWriteDistance; + std::atomic<u32> CPWritePointer; + std::atomic<u32> CPReadPointer; + std::atomic<u32> CPBreakpoint; + std::atomic<u32> SafeCPReadPointer; volatile u32 bFF_GPLinkEnable; volatile u32 bFF_GPReadEnable; |
