Skip to content

Commit

Permalink
Addressed the last block issue in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemoumbra committed Sep 16, 2024
1 parent bd6c469 commit dcf98fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/MIPS/MIPSTracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ void CyclicBuffer<T>::resize(u32 new_capacity) {
buffer.resize(new_capacity);
}


// This system is meant for trace recording.
// A trace here stands for a sequence of instructions and their respective addresses in RAM.
// The register/memory changes (or thread switches) are not included!
// Note: the tracer stores the basic blocks inside, which causes the last block to be dumped as a whole,
// despite the fact that it may not have executed to its end by the time the tracer is stopped.
struct MIPSTracer {
std::vector<TraceBlockInfo> trace_info;

Expand Down

0 comments on commit dcf98fe

Please sign in to comment.