1ba75aee Disassembler: fix argument type `usize` -> `u64` de4cbcdb MSVC project updates (#400) e32757cd CMake: Enable `CMAKE_MSVC_RUNTIME_LIBRARY` (MSVC) 325e5e00 CI: fix Doxyfile being used 3ad3d7fc CI: inject Doxygen CSS theme a1dd0652 Doc: remove CSS theme from Zydis repository cc4f22cb Makefile: fix doc target name 83d2afa9 Update zycore to v1.4.0 53dd0880 Match parameter name for documentation 64028db9 Allow doxygen generation to be disabled 4bb3c83f Fixed ISA sets (Fixes #389) 2a9f9c66 Decoder: change error code for `NULL` `buffer` arguments 807af687 Examples: adjust to `ZydisDecoderDecodeFull` changes 71fe85a7 Tools: adjust to `ZydisDecoderDecodeFull` changes 59135031 Decoder: simplify `ZydisDecoderDecodeFull` API e5e52676 Makefile: fix `test` recipe bcb0a361 CMake: rename target `doc` -> `ZydisDoc` 3208f041 Add support for ppc(64) and riscv64 (#383) 0002161e Deps: update zycore to v1.3.0 e0fc2a92 CMake: simplify example build rules 2221bce3 README: switch decoder example to simplified version 392aa410 Examples: add `@file` comment to `Disassemble` example cff56e42 Examples: add `DisassembleSimple` 246d471b Disassemble: add function for decoding and formatting in one step 109d08ba build(make): use new doc target ebf95079 build: add doc target df277052 Fixed kernel build (WDK detection) daf7c62d Decoder: unnest all structs in `ZydisDecodedInstruction` 89cba0c2 Formatter: provide more meaningful documentation for types f8344423 Doc: remove misspelled `@brief` 6cbdb04a Doc: update `Doxyfile` config to latest version 67e15cf0 Doc: fix group references f6dfdbd2 Added `ZydisEncoderNopFill` 404e50b5 Doc: group important macros and refer to them c6141110 CI: clone doxygen theme prior to building doc 9d6c82a3 CI: add automated documentation builds f8866275 Formatter: add missing newline at end of file 2a06d5e5 Decoder: add missing `ZYAN_FALLTHROUGH` b83a3923 CI: enable development mode for all CI builds eca25034 CI: switch to an include-only way of defining the build matrix dd271e90 README: update CI badge URL 90d54ee8 Fix sign compare warnings on clang-cl e66c7010 CI: shorten name prefix 91f9d4ea CI: improved build name generation 14800b6f CI: add ClangCL build on Windows 55b23387 CI: consistently use default-init for empty vars 6c39010e CI: generalize `dev_mode` variable to `cmake_flags` 3160753d Formatter: make `operand_count` check less strict 9b9b72c9 README: include examples via permalinks adb1a85b Examples: add README encoder example to build 0897c271 Doc: switch Doxygen theme 9cb54996 Examples: add README examples to build a762cd6a README: fix example code 503e064c Fixed compiler warnings 091016bd Update workflow f29de7d8 Added tests for encoding in absolute address mode 355ce7e3 Added function to calculate and encode relative operands 73a44921 Updating ZyCore 9413c809 Doc: clarify that `user_data` can be `NULL` f0f44096 Simplify porting guide `Formatter` section 9ba7e55a Combine `ZydisFormatterTokenizeOperand` with `Ex` variant 35ea249d Combine `ZydisFormatterTokenizeInstruction` with `Ex` variant 01dddb93 Combine `ZydisFormatterFormatOperand` and `Ex` variant abcacbcb Combine `ZydisFormatterFormatInstruction` and `Ex` variant 871c40c5 Clean up `.gitignore` file a941e961 Doc: update porting guide e973b3ec MSVC: add `Segment.{h,c}` to projects dbaec910 Build: make segment API an optional feature cd508f3b Utils: split segment API into separate files 2677d5a2 Add Makefile for quick access to various operations 83eddf40 Decoder: fix name confusion (context vs state) e46660c7 Decoder: make placement of parentheses consistent cc9ff174 Fix build without `ZYDIS_FEATURE_ENCODER` 9b882913 Revert default operand-size to 32-bit for `MOVMSKPS/D` 73d7dbb3 Improved signedness data accuracy and consistency (Fixes #327) f46e3e9d Update zasm URL 2ed04d0c Decoder: add `raw.rex` to union dd6235c5 Duplicate encoding to aid Rust bindings c8b5b75d Always initialize `instruction->cpu_flags/fpu_flags` 9392f010 Extend porting guide (#338) 14453b30 Encoder: consistent constant naming (#339) 95329939 Avoid passing variable size to memcpy to prevent external call (#337) f0f0664a Encoder: improve `ZydisArePrefixesCompatible` perf (#334) 7f83c416 Improve LTO support (#333) 70085c71 Encoder: make all internal functions `static` 1581029c Change `st0` operand visibility as specified by SDM 81fae568 Update regression tests for `st0` visibility changes 6d83a277 Declare structs as anonymous within anonymous unions (#329) f146fd18 Apply consistent encodings to existing files cdbf379a Enforce consistent encoding and line endings 0cf3c960 Disable C11 feature warnings in Windows kernel example 6afe1d80 Update Zycore submodule 580cbfe6 Add unions in decoded instruction and operands e14a0789 Fix `vcpkg` install instructions 3f5a3ad8 Cleanup zydis include c0e80e79 Fixed error codes inside `ZydisDecoderDecodeFull` 770c3203 Fix incorrect register definition 0a45c474 Change default operand size for `MOVMSKPS/D` to 64-bit 91742f41 Fixed hidden operand scaling regression (Fixes #309) b44ec347 Remove LuaJIT bindings link 4f232ebf Fixed edge case for hidden operand scaling (Fixes #296) 562a7c1e Fixed newlines on Windows (amalgamation) 79c759ed Fixed signedness compilation warning (MSVC x86) 3092818a Fixed defines in MSVC projects 124571c5 Improve CMake file 69636284 Add amalgamated CI build d866d2e4 Rename STR_REGISTER -> STR_REGISTERS bd392018 Add script for creating amalgamated distributions 311fb0b4 Prevent duplicate CI builds 9770c41d Get rid of ZydisExportConfig.h cbc23017 Update zycore submodule e34e6b97 Remove register lookup special cases a5fb0d09 Fix `MASM` style disassembly (#298) 9fc98de2 Point to zasm for an assembler front-end 4756724a Ignore `.b` for `modrm.rm` encoded mask registers 198fee5d Improved prefix handling a8e43f84 Fixed `MVEX.EH` special cases ecb7e060 Reworked encoding of branching instructions (Fixes #268, Fixes #266) 38aba0fc Improve `ZydisInfo` 0d650daf Fixed decoder example 49005dd8 Add lookup tables for `ZydisRegister` and `ZydisRegisterClass` (#283) c804b8f6 Refactored operand count checks 979f0bea Update porting guide 875c8a75 Decouple operand decoding 5df1b68e Minor refactoring 66e81ebe Add WebAssembly support (#277) 33c5bccf Refactor operand constraints handling b5a92f4e Fixed constraint enforcement for AMX instructions db2c1633 Add regression tests for recent bugs (#275) 17896d72 Add a minimal mode build to CI (#274) 84dfb487 Fix register constraints of certain `AMX` instructions 4581fe30 Fixed build in minimal mode (#273) 70d6bda3 Make test scripts executable 93b503da Add encoder tests to CI (#272) 4f38dd50 Auto-generated `zydis_encoder_types.py` 69884f0e Fix constraints of certain `AMX` instructions 92dffbf2 Correctly set `is_gather` for MVEX instructions 23b499a7 Enforce MVEX constraints 7b981a6f Enforce constraints for gather instructions (Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41044) 4f4dade2 Move fuzzing corpus out of the repository d835ac30 docs: add man pages (#267) f2429819 Update version-bump-checklist.txt 7d6ee06e Remove legacy code and general cleanup (#262) 162ef4ef Fix various warnings ocurring in pedantic mode 4189d830 Move static asserts to global scope 9fab1a82 `ZydisEncodablePrefix`/`ZydisEncoderInstructionAttribute` -> `ZYDIS_ATTRIB_*` 9f569b7c Size-optimal outputs, bug fixes, FuzzEncoder improvements, misc tooling improvements 1e8e1702 Added regression test suite for encoder 4634cc22 Update `examples/README.md` 043b2cc3 Added separate projects for fuzz targets 0faa2346 Add porting guide 248bc1fc Move instruction attributes into `SharedTypes.h` 4e0cb756 Fix attribute definitions ecb1286f Add example for rewriting instructions 606e361c Fix unaligned pointer write 3707e70f Rebase attribute flags and add `ZYDIS_ATTRIB_HAS_EVEX_B` 8a452a32 Prefer stdlib functions in example 46cd3e02 Documentation improvements fbcfc5d9 Improve encoder example and cleanup README edcac7b3 Extend example to execute the generated code 2a8eb8e2 Add simple encoding example d3b5e241 Fixed compiler warning 76fdffac Added operand masks for enhanced performance cd6a49e9 Implemented instruction encoder (Closes #129) 29bb0163 Don't pack ZydisShortString on Darwin (#259) 55dd08c2 Fix struct initialization in formatter 554efeb7 Update example code in README.md 869dfb42 Remove ZydisPE 6ae9f61b Create SECURITY.md 077b1851 Fix merge conflict 99a22d85 Fix general address-width handling ab535b1a build(cmake): add option to use system installed Zycore 746faa45 Bump version to v3.2 c3720691 Merged some definitions (TBM instructions) 12b4c46f chore: update zycore submodule 6423f083 build(cmake): add version and soversion to the library 2666f80c Update zycore submodule 4a3f25be build(cmake): fix PUBLIC include dir of installed lib c5f5bcf3 Set `ZYDIS_ATTRIB_ACCEPTS_SEGMENT` for non legacy instructions 795f555b Fix `ECX` scaling for `pcmpestri`/`vpcmpestri`/`pcmpistri`/`vpcmpistri` 3737fcbd Fixed segment override handling (Fixes #231) db796058 Fixed FP16 HV broadcasts (Fixes #243) e5764446 Fixed no_source_dest_match check (Fixes #241) 683bf85c Change branch-type from `short` -> `near` for `jkzd`/`jknzd` c462f63a Scale base register of implicit `SP`/`BP` memory operands by stack- instead of address-size e4931747 Do not sign ZydisWinKernel sample 5c193ca3 Ignore segment override for `BNDC{L|N|U}` f30efaf0 Add mission exception class strings to `ZydisInfo` 82a42657 Rebase tests e38110a4 Add missing `notrack` strings to `ZydisInfo` c95307b3 Do not drop `const` modifier 8ac69395 Fixed {sae}/{rc} formatting (Fixes #232) 80d8d523 Fixed issues with enum signedness 5503f8b0 Fuzzing: validate enum ranges 49a087f9 Fixed MVEX rounding mode decoding (Fixes #226) (#227) 60bc090a Rebase tests 4c7ec7fb Replace wrong eviction hint formatter-string 45ad14c6 Add missing register string 2613f262 Fixed Load-op SwizzUpConv(F32) (Fixes #224) 412a3c8e Add support for `no_compat_mode` flag 255513a6 Fix `T1F` handling for 16-bit elements e57da244 Fix element-size for new `QUARTER` tuple-type d36c77f2 Improve malformed `EVEX` conditions 5ec77520 Update MSVC project files 80a99de0 Fix `EVEX` map for certain `AVX-512 FP16` instructions ac3d45b4 Add `MSBuild` build to CI 1588ad23 Update and clean up CI config b622e814 Update zycore submodule 7fc3a946 Fix decoding/formatting of certain `AVX-512 FP16` instructions e6a72bbf Update copyright year 841bd7ca Update zycore submodule 61731ae2 Fix formatting of offset for `PTR` operands (should be unsigned) ad7ddc2c Add `AVX-512 FP16` isa-set (#214) 861187e2 Use lowercase `windows.h` in examples e5758caa Add multiple new ISA extensions 984e0c1d `XOP`/`VEX`/`EVEX` is invalid in 16-bit real mode 58662bf5 Fixed CET/VMX decoding in real mode (Fixes #211) 4c846ec9 Add formatter option to control printing of scale `*1` e994083e Print asterisk in front of absolute `jmp`/`call` address (AT&T) (#207) 2ab6a5cc Improve multiple instruction definitions 179441f3 Add support for `CET` `no-track` prefix (#204) e3fc6790 Ignore segment override for certain operands (#203) 68ad2460 Document xbegin special case 805a88f8 Improved handling of 16-bit relative operands (Fixes #198) cbf808a7 Removed impossible jcxz/jrcxz encodings (Fixes #196) 8080ae55 Fix cmake config files (#191) fe8f1bfd Enhanced formatting for MIB operands efd9c446 Fixes #192 (#193) 6a17c485 Update `Zycore` submodule git-subtree-dir: externals/zydis git-subtree-split: 1ba75aeefae37094c7be8eba07ff81d4fe0f1f20
16 KiB
Dynarmic
A dynamic recompiler for ARM.
Supported guest architectures
- ARMv6K, ARMv7A
- 32-bit ARMv8
- 64-bit ARMv8
Supported host architectures
- x86-64
There are no plans to support x86-32.
Projects using Dynarmic
- Citra - Nintendo 3DS emulator
- yuzu - Nintendo Switch emulator
- EKA2L1 - An Experimental Symbian OS emulator
- Vita3K - An Experimental PSVita emulator
- unidbg - Android native library emulation, with experimental iOS emulation
Alternatives to Dynarmic
If you are looking at a recompiler which you can use with minimal effort to run ARM executables on non-native platforms, we would strongly recommend looking at qemu-user-static (description of qemu-user-static, using qemu-user-static in combination with Docker to provide a complete emulated environment). Having a complete plug-and-play solution is out-of-scope of this project.
Here are some projects with the same goals as dynarmic:
- ChocolArm64 from Ryujinx - ARMv8 recompiler on top of RyuJIT
- Unicorn - Recompiling multi-architecture CPU emulator, based on QEMU
- SkyEye - Cached interpreter for ARM
More general alternatives:
- tARMac - Tarmac's use of armlets was initial inspiration for us to use an intermediate representation
- QEMU - Recompiling multi-architecture system emulator
- VisUAL - Visual ARM UAL emulator intended for education
- A wide variety of other recompilers, interpreters and emulators can be found embedded in other projects, here are some we would recommend looking at:
- firebird's recompiler - Takes more of a call-threaded approach to recompilation
- higan's arm7tdmi emulator - Very clean code-style
- arm-js by ozaki-r - Emulates ARMv7A and some peripherals of Versatile Express, in the browser
Disadvantages of Dynarmic
In the pursuit of speed, some behavior not commonly depended upon is elided. Therefore this emulator does not match spec.
Known examples:
- Only user-mode is emulated, there is no emulation of any other privilege levels.
- FPSR state is approximate.
- Misaligned loads/stores are not appropriately trapped in certain cases.
- Exclusive monitor behavior may not match any known physical processor.
As with most other hobby ARM emulation projects, no formal verification has been done. Use this code base at your own risk.
Documentation
Design documentation can be found at docs/Design.md.
Plans
Near-term
- Complete ARMv8 support
Medium-term
- Optimizations
Long-term
- ARMv7A guest support
- ARMv5 guest support
- ARMv8 host support
Usage Example
The below is a minimal example. Bring-your-own memory system.
#include <array>
#include <cstdint>
#include <cstdio>
#include <exception>
#include "dynarmic/interface/A32/a32.h"
#include "dynarmic/interface/A32/config.h"
using u8 = std::uint8_t;
using u16 = std::uint16_t;
using u32 = std::uint32_t;
using u64 = std::uint64_t;
class MyEnvironment final : public Dynarmic::A32::UserCallbacks {
public:
u64 ticks_left = 0;
std::array<u8, 2048> memory{};
u8 MemoryRead8(u32 vaddr) override {
if (vaddr >= memory.size()) {
return 0;
}
return memory[vaddr];
}
u16 MemoryRead16(u32 vaddr) override {
return u16(MemoryRead8(vaddr)) | u16(MemoryRead8(vaddr + 1)) << 8;
}
u32 MemoryRead32(u32 vaddr) override {
return u32(MemoryRead16(vaddr)) | u32(MemoryRead16(vaddr + 2)) << 16;
}
u64 MemoryRead64(u32 vaddr) override {
return u64(MemoryRead32(vaddr)) | u64(MemoryRead32(vaddr + 4)) << 32;
}
void MemoryWrite8(u32 vaddr, u8 value) override {
if (vaddr >= memory.size()) {
return;
}
memory[vaddr] = value;
}
void MemoryWrite16(u32 vaddr, u16 value) override {
MemoryWrite8(vaddr, u8(value));
MemoryWrite8(vaddr + 1, u8(value >> 8));
}
void MemoryWrite32(u32 vaddr, u32 value) override {
MemoryWrite16(vaddr, u16(value));
MemoryWrite16(vaddr + 2, u16(value >> 16));
}
void MemoryWrite64(u32 vaddr, u64 value) override {
MemoryWrite32(vaddr, u32(value));
MemoryWrite32(vaddr + 4, u32(value >> 32));
}
void InterpreterFallback(u32 pc, size_t num_instructions) override {
// This is never called in practice.
std::terminate();
}
void CallSVC(u32 swi) override {
// Do something.
}
void ExceptionRaised(u32 pc, Dynarmic::A32::Exception exception) override {
// Do something.
}
void AddTicks(u64 ticks) override {
if (ticks > ticks_left) {
ticks_left = 0;
return;
}
ticks_left -= ticks;
}
u64 GetTicksRemaining() override {
return ticks_left;
}
};
int main(int argc, char** argv) {
MyEnvironment env;
Dynarmic::A32::UserConfig user_config;
user_config.callbacks = &env;
Dynarmic::A32::Jit cpu{user_config};
// Execute at least 1 instruction.
// (Note: More than one instruction may be executed.)
env.ticks_left = 1;
// Write some code to memory.
env.MemoryWrite16(0, 0x0088); // lsls r0, r1, #2
env.MemoryWrite16(2, 0xE7FE); // b +#0 (infinite loop)
// Setup registers.
cpu.Regs()[0] = 1;
cpu.Regs()[1] = 2;
cpu.Regs()[15] = 0; // PC = 0
cpu.SetCpsr(0x00000030); // Thumb mode
// Execute!
cpu.Run();
// Here we would expect cpu.Regs()[0] == 8
printf("R0: %u\n", cpu.Regs()[0]);
return 0;
}
Legal
dynarmic is under a 0BSD license. See LICENSE.txt for more details.
dynarmic uses several other libraries, whose licenses are included below:
catch
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
fmt
Copyright (c) 2012 - 2016, Victor Zverovich
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mcl & oaknut
MIT License
Copyright (c) 2022 merryhime <https://mary.rs>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
robin-map
MIT License
Copyright (c) 2017 Thibaut Goetghebuer-Planchon <tessil@gmx.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
xbyak
Copyright (c) 2007 MITSUNARI Shigeo
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
Neither the name of the copyright owner nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を満た
す場合に限り、再頒布および使用が許可されます。
ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責条項
を含めること。
バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の著作
権表示、本条件一覧、および下記免責条項を含めること。
書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売促進
に、著作権者の名前またはコントリビューターの名前を使用してはならない。
本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供さ
れており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する適合性
に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありません。
著作権者もコントリビューターも、事由のいかんを問わず、 損害発生の原因いかんを
問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法行為で
あるかを問わず、仮にそのような損害が発生する可能性を知らされていたとしても、
本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、使用の
喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されない)直接
損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害について、
一切責任を負わないものとします。
zydis
The MIT License (MIT)
Copyright (c) 2014-2020 Florian Bernd
Copyright (c) 2014-2020 Joel Höner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.