summaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
AgeCommit message (Collapse)Author
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-07common: Replace lock_guard with scoped_lockMerry
2022-03-20general: Fix clang/gcc build errorsameerj
2022-03-19common: Reduce unused includesameerj
2022-03-02host_memory: Fix fastmem crashes in debug buildsMorph
It is possible for virtual_offset to not be 0 when the iterator is at the beginning, and thus, std::prev(it) may be evaluated, leading to a crash in debug mode. Co-Authored-By: Fernando S. <1731197+FernandoS27@users.noreply.github.com>
2021-12-05general: Add missing copyright noticesameerj
2021-09-29Fixed invalid iterator usageAndrew Strelsky
2021-07-27host_memory: Add workaround for FreeBSD 12Jan Beich
src/common/host_memory.cpp:360:14: error: use of undeclared identifier 'memfd_create' fd = memfd_create("HostMemory", 0); ^
2021-07-27host_memory: Enable Linux implementation on FreeBSDJan Beich
HW.Memory <Critical> common/host_memory.cpp:HostMemory:492: Fastmem unavailable, falling back to VirtualBuffer for memory allocation
2021-06-19host_memory: Correct MEM_RESERVE_PLACEHOLDERlat9nq
Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our manually imported version of it drops the last zero.
2021-06-11common/host_memory: Implement a fallback if fastmem fails.Markus Wick
This falls back to the old approach of using a virtual buffer. Windows is untested, but this build should fix support for Windows < 10 v1803. However without fastmem support at all.
2021-06-11common/host_shader: Load Windows 10 functions dynamicallyReinUsesLisp
Workaround old headers and libraries shipped on MinGW.
2021-06-11host_memory: Support staged VirtualProtect callsReinUsesLisp
2021-06-11common/host_memory: Optimize for huge tables.Markus Wick
In theory, if we have 2 MB continously mapped, this should save one layer of TLB. Let's make it at least more likely by aligning the memory.
2021-06-11common/host_memory: Add Linux implementationMarkus Wick
2021-06-11common/host_memory: Add interface and Windows implementationReinUsesLisp