A.8.31 CADI::CADICacheWrite()

This function performs a cache write.

virtual CADIReturn_t CADI::CADICacheWrite(CADIAddr_t addr, 
                                          uint32_t linesToWrite,
                                          const uint8_t *data,
                                          const uint8_t *tags, 
                                          const bool *is_dirty,
                                          const bool *is_valid,
                                          uint32_t *numLinesWritten,
                                          bool doSideEffects) = 0;
addr
is the address to be written, including the memory space ID.
linesToWrite
is the number of cache lines to write.
data
is a byte array of size (cache_lines *line_size). The array is encoded in little endian format.
tags
is a byte array of size (cache_lines *tagsbits/8).
is_dirty
is status (one per line).
is_valid
is status (one per line).
numLinesWritten
is the number of cache lines actually written.
doSideEffects
If set to true, this parameter informs the target that it must perform side effects such as, for example, selecting write through on a write access. If it is set to false, the target must decide when to ignore this parameter. For some cases it is not possible to access cache without side effects.
Non-ConfidentialPDF file icon PDF versionARM DUI0842F
Copyright © 2014, 2015 ARM. All rights reserved.