Changeset 1433ecda in mainline for kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h
r47b2d7e3 r1433ecda 109 109 unsigned long : 51; 110 110 unsigned context : 13; /**< Context/ASID. */ 111 } __attribute__ 111 } __attribute__((packed)); 112 112 }; 113 113 typedef union tlb_context_reg tlb_context_reg_t; … … 126 126 unsigned tlb_entry : 6; 127 127 unsigned : 3; 128 } __attribute__ 128 } __attribute__((packed)); 129 129 }; 130 130 typedef union tlb_data_access_addr dtlb_data_access_addr_t; … … 155 155 unsigned local_tlb_entry : 9; 156 156 unsigned : 3; 157 } __attribute__ 157 } __attribute__((packed)); 158 158 }; 159 159 typedef union dtlb_data_access_addr dtlb_data_access_addr_t; … … 169 169 unsigned local_tlb_entry : 7; 170 170 unsigned : 3; 171 } __attribute__ 171 } __attribute__((packed)); 172 172 }; 173 173 typedef union itlb_data_access_addr itlb_data_access_addr_t; … … 182 182 uint64_t vpn : 51; /**< Virtual Address bits 63:13. */ 183 183 unsigned context : 13; /**< Context identifier. */ 184 } __attribute__ 184 } __attribute__((packed)); 185 185 }; 186 186 typedef union tlb_tag_read_reg tlb_tag_read_reg_t; … … 192 192 uint64_t value; 193 193 struct { 194 uint64_t vpn : 51; /**< Virtual Address bits 63:13. */194 uint64_t vpn : 51; /**< Virtual Address bits 63:13. */ 195 195 #if defined (US) 196 196 unsigned : 6; /**< Ignored. */ … … 198 198 #elif defined (US3) 199 199 unsigned : 5; /**< Ignored. */ 200 unsigned type : 2; /**< The type of demap operation. */200 unsigned type : 2; /**< The type of demap operation. */ 201 201 #endif 202 202 unsigned context : 2; /**< Context register selection. */ 203 203 unsigned : 4; /**< Zero. */ 204 } __attribute__ 204 } __attribute__((packed)); 205 205 }; 206 206 typedef union tlb_demap_addr tlb_demap_addr_t; … … 229 229 unsigned ow : 1; /**< Overwrite bit. */ 230 230 unsigned fv : 1; /**< Fault Valid bit. */ 231 } __attribute__ 231 } __attribute__((packed)); 232 232 }; 233 233 typedef union tlb_sfsr_reg tlb_sfsr_reg_t; … … 436 436 */ 437 437 NO_TRACE static inline void itlb_data_access_write(int tlb, size_t entry, 438 438 uint64_t value) 439 439 { 440 440 itlb_data_access_addr_t reg; … … 472 472 */ 473 473 NO_TRACE static inline void dtlb_data_access_write(int tlb, size_t entry, 474 474 uint64_t value) 475 475 { 476 476 dtlb_data_access_addr_t reg;
Note:
See TracChangeset
for help on using the changeset viewer.