From dcf98fe8a6919e97fd93cf8892f06925b1d142d1 Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Mon, 16 Sep 2024 22:17:08 +0300 Subject: [PATCH] Addressed the last block issue in a comment --- Core/MIPS/MIPSTracer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/MIPS/MIPSTracer.h b/Core/MIPS/MIPSTracer.h index a3a7ee584edc..8ba1bef6e854 100644 --- a/Core/MIPS/MIPSTracer.h +++ b/Core/MIPS/MIPSTracer.h @@ -124,6 +124,12 @@ void CyclicBuffer::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 trace_info;