Add ARM BE8 support (#1369)

Co-authored-by: w4kfu <gw4kfu@gmail.com>
This commit is contained in:
w4kfu-synacktiv
2021-03-31 15:22:35 +02:00
committed by GitHub
parent 4440310f14
commit 21ec6e8f83
10 changed files with 16 additions and 2 deletions

4
uc.c
View File

@ -192,7 +192,9 @@ uc_err uc_open(uc_arch arch, uc_mode mode, uc_engine **result)
free(uc);
return UC_ERR_MODE;
}
if (mode & UC_MODE_BIG_ENDIAN) {
if (mode & (UC_MODE_BIG_ENDIAN | UC_MODE_ARMBE8)) {
if (mode & UC_MODE_ARMBE8)
uc->bswap_code = 1;
#ifdef UNICORN_HAS_ARMEB
uc->init_arch = armeb_uc_init;
#else