The Xtensa disassembler enabled the ESP32-S3 SIMD/AI (ee.*) and HiFi3 ops for every target because the subtarget feature gates were stubbed to return true (Xtensa_getFeatureBits and hasDensity/hasESP32S3Ops/hasHIFI3). As a result, on a non-ESP32-S3 Xtensa config any instruction with op0=0xE/0xF was matched as a 4-byte ee.* op, so a base-ISA byte stream desynced. Make Xtensa_getFeatureBits map the mode to a feature set (mirroring the SystemZ precedent), thread MI->csh->mode into the three has*Ops gates, and add an opt-in CS_MODE_XTENSA_ESP32S3. Base/esp32/esp32s2/esp8266 no longer emit ESP32-S3 ops; CS_MODE_XTENSA_ESP32S3 preserves them. Concrete instance of issue #1992. The saved auto-sync patch hashes are updated so the fix survives the next LLVM re-sync. Adds tests/MC/Xtensa/esp32s3.s.yaml. Co-authored-by: Denys Melnyk <denys@com2cloud.com> |
||
|---|---|---|
| .. | ||
| java | ||
| ocaml | ||
| powershell | ||
| python | ||
| vb6 | ||
| const_generator.py | ||
| README.md | ||
| stdout_cmp.py | ||
This directory contains bindings & test code for Python, Java & OCaml.
See <language>/README.md for how to compile & install each binding.
More bindings created & maintained by the community are available as followings.
-
Gapstone: Go binding (by Scott Knight).
-
Crabstone: Ruby binding for Capstone 3+ (by david942j).
-
Crabstone: Ruby binding (by Ben Nagy).
-
Capstone-Vala: Vala binding (by Pancake).
-
Node-Capstone: NodeJS binding (by Jason Oster).
-
CCcapstone: C++ binding (by Peter Hlavaty).
-
LuaCapstone: Lua binding (by Antonio Davide).
-
Capstone-RS: Rust binding (by Richo Healey).
-
Capstone.NET: .NET framework binding (by Ahmed Garhy).
-
CapstoneJ: High level Java wrapper for Capstone-java (by Keve Müller).
-
Hapstone: Haskell binding (by ibabushkin)
-
CL-Capstone: Common Lisp bindings (by GrammaTech).
-
Emacs-capstone: Emacs (elisp) binding (by Bas Alberts)
-
C# binding (by Matt Graeber). Note: this is only for Capstone v2.0.
-
PowerShell binding (by Ruben Boonen).
https://github.com/aquynh/capstone/tree/master/bindings/powershell
-
PHP binding (by Fadhil Mandaga).
-
capstone-d: D binding (by Dimitri Bohlender)
-
Swift binding (by Jesús A. Álvarez)