mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 15:04:23 +00:00
675b04e7cd
- Analyze code in order to do syscall analysis - Some fixes in r_vm to make it work - Add 'av' command to interact with the virtual machine - added r_str_subchr helper func in r_util
16 lines
420 B
C
16 lines
420 B
C
/* radare - LGPL - Copyright 2008-2010 pancake<nopcode.org> */
|
|
|
|
#include "r_vm.h"
|
|
|
|
R_API int r_vm_mmu_read(RVm *vm, ut64 off, ut8 *data, int len) {
|
|
if (vm->iob.read_at)
|
|
return vm->iob.read_at (vm->iob.io, off, data, len);
|
|
return -1;
|
|
}
|
|
|
|
R_API int r_vm_mmu_write(RVm *vm, ut64 off, ut8 *data, int len) {
|
|
if (vm->use_mmu_cache && vm->iob.write_at)
|
|
return vm->iob.write_at (vm->iob.io, off, data, len);
|
|
return -1;
|
|
}
|