mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-09 22:27:31 +00:00
Add test case to Makefile and .gitignore. Add disassembly.
This commit is contained in:
parent
c8fe68fb3d
commit
5b34660b3f
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -111,6 +111,7 @@ eflags_nosync
|
||||||
00opcode_uc_crash
|
00opcode_uc_crash
|
||||||
eflags_noset
|
eflags_noset
|
||||||
mem_map_large
|
mem_map_large
|
||||||
|
invalid_read_in_cpu_tb_exec
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|
|
@ -16,6 +16,7 @@ TESTS += eflags_nosync
|
||||||
TESTS += 00opcode_uc_crash
|
TESTS += 00opcode_uc_crash
|
||||||
TESTS += eflags_noset
|
TESTS += eflags_noset
|
||||||
TESTS += mem_map_large
|
TESTS += mem_map_large
|
||||||
|
TESTS += invalid_read_in_cpu_tb_exec
|
||||||
|
|
||||||
all: $(TESTS)
|
all: $(TESTS)
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,11 @@ static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *use
|
||||||
printf("hook_block(…)\n");
|
printf("hook_block(…)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disassembly according to capstone:
|
||||||
|
* add byte ptr [rip - 1], 0x30
|
||||||
|
* jmp 0x1000000
|
||||||
|
*/
|
||||||
#define BINARY "\x80\x05\xff\xff\xff\xff\x30\xeb\xf7\x30"
|
#define BINARY "\x80\x05\xff\xff\xff\xff\x30\xeb\xf7\x30"
|
||||||
#define MEMORY_SIZE 2 * 1024 * 1024
|
#define MEMORY_SIZE 2 * 1024 * 1024
|
||||||
#define STARTING_ADDRESS 0x1000000
|
#define STARTING_ADDRESS 0x1000000
|
||||||
|
|
Loading…
Reference in a new issue