1.3.93 memory fill

Writes a specific pattern of bytes to memory.

Syntax

memory fill [<verify=flag>:]start_address {end_address | +offsetfill_size pattern

Where:

verify

Qualifies the address with a flag to specify whether the operation must perform a verify action or not. The values for flag are:

0

There is no need to verify whether the operation executed correctly.

1

The operation must verify whether it executed correctly. This is the default.

start_address

Specifies the start address for the region. This can be either an address or an expression that evaluates to an address.

For example:

memory fill EL1N<verify=0>:0x0 0xFFFFFFFF 4 0x12345678

If there is only one (anonymous) address space, then use:

memory fill <verify=0>:0x0 0xFFFFFFFF 4 0x12345678

end_address

Specifies the inclusive end address for the region. This can be either an address or an expression that evaluates to an address.

+offset

Specifies the length of the region in bytes.

fill_size

Specifies the size of the fill pattern in bytes.

pattern

Specifies an expression that defines the fill pattern. If the pattern does not fit exactly into the specified region, then the remaining bytes are filled with partial bytes from the pattern.

Example 1-96 Examples

memory fill 0x0 0xFFFFFFFF 4 0x12345678   # Fill 0x0 to 0xFFFFFFFF inclusive with int
                                          # value 0x12345678 using default access width
memory fill main (main+15) 1 (char)0x0    # Fill 16 bytes from symbol main with byte
                                          # value 0x0
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.