ARM: add "core_type" field to "struct arm"
It's used to flag cores with the "TrustZone" extension, and is used in subsequent patches to set up support for the registers shadowed by its new secure monitor mode. The ARM1176 and Cortex-A8 both support this new mode. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -1015,5 +1015,8 @@ int armv4_5_init_arch_info(struct target *target, struct arm *armv4_5)
|
||||
armv4_5->core_state = ARMV4_5_STATE_ARM;
|
||||
armv4_5->core_mode = ARMV4_5_MODE_USR;
|
||||
|
||||
/* core_type may be overridden by subtype logic */
|
||||
armv4_5->core_type = ARMV4_5_MODE_ANY;
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user