File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,7 @@ pub fn fences() {
158
158
#[ cfg_attr( kani, kani:: proof) ]
159
159
#[ cfg_attr( test, test) ]
160
160
pub fn read_csr ( ) {
161
- let ( mut ctx, mctx, mut sail_ctx) = symbolic:: new_symbolic_contexts ( ) ;
162
-
163
- // Infinite number of pmps for the formal verification
164
- ctx. nb_pmp = usize:: MAX ;
161
+ let ( ctx, mctx, mut sail_ctx) = symbolic:: new_symbolic_contexts ( ) ;
165
162
166
163
let csr_register = generate_csr_register ( ) ;
167
164
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl RegisterContextGetter<Csr> for VirtContext {
91
91
log:: warn!( "Invalid pmpcfg {}" , pmp_cfg_idx) ;
92
92
return 0 ;
93
93
}
94
- if pmp_cfg_idx >= self . nb_pmp / 8 {
94
+ if pmp_cfg_idx >= 2 * self . nb_pmp / 8 {
95
95
// This PMP is not emulated
96
96
return 0 ;
97
97
}
You can’t perform that action at this time.
0 commit comments