-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
220 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.