Skip to content

Commit

Permalink
Merge branch 'tum-ei-eda:master' into rev_faultinjection
Browse files Browse the repository at this point in the history
  • Loading branch information
JoGei authored Feb 23, 2023
2 parents 7f5fa60 + 52650d0 commit a25a699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/etiss/CodePart.h
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ class CodeBlock

public:
inline CodeBlock(etiss::uint64 startindex) : startindex_(startindex) {}
inline void reserve(int num) { lines_.reserve(num); }
inline Line &get(unsigned index) { return lines_[index]; }
inline Line &append(etiss::uint64 addr)
{
Expand Down
1 change: 1 addition & 0 deletions src/Translation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ etiss::int32 Translation::translateBlock(CodeBlock &cb)

unsigned count = 0;
const unsigned maxcount = etiss::cfg().get<unsigned>("etiss.max_block_size", 100);
cb.reserve(maxcount);

etiss::instr::VariableInstructionSet *const vis_ = mis_->get(cpu_.mode);

Expand Down

0 comments on commit a25a699

Please sign in to comment.