File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,9 @@ void state_t::csr_init(processor_t* const proc, reg_t max_isa)
341341 const reg_t sstateen0_mask = (proc->extension_enabled (EXT_ZFINX) ? SSTATEEN0_FCSR : 0 ) |
342342 (proc->extension_enabled (EXT_ZCMT) ? SSTATEEN0_JVT : 0 ) |
343343 SSTATEEN0_CS;
344- const reg_t hstateen0_mask = sstateen0_mask | HSTATEEN0_CSRIND | HSTATEEN0_SENVCFG | HSTATEEN_SSTATEEN;
344+ const reg_t hstateen0_mask = sstateen0_mask | HSTATEEN0_SENVCFG | HSTATEEN_SSTATEEN |
345+ (proc->extension_enabled_const (EXT_SSCSRIND) ? HSTATEEN0_CSRIND : 0 ) |
346+ (proc->extension_enabled_const (EXT_SSAIA) ? HSTATEEN0_IMSIC | HSTATEEN0_AIA : 0 );
345347 const reg_t mstateen0_mask = hstateen0_mask | (proc->extension_enabled (EXT_SSQOSID) ? MSTATEEN0_PRIV114 : 0 );
346348 for (int i = 0 ; i < 4 ; i++) {
347349 const reg_t mstateen_mask = i == 0 ? mstateen0_mask : MSTATEEN_HSTATEEN;
You can’t perform that action at this time.
0 commit comments