123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- typedef struct _vm vm;
- typedef struct _vm_data_map vm_data_map;
- typedef struct _vm_instruction_map vm_instruction_map;
- INLINE_VM\
- (vm *) vm_create
- (core *memory);
- INLINE_VM\
- (vm_data_map *) vm_create_data_map
- (vm *memory);
- INLINE_VM\
- (vm_instruction_map *) vm_create_instruction_map
- (vm *memory);
- INLINE_VM\
- (unsigned_word) vm_real_data_addr
- (vm_data_map *data_map,
- unsigned_word ea,
- int is_read,
- cpu *processor,
- unsigned_word cia);
- INLINE_VM\
- (unsigned_word) vm_real_instruction_addr
- (vm_instruction_map *instruction_map,
- cpu *processor,
- unsigned_word cia);
- INLINE_VM\
- (int) vm_data_map_read_buffer
- (vm_data_map *map,
- void *target,
- unsigned_word addr,
- unsigned len,
- cpu *processor,
- unsigned_word cia);
- INLINE_VM\
- (int) vm_data_map_write_buffer
- (vm_data_map *map,
- const void *source,
- unsigned_word addr,
- unsigned len,
- int violate_read_only_section,
- cpu *processor,
- unsigned_word cia);
- INLINE_VM\
- (instruction_word) vm_instruction_map_read
- (vm_instruction_map *instruction_map,
- cpu *processor,
- unsigned_word cia);
- INLINE_VM\
- (unsigned_
- (vm_data_map *map, \
- unsigned_word ea, \
- cpu *processor, \
- unsigned_word cia);
- DECLARE_VM_DATA_MAP_READ_N(1)
- DECLARE_VM_DATA_MAP_READ_N(2)
- DECLARE_VM_DATA_MAP_READ_N(4)
- DECLARE_VM_DATA_MAP_READ_N(8)
- DECLARE_VM_DATA_MAP_READ_N(word)
- INLINE_VM\
- (void) vm_data_map_write_
- (vm_data_map *map, \
- unsigned_word addr, \
- unsigned_
- cpu *processor, \
- unsigned_word cia);
- DECLARE_VM_DATA_MAP_WRITE_N(1)
- DECLARE_VM_DATA_MAP_WRITE_N(2)
- DECLARE_VM_DATA_MAP_WRITE_N(4)
- DECLARE_VM_DATA_MAP_WRITE_N(8)
- DECLARE_VM_DATA_MAP_WRITE_N(word)
- INLINE_VM\
- (void) vm_synchronize_context
- (vm *memory,
- spreg *sprs,
- sreg *srs,
- msreg msr,
-
- cpu *processor,
- unsigned_word cia);
- INLINE_VM\
- (void) vm_page_tlb_invalidate_entry
- (vm *memory,
- unsigned_word ea);
- INLINE_VM\
- (void) vm_page_tlb_invalidate_all
- (vm *memory);
|