4.3.3. Model finalization

The BEGIN_EXIT() and END_EXIT() macros form the start and finish of the finalization function for the model. The finalization function is called when ARMulator is closing down.

The following local variable is provided in the finalization function:

YourModelState *state

Your model must de-install any callbacks in the finalization function.

The END_EXIT() macro frees memory allocated for state.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential