Rev 658 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 658 | Rev 758 | ||
---|---|---|---|
Line 108... | Line 108... | ||
108 | lsu_cr_reg_t cr; |
108 | lsu_cr_reg_t cr; |
109 | 109 | ||
110 | cr.value = asi_u64_read(ASI_LSU_CONTROL_REG, 0); |
110 | cr.value = asi_u64_read(ASI_LSU_CONTROL_REG, 0); |
111 | cr.im = enable; |
111 | cr.im = enable; |
112 | asi_u64_write(ASI_LSU_CONTROL_REG, 0, cr.value); |
112 | asi_u64_write(ASI_LSU_CONTROL_REG, 0, cr.value); |
113 | flush(); |
113 | membar(); |
114 | } |
114 | } |
115 | 115 | ||
116 | /** Disable or Enable DMMU. */ |
116 | /** Disable or Enable DMMU. */ |
117 | static inline void dmmu_set(bool enable) |
117 | static inline void dmmu_set(bool enable) |
118 | { |
118 | { |
119 | lsu_cr_reg_t cr; |
119 | lsu_cr_reg_t cr; |
120 | 120 | ||
121 | cr.value = asi_u64_read(ASI_LSU_CONTROL_REG, 0); |
121 | cr.value = asi_u64_read(ASI_LSU_CONTROL_REG, 0); |
122 | cr.dm = enable; |
122 | cr.dm = enable; |
123 | asi_u64_write(ASI_LSU_CONTROL_REG, 0, cr.value); |
123 | asi_u64_write(ASI_LSU_CONTROL_REG, 0, cr.value); |
124 | flush(); |
124 | membar(); |
125 | } |
125 | } |
126 | 126 | ||
127 | #endif |
127 | #endif |