File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ reg_t mcontrol_t::tdata1_read(const processor_t * const proc) const noexcept {
146
146
auto xlen = proc->get_xlen ();
147
147
v = set_field (v, MCONTROL_TYPE (xlen), CSR_TDATA1_TYPE_MCONTROL);
148
148
v = set_field (v, CSR_MCONTROL_DMODE (xlen), dmode);
149
- v = set_field (v, MCONTROL_MASKMAX (xlen), 0 );
149
+ v = set_field (v, MCONTROL_MASKMAX (xlen), maskmax );
150
150
v = set_field (v, CSR_MCONTROL_HIT, hit);
151
151
v = set_field (v, MCONTROL_SELECT, select);
152
152
v = set_field (v, MCONTROL_TIMING, timing);
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ class mcontrol_t : public mcontrol_common_t {
243
243
244
244
private:
245
245
bool hit = false ;
246
+ const reg_t maskmax = 0 ;
246
247
};
247
248
248
249
class mcontrol6_t : public mcontrol_common_t {
You can’t perform that action at this time.
0 commit comments