ARM11: switch to new "arm" base type
This will enable reusing many common ARM utilities, in particular the ETM and ETB support. The ARM11 support can still be much simplified after this patch, though. Note: none of those common utilities kick in yet... Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -23,9 +23,7 @@
|
||||
#ifndef ARM11_H
|
||||
#define ARM11_H
|
||||
|
||||
#include "target.h"
|
||||
#include "register.h"
|
||||
#include "jtag.h"
|
||||
#include "armv4_5.h"
|
||||
|
||||
#define asizeof(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
@@ -80,6 +78,7 @@ enum arm11_debug_version
|
||||
|
||||
struct arm11_common
|
||||
{
|
||||
struct arm arm;
|
||||
struct target * target; /**< Reference back to the owner */
|
||||
|
||||
/** \name Processor type detection */
|
||||
@@ -117,8 +116,15 @@ struct arm11_common
|
||||
|
||||
// GA
|
||||
struct reg_cache *core_cache;
|
||||
|
||||
struct arm_jtag jtag_info;
|
||||
};
|
||||
|
||||
static inline struct arm11_common *target_to_arm11(struct target *target)
|
||||
{
|
||||
return container_of(target->arch_info, struct arm11_common,
|
||||
arm);
|
||||
}
|
||||
|
||||
/**
|
||||
* ARM11 DBGTAP instructions
|
||||
|
||||
Reference in New Issue
Block a user