Addressed the last block issue in a comment

This commit is contained in:
Nemoumbra 2024-09-16 22:17:08 +03:00
parent bd6c469543
commit dcf98fe8a6

View File

@ -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;