Message ID | CAMo8Bf+2+2XEOQQY=EYO6VsS-ZtesTRf=S1ULgh2GcTFo5JU3g@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index eebe97dabb75..633cffe9ed74 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -692,16 +692,16 @@ void tlb_set_page_with_attrs(CPUState *cpu, target_ulong vaddr, if (prot & PAGE_READ) { tn.addr_read = address; } else { - tn.addr_read = -1; + tn.addr_read = TLB_INVALID_MASK; } if (prot & PAGE_EXEC) { tn.addr_code = code_address; } else { - tn.addr_code = -1; + tn.addr_code = TLB_INVALID_MASK; } - tn.addr_write = -1; + tn.addr_write = TLB_INVALID_MASK; if (prot & PAGE_WRITE) { if ((memory_region_is_ram(section->mr) && section->readonly)