arm7_9_restore_context() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDarm7_9_restore_context()

arm7_9_restore_context() function

Restore the processor context on an ARM7/9 target. The full processor context is analyzed to see if any of the registers are dirty on this end, but have a valid new value. If this is the case, the processor is changed to the appropriate mode and the new register values are written out to the processor. If there happens to be a dirty register with an invalid value, an error will be logged.

Syntax

static int arm7_9_restore_context(struct target *target);

Arguments

target

Pointer to the ARM7/9 target to have its context restored

Return value

Error status if the target is not halted or the core mode in the armv4_5 struct is invalid.

References

LocationReferrerText
arm7_9_common.c:1497
static int arm7_9_restore_context(struct target *target)
arm7_9_common.c:1757arm7_9_resume()
retval = arm7_9_restore_context(target);
arm7_9_common.c:1803arm7_9_resume()
retval = arm7_9_restore_context(target);
arm7_9_common.c:1944arm7_9_step()
retval = arm7_9_restore_context(target);

Call Tree

Data read by arm7_9_restore_context()
Data written by arm7_9_restore_context()
arm7_9_restore_context()::arm7_9
arm7_9_restore_context()::arm
arm7_9_restore_context()::reg
arm7_9_restore_context()::current_mode
arm7_9_restore_context()::i
arm7_9_restore_context()::j
arm7_9_restore_context()::dirty
arm7_9_restore_context()::mode_change
arm7_9_restore_context()::reg_arch_info
arm7_9_restore_context()::mask
arm7_9_restore_context()::regs
arm7_9_restore_context()::tmp_cpsr
all items filtered out
arm7_9_restore_context()
arm7_9_restore_context()::reg
arm7_9_restore_context()::current_mode
arm7_9_restore_context()::i
arm7_9_restore_context()::j
arm7_9_restore_context()::dirty
arm7_9_restore_context()::mode_change
arm7_9_restore_context()::reg_arch_info
arm7_9_restore_context()::mask
arm7_9_restore_context()::tmp_cpsr
all items filtered out
Type of arm7_9_restore_context()
arm7_9_restore_context()
uint32_t
all items filtered out