Datasheet
ARMulator Reference
4-38 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
4.8 Memory access functions
The memory system can be probed by a peripheral model using a set of functions for
reading and writing memory. These functions access memory without inserting cycles
on the bus. If your model inserts cycles on the bus, it must install itself as a memory
model, possibly between the core and the real memory model.
NoteNote
It is not possible to tell if these calls result in a data abort.
4.8.1 Reading from a given address
The following functions return the word, halfword, or byte at the specified address.
Each function accesses the memory without inserting cycles on the bus.
Syntax
ARMword ARMulif_ReadWord(RDIModuleDesc *mdesc, ARMword address)
ARMword ARMulif_ReadHalfword(RDIModuleDesc *mdesc, ARMword address)
ARMword ARMulif_ReadByte(RDIModuleDesc *mdesc, ARMword address)
where:
mdesc
is the handle for the core.
address
is the address in simulated memory from which the word, halfword, or
byte is to be read.
Return
The functions return the word, halfword, or byte, as appropriate.