@@ -572,7 +572,7 @@ uc_err uc_close(uc_engine *uc)
572
572
}
573
573
574
574
UNICORN_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 )
576
576
{
577
577
UC_INIT (uc );
578
578
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)
596
596
}
597
597
598
598
UNICORN_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 ,
600
600
int count )
601
601
{
602
602
UC_INIT (uc );
@@ -627,7 +627,7 @@ uc_err uc_reg_write_batch(uc_engine *uc, int *regs, void *const *vals,
627
627
}
628
628
629
629
UNICORN_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 ,
631
631
size_t * sizes , int count )
632
632
{
633
633
UC_INIT (uc );
@@ -651,8 +651,8 @@ uc_err uc_reg_read_batch2(uc_engine *uc, int *regs, void *const *vals,
651
651
}
652
652
653
653
UNICORN_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 )
656
656
{
657
657
UC_INIT (uc );
658
658
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,
2344
2344
}
2345
2345
2346
2346
UNICORN_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 )
2349
2349
{
2350
2350
reg_write_t reg_write = find_context_reg_rw (ctx -> arch , ctx -> mode ).write ;
2351
2351
void * env = ctx -> data ;
@@ -2367,7 +2367,7 @@ uc_err uc_context_reg_write_batch(uc_context *ctx, int *regs, void *const *vals,
2367
2367
}
2368
2368
2369
2369
UNICORN_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 ,
2371
2371
int count )
2372
2372
{
2373
2373
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,
2389
2389
}
2390
2390
2391
2391
UNICORN_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 ,
2393
2393
const void * const * vals , size_t * sizes ,
2394
2394
int count )
2395
2395
{
@@ -2412,8 +2412,8 @@ uc_err uc_context_reg_write_batch2(uc_context *ctx, int *regs,
2412
2412
}
2413
2413
2414
2414
UNICORN_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 )
2417
2417
{
2418
2418
reg_read_t reg_read = find_context_reg_rw (ctx -> arch , ctx -> mode ).read ;
2419
2419
void * env = ctx -> data ;
0 commit comments