Add six crash cases (2 * ARM + 4 * M68K)

* 001-bad_condition_code_0xe.c (ARM)
* 002-qemu__fatal__unimplemented_control_register_write_0xffb___0x0.c (M68K)
* 003-qemu__fatal__wdebug_not_implemented.c (M68K)
* 004-segmentation_fault_1.c (ARM)
* 005-qemu__fatal__illegal_instruction__0000___00000404.c (M68K)
* 006-qemu__fatal__illegal_instruction__0421___00040026.c (M68K)

```
$ ./001-bad_condition_code_0xe # ARM
uc_emu_start(…)
Bad condition code 0xe
Aborted

$ ./002-qemu__fatal__unimplemented_control_register_write_0xffb___0x0 # M68K
uc_emu_start(…)
hook_code(…) called
qemu: fatal: Unimplemented control register write 0xffb = 0x0

Aborted

$ ./003-qemu__fatal__wdebug_not_implemented # M68K
uc_emu_start(…)
qemu: fatal: WDEBUG not implemented
Aborted

$ ./004-segmentation_fault_1 # ARM
uc_emu_start(…)
hook_code(…) called
Segmentation fault

$ ./005-qemu__fatal__illegal_instruction__0000___00000404 # M68K
uc_emu_start(…)
qemu: fatal: Illegal instruction: 0000 @ 00000404
Aborted

$ ./006-qemu__fatal__illegal_instruction__0421___00040026 # M68K
uc_emu_start(…)
hook_code(…) called
qemu: fatal: Illegal instruction: 0421 @ 00040026
Aborted
```
This commit is contained in:
practicalswift
2016-04-09 15:27:20 -04:00
parent 023e4375d0
commit 06a64dc3b0
8 changed files with 198 additions and 0 deletions

6
.gitignore vendored
View File

@ -133,6 +133,12 @@ threaded_emu_start
emu_stop_in_hook_overrun
mips_branch_likely_issue
emu_clear_errors
001-bad_condition_code_0xe
002-qemu__fatal__unimplemented_control_register_write_0xffb___0x0
003-qemu__fatal__wdebug_not_implemented
004-segmentation_fault_1
005-qemu__fatal__illegal_instruction__0000___00000404
006-qemu__fatal__illegal_instruction__0421___00040026
test_mem_map_ptr
test_mem_high