From 5454b3202d3d36c5b8a1b07c3ff33f685a3cb51b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 4 Oct 2024 17:19:18 +0200 Subject: [PATCH] Bump capstone to 6.0.0-Alpha1. --- cmake/vendor.cmake | 2 +- profiler/src/profiler/TracySourceView.cpp | 16 ++++++++-------- server/TracyWorker.cpp | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmake/vendor.cmake b/cmake/vendor.cmake index 536cde90..dc4b4cc5 100644 --- a/cmake/vendor.cmake +++ b/cmake/vendor.cmake @@ -24,7 +24,7 @@ else() CPMAddPackage( NAME capstone GITHUB_REPOSITORY capstone-engine/capstone - GIT_TAG 5.0.3 + GIT_TAG 6.0.0-Alpha1 EXCLUDE_FROM_ALL TRUE ) add_library(TracyCapstone INTERFACE) diff --git a/profiler/src/profiler/TracySourceView.cpp b/profiler/src/profiler/TracySourceView.cpp index cebe9c3e..11f3dbd2 100644 --- a/profiler/src/profiler/TracySourceView.cpp +++ b/profiler/src/profiler/TracySourceView.cpp @@ -712,7 +712,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker ) rval = cs_open( CS_ARCH_ARM, CS_MODE_ARM, &handle ); break; case CpuArchArm64: - rval = cs_open( CS_ARCH_ARM64, CS_MODE_ARM, &handle ); + rval = cs_open( CS_ARCH_AARCH64, CS_MODE_ARM, &handle ); break; default: assert( false ); @@ -777,9 +777,9 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker ) } break; case CpuArchArm64: - if( detail.arm64.op_count == 1 && detail.arm64.operands[0].type == ARM64_OP_IMM ) + if( detail.aarch64.op_count == 1 && detail.aarch64.operands[0].type == AARCH64_OP_IMM ) { - jumpAddr = (uint64_t)detail.arm64.operands[0].imm; + jumpAddr = (uint64_t)detail.aarch64.operands[0].imm; } break; default: @@ -864,18 +864,18 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker ) } break; case CpuArchArm64: - for( uint8_t i=0; i