File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,12 @@ struct AddressSpace::Impl {
306
306
new_flags = PAGE_EXECUTE;
307
307
} else if (!read && !write && !execute) {
308
308
new_flags = PAGE_NOACCESS;
309
+ } else if (!read && write && !execute) {
310
+ new_flags = PAGE_READWRITE;
311
+ LOG_WARNING (
312
+ Common_Memory,
313
+ " Requested write-only protection at {:#x} upgraded to read/write (PAGE_READWRITE)" ,
314
+ virtual_addr);
309
315
} else {
310
316
LOG_CRITICAL (Common_Memory,
311
317
" Unsupported protection flag combination for address {:#x}, size {}, "
Original file line number Diff line number Diff line change @@ -1478,7 +1478,7 @@ struct Liverpool {
1478
1478
1479
1479
void SubmitGfx (std::span<const u32 > dcb, std::span<const u32 > ccb);
1480
1480
void SubmitAsc (u32 gnm_vqid, std::span<const u32 > acb);
1481
-
1481
+ std::thread::id gpu_id;
1482
1482
void SubmitDone () noexcept {
1483
1483
std::scoped_lock lk{submit_mutex};
1484
1484
mapped_queues[GfxQueueId].ccb_buffer_offset = 0 ;
@@ -1534,7 +1534,6 @@ struct Liverpool {
1534
1534
u32 tmp_dwords;
1535
1535
};
1536
1536
Common::SlotVector<AscQueueInfo> asc_queues{};
1537
- std::thread::id gpu_id;
1538
1537
1539
1538
private:
1540
1539
struct Task {
@@ -1699,4 +1698,4 @@ static_assert(GFX6_3D_REG_INDEX(vgt_tf_memory_base) == 0xc250);
1699
1698
1700
1699
#undef GFX6_3D_REG_INDEX
1701
1700
1702
- } // namespace AmdGpu
1701
+ } // namespace AmdGpu
You can’t perform that action at this time.
0 commit comments