4.7.6. armul_MemAccess2

This function is required for ARM8 models.

Syntax

int armul_MemAccess2(void *handle, ARMword address, ARMword *data,
                      ARMul_acc access_type)

where:

handle

is the value of interf->handle set in MemInit.

address

is the value on the address bus.

data

is a pointer to the data for the memory access. See Data for reads and writes for details.

access_type

encodes the type of cycle. On some processors, for example, cached processors, some of the signals are not valid. See Macros for access types for details of the macros for determining access type.

Return

The function returns:

1

Indicates successful completion of the cycle.

0

Tells the processor to busy-wait and try the access again next cycle.

–1

Signals an abort.

2

Signals successful return of a single word of a doubleword load. To load the second word, the caller increments address by 4 and issues a single word load.

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0207D
Non-Confidential