Merge pull request #1458 from bet4it/patch

Port some patches from Unicorn1 to Unicorn2
This commit is contained in:
lazymio
2021-11-03 20:59:42 +01:00
committed by GitHub
12 changed files with 165 additions and 23 deletions

View File

@ -468,7 +468,7 @@ static uc_err arm_query(struct uc_struct *uc, uc_query_type type,
// zero out ARM/THUMB mode
mode = uc->mode & ~(UC_MODE_ARM | UC_MODE_THUMB);
// THUMB mode or ARM MOde
mode +=
mode |=
((ARM_CPU(mycpu)->env.thumb != 0) ? UC_MODE_THUMB : UC_MODE_ARM);
*result = mode;
return UC_ERR_OK;