Bump version and generate bindings

This commit is contained in:
mio
2024-09-21 23:00:19 +08:00
parent 6c4a3fd84b
commit 67f08b1c27
21 changed files with 220 additions and 56 deletions

View File

@@ -52,8 +52,8 @@ endif()
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(UNICORN_VERSION_MAJOR 2) set(UNICORN_VERSION_MAJOR 2)
set(UNICORN_VERSION_MINOR 0) set(UNICORN_VERSION_MINOR 1)
set(UNICORN_VERSION_PATCH 2) set(UNICORN_VERSION_PATCH 0)
include(cmake/bundle_static.cmake) include(cmake/bundle_static.cmake)

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "unicorn-engine" name = "unicorn-engine"
version = "2.0.2" version = "2.1.0"
authors = ["Ziqiao Kong", "Lukas Seidel"] authors = ["Ziqiao Kong", "Lukas Seidel"]
documentation = "https://github.com/unicorn-engine/unicorn/wiki" documentation = "https://github.com/unicorn-engine/unicorn/wiki"
edition = "2021" edition = "2021"

View File

@@ -7,15 +7,15 @@ open System
[<AutoOpen>] [<AutoOpen>]
module Common = module Common =
let UC_API_MAJOR = 2 let UC_API_MAJOR = 2
let UC_API_MINOR = 1
let UC_API_MINOR = 0 let UC_API_PATCH = 0
let UC_API_PATCH = 2 let UC_API_EXTRA = 255
let UC_API_EXTRA = 1
let UC_VERSION_MAJOR = 2 let UC_VERSION_MAJOR = 2
let UC_VERSION_MINOR = 1
let UC_VERSION_MINOR = 0 let UC_VERSION_PATCH = 0
let UC_VERSION_PATCH = 2 let UC_VERSION_EXTRA = 255
let UC_VERSION_EXTRA = 1
let UC_SECOND_SCALE = 1000000 let UC_SECOND_SCALE = 1000000
let UC_MILISECOND_SCALE = 1000 let UC_MILISECOND_SCALE = 1000
let UC_ARCH_ARM = 1 let UC_ARCH_ARM = 1
@@ -80,6 +80,7 @@ module Common =
let UC_ERR_HOOK_EXIST = 19 let UC_ERR_HOOK_EXIST = 19
let UC_ERR_RESOURCE = 20 let UC_ERR_RESOURCE = 20
let UC_ERR_EXCEPTION = 21 let UC_ERR_EXCEPTION = 21
let UC_ERR_OVERFLOW = 22
let UC_MEM_READ = 16 let UC_MEM_READ = 16
let UC_MEM_WRITE = 17 let UC_MEM_WRITE = 17
let UC_MEM_FETCH = 18 let UC_MEM_FETCH = 18
@@ -145,10 +146,14 @@ module Common =
let UC_CTL_TB_FLUSH = 10 let UC_CTL_TB_FLUSH = 10
let UC_CTL_TLB_FLUSH = 11 let UC_CTL_TLB_FLUSH = 11
let UC_CTL_TLB_TYPE = 12 let UC_CTL_TLB_TYPE = 12
let UC_CTL_TCG_BUFFER_SIZE = 13
let UC_CTL_CONTEXT_MODE = 14
let UC_PROT_NONE = 0 let UC_PROT_NONE = 0
let UC_PROT_READ = 1 let UC_PROT_READ = 1
let UC_PROT_WRITE = 2 let UC_PROT_WRITE = 2
let UC_PROT_EXEC = 4 let UC_PROT_EXEC = 4
let UC_PROT_ALL = 7 let UC_PROT_ALL = 7
let UC_CTL_CONTEXT_CPU = 1
let UC_CTL_CONTEXT_MEMORY = 2

View File

@@ -6,7 +6,7 @@
<Copyright>Copyright © Antonio Parata 2016</Copyright> <Copyright>Copyright © Antonio Parata 2016</Copyright>
<RepositoryUrl>https://github.com/unicorn-engine/unicorn</RepositoryUrl> <RepositoryUrl>https://github.com/unicorn-engine/unicorn</RepositoryUrl>
<PackageDescription>.NET bindings for unicorn</PackageDescription> <PackageDescription>.NET bindings for unicorn</PackageDescription>
<VersionPrefix>2.0.2-rc1</VersionPrefix> <VersionPrefix>2.1.0</VersionPrefix>
<VersionSuffix>$(VersionSuffix)</VersionSuffix> <VersionSuffix>$(VersionSuffix)</VersionSuffix>
<ProjectGuid>0c21f1c1-2725-4a46-9022-1905f85822a5</ProjectGuid> <ProjectGuid>0c21f1c1-2725-4a46-9022-1905f85822a5</ProjectGuid>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

View File

@@ -6,7 +6,7 @@
<AssemblyName>UnicornSamples</AssemblyName> <AssemblyName>UnicornSamples</AssemblyName>
<Copyright>Copyright © Antonio Parata 2016</Copyright> <Copyright>Copyright © Antonio Parata 2016</Copyright>
<RepositoryUrl>https://github.com/unicorn-engine/unicorn</RepositoryUrl> <RepositoryUrl>https://github.com/unicorn-engine/unicorn</RepositoryUrl>
<Version>2.0.2-rc1</Version> <Version>2.1.0</Version>
<ProjectGuid>{B80B5987-1E24-4309-8BF9-C4F91270F21C}</ProjectGuid> <ProjectGuid>{B80B5987-1E24-4309-8BF9-C4F91270F21C}</ProjectGuid>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup> </PropertyGroup>

View File

@@ -2,15 +2,15 @@ package unicorn
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [unicorn_const.go] // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [unicorn_const.go]
const ( const (
API_MAJOR = 2 API_MAJOR = 2
API_MINOR = 1
API_MINOR = 0 API_PATCH = 0
API_PATCH = 2 API_EXTRA = 255
API_EXTRA = 1
VERSION_MAJOR = 2 VERSION_MAJOR = 2
VERSION_MINOR = 1
VERSION_MINOR = 0 VERSION_PATCH = 0
VERSION_PATCH = 2 VERSION_EXTRA = 255
VERSION_EXTRA = 1
SECOND_SCALE = 1000000 SECOND_SCALE = 1000000
MILISECOND_SCALE = 1000 MILISECOND_SCALE = 1000
ARCH_ARM = 1 ARCH_ARM = 1
@@ -75,6 +75,7 @@ const (
ERR_HOOK_EXIST = 19 ERR_HOOK_EXIST = 19
ERR_RESOURCE = 20 ERR_RESOURCE = 20
ERR_EXCEPTION = 21 ERR_EXCEPTION = 21
ERR_OVERFLOW = 22
MEM_READ = 16 MEM_READ = 16
MEM_WRITE = 17 MEM_WRITE = 17
MEM_FETCH = 18 MEM_FETCH = 18
@@ -140,10 +141,14 @@ const (
CTL_TB_FLUSH = 10 CTL_TB_FLUSH = 10
CTL_TLB_FLUSH = 11 CTL_TLB_FLUSH = 11
CTL_TLB_TYPE = 12 CTL_TLB_TYPE = 12
CTL_TCG_BUFFER_SIZE = 13
CTL_CONTEXT_MODE = 14
PROT_NONE = 0 PROT_NONE = 0
PROT_READ = 1 PROT_READ = 1
PROT_WRITE = 2 PROT_WRITE = 2
PROT_EXEC = 4 PROT_EXEC = 4
PROT_ALL = 7 PROT_ALL = 7
CTL_CONTEXT_CPU = 1
CTL_CONTEXT_MEMORY = 2
) )

View File

@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.1)
find_package(JNI)
if (JNI_FOUND)
message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}")
message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}")
else()
message(FATAL_ERROR "JNI not found, please try to update JAVA_HOME accordingly")
endif()
add_library(unicorn_java SHARED unicorn_Unicorn.c)
message("${CMAKE_CURRENT_SOURCE_DIR}/bindings/java/target/headers")
if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/target/headers")
message(FATAL_ERROR "bindings/java/target/headers not generated, please generate them firstly")
endif()
target_include_directories(unicorn_java PRIVATE target/headers ${JNI_INCLUDE_DIRS})
target_link_libraries(unicorn_java PRIVATE unicorn ${JNI_LIBRARIES})

View File

@@ -36,6 +36,9 @@ unicorn_Unicorn.o: unicorn_Unicorn.c target/headers/unicorn_Unicorn.h
libunicorn_java$(LIB_EXT): $(OBJS) libunicorn_java$(LIB_EXT): $(OBJS)
$(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
gen_const:
cd .. && python3 const_generator.py java
clean: clean:
rm -f libunicorn_java$(LIB_EXT) rm -f libunicorn_java$(LIB_EXT)
rm -f $(OBJS) rm -f $(OBJS)

View File

@@ -6,7 +6,7 @@
<groupId>org.unicorn-engine</groupId> <groupId>org.unicorn-engine</groupId>
<artifactId>unicorn</artifactId> <artifactId>unicorn</artifactId>
<version>2.0</version> <version>2.1.0</version>
<name>unicorn</name> <name>unicorn</name>
<url>https://www.unicorn-engine.org</url> <url>https://www.unicorn-engine.org</url>

View File

@@ -4,15 +4,15 @@ package unicorn;
public interface UnicornConst { public interface UnicornConst {
public static final int UC_API_MAJOR = 2; public static final int UC_API_MAJOR = 2;
public static final int UC_API_MINOR = 1;
public static final int UC_API_MINOR = 0; public static final int UC_API_PATCH = 0;
public static final int UC_API_PATCH = 2; public static final int UC_API_EXTRA = 255;
public static final int UC_API_EXTRA = 1;
public static final int UC_VERSION_MAJOR = 2; public static final int UC_VERSION_MAJOR = 2;
public static final int UC_VERSION_MINOR = 1;
public static final int UC_VERSION_MINOR = 0; public static final int UC_VERSION_PATCH = 0;
public static final int UC_VERSION_PATCH = 2; public static final int UC_VERSION_EXTRA = 255;
public static final int UC_VERSION_EXTRA = 1;
public static final int UC_SECOND_SCALE = 1000000; public static final int UC_SECOND_SCALE = 1000000;
public static final int UC_MILISECOND_SCALE = 1000; public static final int UC_MILISECOND_SCALE = 1000;
public static final int UC_ARCH_ARM = 1; public static final int UC_ARCH_ARM = 1;
@@ -144,11 +144,14 @@ public interface UnicornConst {
public static final int UC_CTL_TLB_FLUSH = 11; public static final int UC_CTL_TLB_FLUSH = 11;
public static final int UC_CTL_TLB_TYPE = 12; public static final int UC_CTL_TLB_TYPE = 12;
public static final int UC_CTL_TCG_BUFFER_SIZE = 13; public static final int UC_CTL_TCG_BUFFER_SIZE = 13;
public static final int UC_CTL_CONTEXT_MODE = 14;
public static final int UC_PROT_NONE = 0; public static final int UC_PROT_NONE = 0;
public static final int UC_PROT_READ = 1; public static final int UC_PROT_READ = 1;
public static final int UC_PROT_WRITE = 2; public static final int UC_PROT_WRITE = 2;
public static final int UC_PROT_EXEC = 4; public static final int UC_PROT_EXEC = 4;
public static final int UC_PROT_ALL = 7; public static final int UC_PROT_ALL = 7;
public static final int UC_CTL_CONTEXT_CPU = 1;
public static final int UC_CTL_CONTEXT_MEMORY = 2;
} }

View File

@@ -5,15 +5,15 @@ unit UnicornConst;
interface interface
const UC_API_MAJOR = 2; const UC_API_MAJOR = 2;
UC_API_MINOR = 1;
UC_API_MINOR = 0; UC_API_PATCH = 0;
UC_API_PATCH = 2; UC_API_EXTRA = 255;
UC_API_EXTRA = 1;
UC_VERSION_MAJOR = 2; UC_VERSION_MAJOR = 2;
UC_VERSION_MINOR = 1;
UC_VERSION_MINOR = 0; UC_VERSION_PATCH = 0;
UC_VERSION_PATCH = 2; UC_VERSION_EXTRA = 255;
UC_VERSION_EXTRA = 1;
UC_SECOND_SCALE = 1000000; UC_SECOND_SCALE = 1000000;
UC_MILISECOND_SCALE = 1000; UC_MILISECOND_SCALE = 1000;
UC_ARCH_ARM = 1; UC_ARCH_ARM = 1;
@@ -78,6 +78,7 @@ const UC_API_MAJOR = 2;
UC_ERR_HOOK_EXIST = 19; UC_ERR_HOOK_EXIST = 19;
UC_ERR_RESOURCE = 20; UC_ERR_RESOURCE = 20;
UC_ERR_EXCEPTION = 21; UC_ERR_EXCEPTION = 21;
UC_ERR_OVERFLOW = 22;
UC_MEM_READ = 16; UC_MEM_READ = 16;
UC_MEM_WRITE = 17; UC_MEM_WRITE = 17;
UC_MEM_FETCH = 18; UC_MEM_FETCH = 18;
@@ -143,12 +144,16 @@ const UC_API_MAJOR = 2;
UC_CTL_TB_FLUSH = 10; UC_CTL_TB_FLUSH = 10;
UC_CTL_TLB_FLUSH = 11; UC_CTL_TLB_FLUSH = 11;
UC_CTL_TLB_TYPE = 12; UC_CTL_TLB_TYPE = 12;
UC_CTL_TCG_BUFFER_SIZE = 13;
UC_CTL_CONTEXT_MODE = 14;
UC_PROT_NONE = 0; UC_PROT_NONE = 0;
UC_PROT_READ = 1; UC_PROT_READ = 1;
UC_PROT_WRITE = 2; UC_PROT_WRITE = 2;
UC_PROT_EXEC = 4; UC_PROT_EXEC = 4;
UC_PROT_ALL = 7; UC_PROT_ALL = 7;
UC_CTL_CONTEXT_CPU = 1;
UC_CTL_CONTEXT_MEMORY = 2;
implementation implementation
end. end.

View File

@@ -0,0 +1,107 @@
q
rr
r
bt
b tcg.c:3075
r
p ts
p *ts
bt
q
b translate.c:4810
r
q
r
b translate.c:4810
frame level 5
frame level 7
q
r
bt
q
r
bt
q
r
bt
b translate.c:4810
r
p/x s->pc
n
n
n
n
n
n
n
n
p/x aflag
n
n
n
p/x dflag
n
n
n
n
p/x f
n
s
n
n
n
n
n
n
n
n
n
n
n
n
n
n
n
q
r
bt
q
r
bt
frame level 7
p/x op
p op
p *op
q
b tcg_optimize
r
b tcg_optimize_x86_64
r
n
s
s
s
q
r
exit
b tcg_dump_ops
r
b tcg_dump_ops
b tcg_dump_ops_x86_64
r
b tcg_optimize_x86_64
r
b tcg_optimize_x86_64
r
b tcg_optimize_x86_64
r
b print_log
r
b print_log
r
f fprintf
q
b write
r
bt
q

View File

@@ -32,7 +32,7 @@ SRC_DIR = os.path.join(ROOT_DIR, 'src')
UC_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..') UC_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..')
BUILD_DIR = os.path.join(UC_DIR, 'build_python') BUILD_DIR = os.path.join(UC_DIR, 'build_python')
VERSION = "2.0.2" VERSION = "2.1.0"
if SYSTEM == 'darwin': if SYSTEM == 'darwin':
LIBRARY_FILE = "libunicorn.2.dylib" LIBRARY_FILE = "libunicorn.2.dylib"

View File

@@ -1,14 +1,14 @@
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [unicorn_const.py] # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [unicorn_const.py]
UC_API_MAJOR = 2 UC_API_MAJOR = 2
UC_API_MINOR = 1
UC_API_MINOR = 0 UC_API_PATCH = 0
UC_API_PATCH = 2 UC_API_EXTRA = 255
UC_API_EXTRA = 1
UC_VERSION_MAJOR = 2 UC_VERSION_MAJOR = 2
UC_VERSION_MINOR = 1
UC_VERSION_MINOR = 0 UC_VERSION_PATCH = 0
UC_VERSION_PATCH = 2 UC_VERSION_EXTRA = 255
UC_VERSION_EXTRA = 1
UC_SECOND_SCALE = 1000000 UC_SECOND_SCALE = 1000000
UC_MILISECOND_SCALE = 1000 UC_MILISECOND_SCALE = 1000
UC_ARCH_ARM = 1 UC_ARCH_ARM = 1
@@ -73,6 +73,7 @@ UC_ERR_FETCH_UNALIGNED = 18
UC_ERR_HOOK_EXIST = 19 UC_ERR_HOOK_EXIST = 19
UC_ERR_RESOURCE = 20 UC_ERR_RESOURCE = 20
UC_ERR_EXCEPTION = 21 UC_ERR_EXCEPTION = 21
UC_ERR_OVERFLOW = 22
UC_MEM_READ = 16 UC_MEM_READ = 16
UC_MEM_WRITE = 17 UC_MEM_WRITE = 17
UC_MEM_FETCH = 18 UC_MEM_FETCH = 18
@@ -138,9 +139,13 @@ UC_CTL_TB_REMOVE_CACHE = 9
UC_CTL_TB_FLUSH = 10 UC_CTL_TB_FLUSH = 10
UC_CTL_TLB_FLUSH = 11 UC_CTL_TLB_FLUSH = 11
UC_CTL_TLB_TYPE = 12 UC_CTL_TLB_TYPE = 12
UC_CTL_TCG_BUFFER_SIZE = 13
UC_CTL_CONTEXT_MODE = 14
UC_PROT_NONE = 0 UC_PROT_NONE = 0
UC_PROT_READ = 1 UC_PROT_READ = 1
UC_PROT_WRITE = 2 UC_PROT_WRITE = 2
UC_PROT_EXEC = 4 UC_PROT_EXEC = 4
UC_PROT_ALL = 7 UC_PROT_ALL = 7
UC_CTL_CONTEXT_CPU = 1
UC_CTL_CONTEXT_MEMORY = 2

View File

@@ -5,7 +5,7 @@
# Use bundle install && rake to install gem and test # Use bundle install && rake to install gem and test
install: gen_const install: gen_const
cd unicorn_gem && rake build cd unicorn_gem && rake build
cd unicorn_gem && gem install --local pkg/unicorn-engine-2.0.0.gem cd unicorn_gem && gem install --local pkg/unicorn-engine-2.1.0.gem
gen_const: gen_const:
cd .. && python3 const_generator.py ruby cd .. && python3 const_generator.py ruby

View File

@@ -2,15 +2,15 @@
module UnicornEngine module UnicornEngine
UC_API_MAJOR = 2 UC_API_MAJOR = 2
UC_API_MINOR = 1
UC_API_MINOR = 0 UC_API_PATCH = 0
UC_API_PATCH = 2 UC_API_EXTRA = 255
UC_API_EXTRA = 1
UC_VERSION_MAJOR = 2 UC_VERSION_MAJOR = 2
UC_VERSION_MINOR = 1
UC_VERSION_MINOR = 0 UC_VERSION_PATCH = 0
UC_VERSION_PATCH = 2 UC_VERSION_EXTRA = 255
UC_VERSION_EXTRA = 1
UC_SECOND_SCALE = 1000000 UC_SECOND_SCALE = 1000000
UC_MILISECOND_SCALE = 1000 UC_MILISECOND_SCALE = 1000
UC_ARCH_ARM = 1 UC_ARCH_ARM = 1
@@ -75,6 +75,7 @@ module UnicornEngine
UC_ERR_HOOK_EXIST = 19 UC_ERR_HOOK_EXIST = 19
UC_ERR_RESOURCE = 20 UC_ERR_RESOURCE = 20
UC_ERR_EXCEPTION = 21 UC_ERR_EXCEPTION = 21
UC_ERR_OVERFLOW = 22
UC_MEM_READ = 16 UC_MEM_READ = 16
UC_MEM_WRITE = 17 UC_MEM_WRITE = 17
UC_MEM_FETCH = 18 UC_MEM_FETCH = 18
@@ -140,10 +141,14 @@ module UnicornEngine
UC_CTL_TB_FLUSH = 10 UC_CTL_TB_FLUSH = 10
UC_CTL_TLB_FLUSH = 11 UC_CTL_TLB_FLUSH = 11
UC_CTL_TLB_TYPE = 12 UC_CTL_TLB_TYPE = 12
UC_CTL_TCG_BUFFER_SIZE = 13
UC_CTL_CONTEXT_MODE = 14
UC_PROT_NONE = 0 UC_PROT_NONE = 0
UC_PROT_READ = 1 UC_PROT_READ = 1
UC_PROT_WRITE = 2 UC_PROT_WRITE = 2
UC_PROT_EXEC = 4 UC_PROT_EXEC = 4
UC_PROT_ALL = 7 UC_PROT_ALL = 7
UC_CTL_CONTEXT_CPU = 1
UC_CTL_CONTEXT_MEMORY = 2
end end

View File

@@ -1,3 +1,3 @@
module Unicorn module Unicorn
VERSION = "2.0.0" VERSION = "2.1.0"
end end

View File

@@ -32,7 +32,7 @@ Add this to your `Cargo.toml`:
``` ```
[dependencies] [dependencies]
unicorn-engine = "2.0.0" unicorn-engine = "2.1.0"
``` ```
## Acknowledgements ## Acknowledgements

View File

@@ -2,15 +2,15 @@
pub const unicornConst = enum(c_int) { pub const unicornConst = enum(c_int) {
API_MAJOR = 2, API_MAJOR = 2,
API_MINOR = 1,
API_MINOR = 0, API_PATCH = 0,
API_PATCH = 2, API_EXTRA = 255,
API_EXTRA = 1,
VERSION_MAJOR = 2, VERSION_MAJOR = 2,
VERSION_MINOR = 1,
VERSION_MINOR = 0, VERSION_PATCH = 0,
VERSION_PATCH = 2, VERSION_EXTRA = 255,
VERSION_EXTRA = 1,
SECOND_SCALE = 1000000, SECOND_SCALE = 1000000,
MILISECOND_SCALE = 1000, MILISECOND_SCALE = 1000,
ARCH_ARM = 1, ARCH_ARM = 1,
@@ -75,6 +75,7 @@ pub const unicornConst = enum(c_int) {
ERR_HOOK_EXIST = 19, ERR_HOOK_EXIST = 19,
ERR_RESOURCE = 20, ERR_RESOURCE = 20,
ERR_EXCEPTION = 21, ERR_EXCEPTION = 21,
ERR_OVERFLOW = 22,
MEM_READ = 16, MEM_READ = 16,
MEM_WRITE = 17, MEM_WRITE = 17,
MEM_FETCH = 18, MEM_FETCH = 18,
@@ -140,11 +141,15 @@ pub const unicornConst = enum(c_int) {
CTL_TB_FLUSH = 10, CTL_TB_FLUSH = 10,
CTL_TLB_FLUSH = 11, CTL_TLB_FLUSH = 11,
CTL_TLB_TYPE = 12, CTL_TLB_TYPE = 12,
CTL_TCG_BUFFER_SIZE = 13,
CTL_CONTEXT_MODE = 14,
PROT_NONE = 0, PROT_NONE = 0,
PROT_READ = 1, PROT_READ = 1,
PROT_WRITE = 2, PROT_WRITE = 2,
PROT_EXEC = 4, PROT_EXEC = 4,
PROT_ALL = 7, PROT_ALL = 7,
CTL_CONTEXT_CPU = 1,
CTL_CONTEXT_MEMORY = 2,
}; };

View File

@@ -1,5 +1,5 @@
.{ .{
.name = "unicorn", .name = "unicorn",
.version = "2.0.0", .version = "2.1.0",
.paths = .{""}, .paths = .{""},
} }

View File

@@ -71,10 +71,10 @@ typedef size_t uc_hook;
// Unicorn API version // Unicorn API version
#define UC_API_MAJOR 2 #define UC_API_MAJOR 2
#define UC_API_MINOR 0 #define UC_API_MINOR 1
#define UC_API_PATCH 2 #define UC_API_PATCH 0
// Release candidate version, 255 means the official release. // Release candidate version, 255 means the official release.
#define UC_API_EXTRA 1 #define UC_API_EXTRA 255
// Unicorn package version // Unicorn package version
#define UC_VERSION_MAJOR UC_API_MAJOR #define UC_VERSION_MAJOR UC_API_MAJOR