adds back missing max irq functions
This commit is contained in:
parent
83f54b5074
commit
ad1cbedf00
@ -212,9 +212,9 @@ public:
|
||||
csr[addr & csr.page_addr_mask] = val;
|
||||
}
|
||||
|
||||
// void set_irq_num(unsigned i) {
|
||||
// mcause_max_irq=1<<util::ilog2(i);
|
||||
// }
|
||||
void set_irq_num(unsigned i) {
|
||||
mcause_max_irq=1<<util::ilog2(i);
|
||||
}
|
||||
protected:
|
||||
struct riscv_instrumentation_if : public iss::instrumentation_if {
|
||||
|
||||
|
@ -227,9 +227,9 @@ public:
|
||||
csr[addr & csr.page_addr_mask] = val;
|
||||
}
|
||||
|
||||
// void set_irq_num(unsigned i) {
|
||||
// mcause_max_irq=1<<util::ilog2(i);
|
||||
// }
|
||||
void set_irq_num(unsigned i) {
|
||||
mcause_max_irq=1<<util::ilog2(i);
|
||||
}
|
||||
protected:
|
||||
struct riscv_instrumentation_if : public iss::instrumentation_if {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user