Skip to content

Commit

Permalink
Merge pull request #124 from JoGei/fix_RV32IMACFDArch_interruptvector
Browse files Browse the repository at this point in the history
Enable CSR based interrupt vector in arch-specfific for latest rv32 sources
  • Loading branch information
wysiwyng authored Jul 26, 2023
2 parents 40c0b92 + 0fb827c commit 0d215c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ArchImpl/RV32IMACFD/RV32IMACFDArchSpecificImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,14 @@ etiss::InterruptVector * RV32IMACFDArch::createInterruptVector(ETISS_CPU * cpu)
// This is a default vector, implemented to avoid segfaults. Replace
// with actual implementation if necessary.

RV32IMACFD* rvcpu = (RV32IMACFD *)cpu;

std::vector<etiss::uint32 *> vec;
std::vector<etiss::uint32 *> mask;

vec.push_back(rvcpu->CSR[CSR_MIP]);
mask.push_back(rvcpu->CSR[CSR_MIE]);

return new etiss::MappedInterruptVector<etiss::uint32>(vec, mask);
}

Expand Down

0 comments on commit 0d215c8

Please sign in to comment.