rename UC_QUERY_ARM_MODE to a more generic name UC_QUERY_MODE. make all bindings support this new constant

This commit is contained in:
Nguyen Anh Quynh
2016-01-24 01:08:23 +08:00
parent 4dbad9aa9b
commit 6f3d48077e
6 changed files with 11 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ static uc_err arm_query(struct uc_struct *uc, uc_query_type type, size_t *result
CPUState *mycpu = first_cpu;
switch(type) {
case UC_QUERY_ARM_MODE:
case UC_QUERY_MODE:
*result = (ARM_CPU(uc, mycpu)->env.thumb != 0);
return UC_ERR_OK;
default: