ARM: use <target/arm.h> not armv4_5.h

Move most declarations in <target/armv4_5.h> to <target/arm.h>
and update users.

What's left in the older file is stuff that I think should be
removed ... the old register cache access stuff, which makes it
awkward to support microcontroller profile (Cortex-M) cores.

The armv4_5_run_algorithm() declaration was moved too, even
though it's not yet as generic as it probably ought to be.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
David Brownell
2009-12-07 14:54:13 -08:00
parent 0529c14bfe
commit 0a1b7dcfc4
24 changed files with 231 additions and 200 deletions

View File

@@ -20,7 +20,7 @@
#define ARMV7A_H
#include <target/arm_adi_v5.h>
#include <target/armv4_5.h>
#include <target/arm.h>
#include <target/armv4_5_mmu.h>
#include <target/armv4_5_cache.h>
#include <target/arm_dpm.h>
@@ -114,22 +114,6 @@ target_to_armv7a(struct target *target)
/* See ARMv7a arch spec section C10.8 */
#define CPUDBG_AUTHSTATUS 0xFB8
struct armv7a_algorithm
{
int common_magic;
enum arm_mode core_mode;
enum arm_state core_state;
};
struct armv7a_core_reg
{
int num;
enum arm_mode mode;
struct target *target;
struct armv7a_common *armv7a_common;
};
int armv7a_arch_state(struct target *target);
struct reg_cache *armv7a_build_reg_cache(struct target *target,
struct armv7a_common *armv7a_common);