radare2/libr/vm/mmu.c
pancake 675b04e7cd * Integrate r_vm into r_core
- 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
2010-08-22 17:56:50 +02:00

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;
}