diff options
| author | 2020-03-31 15:10:44 -0400 | |
|---|---|---|
| committer | 2020-04-17 00:59:28 -0400 | |
| commit | 4caff51710a793c6c2c1069ddd6e92185aa731fe (patch) | |
| tree | 9770a5cdbfc40f6bddab093d5010f80ddad5bd26 /src/core/tools | |
| parent | common: alignment: Add a helper function for generic alignment checking. (diff) | |
| download | yuzu-4caff51710a793c6c2c1069ddd6e92185aa731fe.tar.gz yuzu-4caff51710a793c6c2c1069ddd6e92185aa731fe.tar.xz yuzu-4caff51710a793c6c2c1069ddd6e92185aa731fe.zip | |
core: memory: Move to Core::Memory namespace.
- helpful to disambiguate Kernel::Memory namespace.
Diffstat (limited to 'src/core/tools')
| -rw-r--r-- | src/core/tools/freezer.cpp | 6 | ||||
| -rw-r--r-- | src/core/tools/freezer.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/tools/freezer.cpp b/src/core/tools/freezer.cpp index 1e060f009..b2c6c537e 100644 --- a/src/core/tools/freezer.cpp +++ b/src/core/tools/freezer.cpp | |||
| @@ -16,7 +16,7 @@ namespace { | |||
| 16 | 16 | ||
| 17 | constexpr s64 MEMORY_FREEZER_TICKS = static_cast<s64>(Core::Hardware::BASE_CLOCK_RATE / 60); | 17 | constexpr s64 MEMORY_FREEZER_TICKS = static_cast<s64>(Core::Hardware::BASE_CLOCK_RATE / 60); |
| 18 | 18 | ||
| 19 | u64 MemoryReadWidth(Memory::Memory& memory, u32 width, VAddr addr) { | 19 | u64 MemoryReadWidth(Core::Memory::Memory& memory, u32 width, VAddr addr) { |
| 20 | switch (width) { | 20 | switch (width) { |
| 21 | case 1: | 21 | case 1: |
| 22 | return memory.Read8(addr); | 22 | return memory.Read8(addr); |
| @@ -32,7 +32,7 @@ u64 MemoryReadWidth(Memory::Memory& memory, u32 width, VAddr addr) { | |||
| 32 | } | 32 | } |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | void MemoryWriteWidth(Memory::Memory& memory, u32 width, VAddr addr, u64 value) { | 35 | void MemoryWriteWidth(Core::Memory::Memory& memory, u32 width, VAddr addr, u64 value) { |
| 36 | switch (width) { | 36 | switch (width) { |
| 37 | case 1: | 37 | case 1: |
| 38 | memory.Write8(addr, static_cast<u8>(value)); | 38 | memory.Write8(addr, static_cast<u8>(value)); |
| @@ -53,7 +53,7 @@ void MemoryWriteWidth(Memory::Memory& memory, u32 width, VAddr addr, u64 value) | |||
| 53 | 53 | ||
| 54 | } // Anonymous namespace | 54 | } // Anonymous namespace |
| 55 | 55 | ||
| 56 | Freezer::Freezer(Core::Timing::CoreTiming& core_timing_, Memory::Memory& memory_) | 56 | Freezer::Freezer(Core::Timing::CoreTiming& core_timing_, Core::Memory::Memory& memory_) |
| 57 | : core_timing{core_timing_}, memory{memory_} { | 57 | : core_timing{core_timing_}, memory{memory_} { |
| 58 | event = Core::Timing::CreateEvent( | 58 | event = Core::Timing::CreateEvent( |
| 59 | "MemoryFreezer::FrameCallback", | 59 | "MemoryFreezer::FrameCallback", |
diff --git a/src/core/tools/freezer.h b/src/core/tools/freezer.h index 916339c6c..62fc6aa6c 100644 --- a/src/core/tools/freezer.h +++ b/src/core/tools/freezer.h | |||
| @@ -16,7 +16,7 @@ class CoreTiming; | |||
| 16 | struct EventType; | 16 | struct EventType; |
| 17 | } // namespace Core::Timing | 17 | } // namespace Core::Timing |
| 18 | 18 | ||
| 19 | namespace Memory { | 19 | namespace Core::Memory { |
| 20 | class Memory; | 20 | class Memory; |
| 21 | } | 21 | } |
| 22 | 22 | ||
| @@ -38,7 +38,7 @@ public: | |||
| 38 | u64 value; | 38 | u64 value; |
| 39 | }; | 39 | }; |
| 40 | 40 | ||
| 41 | explicit Freezer(Core::Timing::CoreTiming& core_timing_, Memory::Memory& memory_); | 41 | explicit Freezer(Core::Timing::CoreTiming& core_timing_, Core::Memory::Memory& memory_); |
| 42 | ~Freezer(); | 42 | ~Freezer(); |
| 43 | 43 | ||
| 44 | // Enables or disables the entire memory freezer. | 44 | // Enables or disables the entire memory freezer. |
| @@ -82,7 +82,7 @@ private: | |||
| 82 | 82 | ||
| 83 | std::shared_ptr<Core::Timing::EventType> event; | 83 | std::shared_ptr<Core::Timing::EventType> event; |
| 84 | Core::Timing::CoreTiming& core_timing; | 84 | Core::Timing::CoreTiming& core_timing; |
| 85 | Memory::Memory& memory; | 85 | Core::Memory::Memory& memory; |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | } // namespace Tools | 88 | } // namespace Tools |