1 #include "cpu.h"
2 #include "exec/exec-all.h"
3 #include "qemu/host-utils.h"
4
io_mem_read(int io_index,hwaddr addr,unsigned size)5 uint64_t io_mem_read(int io_index, hwaddr addr, unsigned size)
6 {
7 return _io_mem_read[io_index][ctzl(size)](io_mem_opaque[io_index],
8 addr);
9 }
10
io_mem_write(int io_index,hwaddr addr,uint64_t val,unsigned size)11 void io_mem_write(int io_index, hwaddr addr,
12 uint64_t val, unsigned size)
13 {
14 _io_mem_write[io_index][ctzl(size)](io_mem_opaque[io_index],
15 addr, val);
16 }
17