@@ -380,7 +380,7 @@ static const char* x86_get_reg_name(RDReg reg, RDProcessor* p) {
380380static void x86_register_processor (RDProcessorPlugin * plugin ,
381381 ZydisMachineMode mode , ZydisStackWidth width ,
382382 const char * id , const char * name ,
383- int addrsize , int intsize ) {
383+ int addrsize ) {
384384 X86UserData * ud = rd_alloc (sizeof (* ud ));
385385 ud -> mode = mode ;
386386 ud -> width = width ;
@@ -389,7 +389,6 @@ static void x86_register_processor(RDProcessorPlugin* plugin,
389389 plugin -> id = id ;
390390 plugin -> name = name ;
391391 plugin -> ptr_size = addrsize ;
392- plugin -> int_size = intsize ;
393392 plugin -> userdata = ud ;
394393 plugin -> decode = x86_decode ;
395394 plugin -> encode = x86_encode ;
@@ -418,19 +417,19 @@ static RDProcessorPlugin x86_64 = {0};
418417void rd_plugin_create (void ) {
419418 x86_register_processor (& x86_16_real , ZYDIS_MACHINE_MODE_REAL_16 ,
420419 ZYDIS_STACK_WIDTH_16 , "x86_16_real" , "X86_16 (Real)" ,
421- sizeof (u16 ), sizeof ( u16 ) );
420+ sizeof (u16 ));
422421
423422 x86_register_processor (& x86_16 , ZYDIS_MACHINE_MODE_LEGACY_16 ,
424423 ZYDIS_STACK_WIDTH_16 , "x86_16" , "X86_16 (Protected)" ,
425- sizeof (u16 ), sizeof ( u16 ) );
424+ sizeof (u16 ));
426425
427426 x86_register_processor (& x86_32 , ZYDIS_MACHINE_MODE_LEGACY_32 ,
428427 ZYDIS_STACK_WIDTH_32 , "x86_32" , "X86_32" ,
429- sizeof (u32 ), sizeof ( u32 ) );
428+ sizeof (u32 ));
430429
431430 x86_register_processor (& x86_64 , ZYDIS_MACHINE_MODE_LONG_64 ,
432431 ZYDIS_STACK_WIDTH_64 , "x86_64" , "X86_64" ,
433- sizeof (u64 ), sizeof ( u64 ) );
432+ sizeof (u64 ));
434433}
435434
436435void rd_plugin_destroy (void ) {
0 commit comments