Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, X86)
Go to file
Fish ad7ae63e92 Remove unmapped/freed memory regions from the object property list.
This commit fixes the following issues:
- Any unmapped/free'd memory regions (MemoryRegion instances) are not
  removed from the object property linked list of its owner (which is
  always qdev_get_machine(uc)). This issue makes adding new memory
  mapping by calling mem_map() or mem_map_ptr() slower as more and more
  memory pages are mapped and unmapped - yes, even if those memory pages
  are unmapped, they still impact the speed of future memory page
  mappings due to this issue.
- FlatView is not reconstructed after a memory region is freed during
  unmapping, which leads to a use-after-free the next time a new memory
  region is mapped in address_space_update_topology().
2016-10-20 03:48:58 -07:00
bindings python: rename test_i386_reg_save() to test_i386_context_save() 2016-10-13 20:57:34 +08:00
docs update docs/COMPILE-NIX.md 2016-10-01 00:01:32 +08:00
include remove safety checks, for some reason 2016-10-11 13:07:14 -07:00
qemu Remove unmapped/freed memory regions from the object property list. 2016-10-20 03:48:58 -07:00
samples Fixed ARM sample to properly run THUMB code #638 2016-09-20 10:15:58 +02:00
tests Tweak some names in a few places, encapsulate the uc_context struct to hide it from users for some reason 2016-10-10 14:04:51 -07:00
.appveyor.yml appveyor: build for both 32bit & 64bit 2016-07-14 11:20:15 +08:00
.gitignore Minor tweaks to python setup process; update gitignore 2016-09-12 14:06:50 -07:00
.travis.yml travis: do not need to install pkg-config 2016-03-03 23:41:03 +08:00
AUTHORS.TXT import 2015-08-21 15:04:50 +08:00
ChangeLog add ChangeLog 2015-10-15 23:54:39 +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
CREDITS.TXT typo 2016-10-12 11:10:20 +08:00
LEAK_VALGRIND import 2015-08-21 15:04:50 +08:00
list.c fix memory corruption in list_remove 2016-03-25 20:28:23 -07:00
make.sh make.sh: rename option nix32 to linux32 according to aquynh's advise. Also update COMPILE-NIX.md to reflect this change. 2016-08-17 20:27:08 +08:00
Makefile Remove BUILDDIR-specific code 2016-09-04 08:59:31 +02:00
pkgconfig.mk bump API version to 1.0 2016-02-11 08:05:15 +08:00
README.md add link to Perl binding 2016-09-22 08:46:25 +08:00
uc.c turn cpu_context_size() into static function 2016-10-12 11:05:32 +08:00

Unicorn Engine

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

Build Status 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 Perl, Rust, Ruby, Python, Java, MSVC, .NET, Go, Delphi/Free Pascal and Haskell.
  • 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.