Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, X86)
Go to file
Charles Ferguson b7e64f3c99
Fix block hooks being called twice after an early exit from execution. (#1194)
Ensure the TCG exit flag is cleared at the end of cpu_exec. This ensures
that subsequent calls are not polluted by the prior call to request an
early exit. The symptoms of the problem being addressed here are that
after a cpu_exit call triggered within a hook there may still be a
pending tcg_exit_req flag set. This then causes a block to start its
execution and then be aborted (from which point it'll continue because
there's no other condition to service). The start of the execution
causes the block hook to be called, no actual code to be run, and then
the block started again with another block hook call.

This change is discussed in ticket 1193:
    https://github.com/unicorn-engine/unicorn/issues/1193
2020-05-05 08:32:12 +08:00
bindings fix binding install on python2 (#1231) 2020-04-24 17:15:12 +08:00
docs we do not need Python to build anymore 2020-04-30 13:58:33 +08:00
include Timeout error (#1173) 2019-12-29 00:16:54 +08:00
msvc Final tweaks to MSVC build (#1139) 2019-09-07 10:46:28 +08:00
qemu Fix block hooks being called twice after an early exit from execution. (#1194) 2020-05-05 08:32:12 +08:00
samples fixed leaks in test cases (#1247) 2020-05-02 18:18:18 +08:00
tests fixed leaks in test cases (#1247) 2020-05-02 18:18:18 +08:00
.gitignore we do not need Python to build anymore 2020-04-30 13:58:33 +08:00
.travis.yml fix travis-ci cmake path (#1242) 2020-04-27 00:01:39 +08:00
AUTHORS.TXT import 2015-08-21 15:04:50 +08:00
Brewfile Update Brewfile 2017-09-30 17:36:44 +07:00
ChangeLog update ChangeLog 2017-04-20 13:28:02 +08:00
cmake.sh add CMakeList.txt. build windows binary by using vs2019. (#1134) 2019-09-08 16:42:43 +08:00
CMakeLists.txt cmake: spacing 2020-05-01 20:18:07 +08:00
config.mk Fix document file extension 2016-08-08 17:33:49 +09:00
COPYING import 2015-08-21 15:04:50 +08:00
COPYING_GLIB glib_compat: add COPYING_GLIB 2016-12-27 10:15:08 +08:00
COPYING.LGPL2 LGPL2 for all header files under include/unicorn/ 2017-12-16 10:08:42 +08:00
CREDITS.TXT Travis-CI Migration (#1230) 2020-04-21 00:47:08 +08:00
install-cmocka-linux.sh Start moving examples in S files (#851) 2017-06-25 10:14:22 +08:00
list.c callback to count number of instructions in uc_emu_start() should be executed first. fix #727 2017-06-16 13:22:38 +08:00
make.sh remove broken iOS builds (#1109) 2019-07-31 09:33:13 +08:00
Makefile we do not need Python to build anymore 2020-04-30 13:58:33 +08:00
msvc.bat add msvc.bat 2017-04-21 15:35:40 +08:00
nmake.bat add CMakeList.txt. build windows binary by using vs2019. (#1134) 2019-09-08 16:42:43 +08:00
pkgconfig.mk ready to tag rc3 2020-04-08 22:52:43 +08:00
README.md README: try to put CI badge on the same line with Gitter 2020-04-21 00:56:16 +08:00
uc.c Timeout error (#1173) 2019-12-29 00:16:54 +08:00
windows_export.bat Make the call out to visual studio extremely resilient 2017-01-02 03:32:48 -08:00

Unicorn Engine

Join the chat at https://gitter.im/unicorn-engine/chat Build Status

Unicorn is a lightweight, multi-platform, multi-architecture CPU emulator framework based on QEMU.

Unicorn offers some unparalleled features:

  • Multi-architecture: ARM, ARM64 (ARMv8), M68K, MIPS, SPARC, and X86 (16, 32, 64-bit)
  • Clean/simple/lightweight/intuitive architecture-neutral API
  • Implemented in pure C language, with bindings for Crystal, Clojure, Visual Basic, Perl, Rust, Ruby, Python, Java, .NET, Go, Delphi/Free Pascal, Haskell, Pharo, and Lua.
  • Native support for Windows & *nix (with Mac OSX, Linux, *BSD & Solaris confirmed)
  • High performance via Just-In-Time compilation
  • Support for fine-grained instrumentation at various levels
  • Thread-safety by design
  • Distributed under free software license GPLv2

Further information is available at http://www.unicorn-engine.org

License

This project is released under the GPL license.

Compilation & Docs

See docs/COMPILE.md file for how to compile and install Unicorn.

More documentation is available in docs/README.md.

Contact

Contact us via mailing list, email or twitter for any questions.

Contribute

If you want to contribute, please pick up something from our Github issues.

We also maintain a list of more challenged problems in a TODO list.

CREDITS.TXT records important contributors of our project.