diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index b324a3c0..78c02423 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -48,7 +48,7 @@ static constexpr MicroArchUx s_uArchUx[] = { }; static constexpr const char* s_regNameX86[] = { - "invalid", + "invalid", "rflags", "rax", "rbx", "rcx", "rdx", "rsi", "rdi", "rbp", "rsp", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "xmm8", "xmm9", @@ -96,6 +96,7 @@ SourceView::SourceView( ImFont* font ) memset( s_regMapX86, 0, sizeof( s_regMapX86 ) ); + s_regMapX86[X86_REG_EFLAGS] = RegsX86::flags; s_regMapX86[X86_REG_AH] = RegsX86::rax; s_regMapX86[X86_REG_AL] = RegsX86::rax; s_regMapX86[X86_REG_AX] = RegsX86::rax; diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 2e2e90cb..e750743e 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -22,7 +22,7 @@ class SourceView public: enum class RegsX86 : uint8_t { - invalid, + invalid, flags, rax, rbx, rcx, rdx, rsi, rdi, rbp, rsp, r8, r9, r10, r11, r12, r13, r14, r15, mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7, xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, xmm8, xmm9,