diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 38178de7..c8315b83 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -118,8 +118,8 @@ typedef enum uc_mode { UC_MODE_ARM = 0, // ARM mode UC_MODE_THUMB = 1 << 4, // THUMB mode (including Thumb-2) // Depreciated, use UC_ARM_CPU_* with uc_ctl instead. - UC_MODE_MCLASS = 1 << 5, // ARM's Cortex-M series. - UC_MODE_V8 = 1 << 6, // ARMv8 A32 encodings for ARM + UC_MODE_MCLASS = 1 << 5, // ARM's Cortex-M series. + UC_MODE_V8 = 1 << 6, // ARMv8 A32 encodings for ARM UC_MODE_ARMBE8 = 1 << 10, // Big-endian data and Little-endian code. // Legacy support for UC1 only. diff --git a/tests/unit/test_x86.c b/tests/unit/test_x86.c index 9c1f4da3..76b9b159 100644 --- a/tests/unit/test_x86.c +++ b/tests/unit/test_x86.c @@ -1112,7 +1112,7 @@ static void test_x86_invalid_vex_l(void) uc_err err; /* vmovdqu ymm1, [rcx] */ - char code[] = { '\xC5', '\xFE', '\x6F', '\x09' }; + char code[] = {'\xC5', '\xFE', '\x6F', '\x09'}; /* initialize memory and run emulation */ OK(uc_open(UC_ARCH_X86, UC_MODE_64, &uc)); @@ -1120,7 +1120,8 @@ static void test_x86_invalid_vex_l(void) OK(uc_mem_write(uc, 0, code, sizeof(code) / sizeof(code[0]))); - uc_assert_err(UC_ERR_INSN_INVALID, uc_emu_start(uc, 0, sizeof(code) / sizeof(code[0]), 0, 0)); + uc_assert_err(UC_ERR_INSN_INVALID, + uc_emu_start(uc, 0, sizeof(code) / sizeof(code[0]), 0, 0)); OK(uc_close(uc)); } @@ -1162,5 +1163,5 @@ TEST_LIST = { test_x86_correct_address_in_small_jump_hook}, {"test_x86_correct_address_in_long_jump_hook", test_x86_correct_address_in_long_jump_hook}, - {"test_x86_invalid_vex_l", test_x86_invalid_vex_l}, + {"test_x86_invalid_vex_l", test_x86_invalid_vex_l}, {NULL, NULL}};