mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 20:44:28 +00:00
32 bit counter
This commit is contained in:
parent
0bf4e75da8
commit
59ea5f8cfe
@ -721,8 +721,8 @@ void BufferCache::ProcessFaultBuffer() {
|
|||||||
// Create the fault buffers batched
|
// Create the fault buffers batched
|
||||||
boost::icl::interval_set<VAddr> fault_ranges;
|
boost::icl::interval_set<VAddr> fault_ranges;
|
||||||
const u64* fault_ptr = std::bit_cast<const u64*>(mapped);
|
const u64* fault_ptr = std::bit_cast<const u64*>(mapped);
|
||||||
u64 fault_count = *(fault_ptr++);
|
const u32 fault_count = static_cast<u32>(*(fault_ptr++));
|
||||||
for (u64 i = 0; i < fault_count; ++i) {
|
for (u32 i = 0; i < fault_count; ++i) {
|
||||||
const VAddr fault = *(fault_ptr++);
|
const VAddr fault = *(fault_ptr++);
|
||||||
const VAddr fault_end = fault + CACHING_PAGESIZE; // This can be adjusted
|
const VAddr fault_end = fault + CACHING_PAGESIZE; // This can be adjusted
|
||||||
fault_ranges +=
|
fault_ranges +=
|
||||||
|
Loading…
Reference in New Issue
Block a user