|
@@ -179,29 +179,6 @@ static inline int cpu_mmu_index(CPUState *cs, bool ifetch)
|
|
/* The two sets of flags must not overlap. */
|
|
/* The two sets of flags must not overlap. */
|
|
QEMU_BUILD_BUG_ON(TLB_FLAGS_MASK & TLB_SLOW_FLAGS_MASK);
|
|
QEMU_BUILD_BUG_ON(TLB_FLAGS_MASK & TLB_SLOW_FLAGS_MASK);
|
|
|
|
|
|
-/**
|
|
|
|
- * tlb_hit_page: return true if page aligned @addr is a hit against the
|
|
|
|
- * TLB entry @tlb_addr
|
|
|
|
- *
|
|
|
|
- * @addr: virtual address to test (must be page aligned)
|
|
|
|
- * @tlb_addr: TLB entry address (a CPUTLBEntry addr_read/write/code value)
|
|
|
|
- */
|
|
|
|
-static inline bool tlb_hit_page(uint64_t tlb_addr, vaddr addr)
|
|
|
|
-{
|
|
|
|
- return addr == (tlb_addr & (TARGET_PAGE_MASK | TLB_INVALID_MASK));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * tlb_hit: return true if @addr is a hit against the TLB entry @tlb_addr
|
|
|
|
- *
|
|
|
|
- * @addr: virtual address to test (need not be page aligned)
|
|
|
|
- * @tlb_addr: TLB entry address (a CPUTLBEntry addr_read/write/code value)
|
|
|
|
- */
|
|
|
|
-static inline bool tlb_hit(uint64_t tlb_addr, vaddr addr)
|
|
|
|
-{
|
|
|
|
- return tlb_hit_page(tlb_addr, addr & TARGET_PAGE_MASK);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#endif /* !CONFIG_USER_ONLY */
|
|
#endif /* !CONFIG_USER_ONLY */
|
|
|
|
|
|
/* Validate correct placement of CPUArchState. */
|
|
/* Validate correct placement of CPUArchState. */
|