This commit is contained in:
lazymio 2021-11-04 18:39:52 +01:00
parent ebe1f83293
commit 3aa2788586
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 4 additions and 3 deletions

View File

@ -174,7 +174,8 @@ static void test_uc_ctl_change_page_size()
}
// Copy from test_arm.c but with new API.
static void test_uc_ctl_arm_cpu() {
static void test_uc_ctl_arm_cpu()
{
uc_engine *uc;
int r_control, r_msp, r_psp;
@ -214,5 +215,5 @@ TEST_LIST = {{"test_uc_ctl_mode", test_uc_ctl_mode},
{"test_uc_ctl_exits", test_uc_ctl_exits},
{"test_uc_ctl_tb_cache", test_uc_ctl_tb_cache},
{"test_uc_ctl_change_page_size", test_uc_ctl_change_page_size},
{"test_uc_ctl_arm_cpu", test_uc_ctl_arm_cpu},
{"test_uc_ctl_arm_cpu", test_uc_ctl_arm_cpu},
{NULL, NULL}};

2
uc.c
View File

@ -1969,7 +1969,7 @@ uc_err uc_ctl(uc_engine *uc, uc_control_type control, ...)
case UC_CTL_UC_PAGE_SIZE: {
if (rw == UC_CTL_IO_READ) {
UC_INIT(uc);
uint32_t *page_size = va_arg(args, uint32_t *);