file perms

This commit is contained in:
Chris Eagle 2016-02-04 16:48:27 -08:00
parent e59382e030
commit 59f7bf3be7
4 changed files with 8 additions and 4 deletions

0
include/unicorn/x86.h Executable file → Normal file
View File

0
qemu/target-i386/cpu.h Executable file → Normal file
View File

0
qemu/target-i386/unicorn.c Executable file → Normal file
View File

12
tests/unit/test_gdt_idt_x86.c Executable file → Normal file
View File

@ -91,11 +91,15 @@ static void test_idt_gdt_i386(/*void **state*/)
uc_assert_success(err);
err = uc_reg_write(uc, UC_X86_REG_GDTR, &gdt);
uc_assert_success(err);
err = uc_reg_write(uc, UC_X86_REG_LDTR, &ldt);
uc_assert_success(err);
err = uc_reg_write(uc, UC_X86_REG_TR, &tr);
uc_assert_success(err);
idt.base = 0;
idt.limit = 0;
gdt.base = 0;
gdt.limit = 0;
memset(&idt, 0, sizeof(idt));
memset(&gdt, 0, sizeof(gdt));
memset(&ldt, 0, sizeof(ldt));
memset(&tr, 0, sizeof(tr));
// emulate machine code in infinite time
err = uc_emu_start(uc, address, address+sizeof(code)-1, 0, 0);