summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-04 05:17:35 +0100
committerbunnei <bunneidev@gmail.com>2019-03-21 03:36:02 +0100
commit241563d15c8b831a2d2b7c360d570cc721903d14 (patch)
treef43f13d6af3b9b7e2cc92d241d7aabc490ee6ef0 /src/common
parentMerge pull request #2272 from lioncash/boost (diff)
downloadyuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar
yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.gz
yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.bz2
yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.lz
yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.xz
yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.tar.zst
yuzu-241563d15c8b831a2d2b7c360d570cc721903d14.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common_types.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h
index 6b1766dca..4cec89fbd 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -40,10 +40,9 @@ using s64 = std::int64_t; ///< 64-bit signed int
using f32 = float; ///< 32-bit floating point
using f64 = double; ///< 64-bit floating point
-// TODO: It would be nice to eventually replace these with strong types that prevent accidental
-// conversion between each other.
-using VAddr = u64; ///< Represents a pointer in the userspace virtual address space.
-using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space.
+using VAddr = u64; ///< Represents a pointer in the userspace virtual address space.
+using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space.
+using GPUVAddr = u64; ///< Represents a pointer in the GPU virtual address space.
using u128 = std::array<std::uint64_t, 2>;
static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide");