diff options
author | kobalicek <kobalicek.petr@gmail.com> | 2020-10-25 01:36:04 +0300 |
---|---|---|
committer | kobalicek <kobalicek.petr@gmail.com> | 2020-10-25 01:36:04 +0300 |
commit | 973f5c9c5c901d079b1fe0f1c73384c630d73d2f (patch) | |
tree | 4c05262a72426b21d791b1f1e9ff944506647ff5 | |
parent | a281426ca6449d683139a7d7188c90e31901b7c6 (diff) |
[Bug] Fixed incorrect mov_abs instruction size checking logic (#311)
-rw-r--r-- | src/asmjit/x86/x86assembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asmjit/x86/x86assembler.cpp b/src/asmjit/x86/x86assembler.cpp index 78bc748..3f9e3af 100644 --- a/src/asmjit/x86/x86assembler.cpp +++ b/src/asmjit/x86/x86assembler.cpp @@ -495,7 +495,7 @@ public: // [asmjit::x86::Assembler - Movabs Heuristics] // ============================================================================ -static ASMJIT_INLINE bool x86GetMovAbsInstSize64Bit(uint32_t regSize, uint32_t options, const Mem& rmRel) noexcept { +static ASMJIT_INLINE uint32_t x86GetMovAbsInstSize64Bit(uint32_t regSize, uint32_t options, const Mem& rmRel) noexcept { uint32_t segmentPrefixSize = rmRel.segmentId() != 0; uint32_t _66hPrefixSize = regSize == 2; uint32_t rexPrefixSize = (regSize == 8) || ((options & Inst::kOptionRex) != 0); |