@@ -572,7 +572,7 @@ uc_err uc_close(uc_engine *uc)
572572}
573573
574574UNICORN_EXPORT
575- uc_err uc_reg_read_batch (uc_engine * uc , int * regs , void * * vals , int count )
575+ uc_err uc_reg_read_batch (uc_engine * uc , int const * regs , void * * vals , int count )
576576{
577577 UC_INIT (uc );
578578 reg_read_t reg_read = uc -> reg_read ;
@@ -596,7 +596,7 @@ uc_err uc_reg_read_batch(uc_engine *uc, int *regs, void **vals, int count)
596596}
597597
598598UNICORN_EXPORT
599- uc_err uc_reg_write_batch (uc_engine * uc , int * regs , void * const * vals ,
599+ uc_err uc_reg_write_batch (uc_engine * uc , int const * regs , void * const * vals ,
600600 int count )
601601{
602602 UC_INIT (uc );
@@ -627,7 +627,7 @@ uc_err uc_reg_write_batch(uc_engine *uc, int *regs, void *const *vals,
627627}
628628
629629UNICORN_EXPORT
630- uc_err uc_reg_read_batch2 (uc_engine * uc , int * regs , void * const * vals ,
630+ uc_err uc_reg_read_batch2 (uc_engine * uc , int const * regs , void * const * vals ,
631631 size_t * sizes , int count )
632632{
633633 UC_INIT (uc );
@@ -651,8 +651,8 @@ uc_err uc_reg_read_batch2(uc_engine *uc, int *regs, void *const *vals,
651651}
652652
653653UNICORN_EXPORT
654- uc_err uc_reg_write_batch2 (uc_engine * uc , int * regs , const void * const * vals ,
655- size_t * sizes , int count )
654+ uc_err uc_reg_write_batch2 (uc_engine * uc , int const * regs ,
655+ const void * const * vals , size_t * sizes , int count )
656656{
657657 UC_INIT (uc );
658658 reg_write_t reg_write = uc -> reg_write ;
@@ -2344,8 +2344,8 @@ uc_err uc_context_reg_read2(uc_context *ctx, int regid, void *value,
23442344}
23452345
23462346UNICORN_EXPORT
2347- uc_err uc_context_reg_write_batch (uc_context * ctx , int * regs , void * const * vals ,
2348- int count )
2347+ uc_err uc_context_reg_write_batch (uc_context * ctx , int const * regs ,
2348+ void * const * vals , int count )
23492349{
23502350 reg_write_t reg_write = find_context_reg_rw (ctx -> arch , ctx -> mode ).write ;
23512351 void * env = ctx -> data ;
@@ -2367,7 +2367,7 @@ uc_err uc_context_reg_write_batch(uc_context *ctx, int *regs, void *const *vals,
23672367}
23682368
23692369UNICORN_EXPORT
2370- uc_err uc_context_reg_read_batch (uc_context * ctx , int * regs , void * * vals ,
2370+ uc_err uc_context_reg_read_batch (uc_context * ctx , int const * regs , void * * vals ,
23712371 int count )
23722372{
23732373 reg_read_t reg_read = find_context_reg_rw (ctx -> arch , ctx -> mode ).read ;
@@ -2389,7 +2389,7 @@ uc_err uc_context_reg_read_batch(uc_context *ctx, int *regs, void **vals,
23892389}
23902390
23912391UNICORN_EXPORT
2392- uc_err uc_context_reg_write_batch2 (uc_context * ctx , int * regs ,
2392+ uc_err uc_context_reg_write_batch2 (uc_context * ctx , int const * regs ,
23932393 const void * const * vals , size_t * sizes ,
23942394 int count )
23952395{
@@ -2412,8 +2412,8 @@ uc_err uc_context_reg_write_batch2(uc_context *ctx, int *regs,
24122412}
24132413
24142414UNICORN_EXPORT
2415- uc_err uc_context_reg_read_batch2 (uc_context * ctx , int * regs , void * const * vals ,
2416- size_t * sizes , int count )
2415+ uc_err uc_context_reg_read_batch2 (uc_context * ctx , int const * regs ,
2416+ void * const * vals , size_t * sizes , int count )
24172417{
24182418 reg_read_t reg_read = find_context_reg_rw (ctx -> arch , ctx -> mode ).read ;
24192419 void * env = ctx -> data ;
0 commit comments