mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-02-17 08:06:21 +01:00
Use a SpinLock for guest shader code cache trap mutex
This commit is contained in:
parent
3e12cde4d5
commit
5542459c75
@ -87,7 +87,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
engine::Pipeline::Shader::Type shaderType;
|
engine::Pipeline::Shader::Type shaderType;
|
||||||
|
|
||||||
tsl::robin_map<u8 *, std::unique_ptr<MirrorEntry>> mirrorMap;
|
tsl::robin_map<u8 *, std::unique_ptr<MirrorEntry>> mirrorMap;
|
||||||
std::mutex trapMutex; //!< Protects accesses from trap handlers to the mirror map
|
SpinLock trapMutex; //!< Protects accesses from trap handlers to the mirror map
|
||||||
MirrorEntry *entry{};
|
MirrorEntry *entry{};
|
||||||
span<u8> mirrorBlock{}; //!< Guest mapped memory block corresponding to `entry`
|
span<u8> mirrorBlock{}; //!< Guest mapped memory block corresponding to `entry`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user