armv7m.h: relax dependency from 'arm_adi_v5.h'
The include file 'armv7m.h' includes 'arm_adi_v5.h' only to get the definition of 'struct adiv5_ap', but doesn't need the struct content. Reducing the cross dependencies speeds-up the compile time during code development by avoiding re-compiling file. Relax the dependency by locally declaring 'struct adiv5_ap' in 'armv7m.h' and remove the include of 'arm_adi_v5.h'. Fix the other files that have now lost the includes file that 'arm_adi_v5.h' depends from. Change-Id: Ic0d40b17db6045fa43f348bda83eaf211a6b347d Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6468 Tested-by: jenkins Reviewed-by: Daniel Goehring <dgoehrin@os.amperecomputing.com> Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
#include "algorithm.h"
|
||||
#include "register.h"
|
||||
#include "semihosting_common.h"
|
||||
#include <helper/log.h>
|
||||
#include <helper/binarybuffer.h>
|
||||
|
||||
#if 0
|
||||
#define _DEBUG_INSTRUCTION_EXECUTION_
|
||||
|
||||
@@ -25,10 +25,11 @@
|
||||
#ifndef OPENOCD_TARGET_ARMV7M_H
|
||||
#define OPENOCD_TARGET_ARMV7M_H
|
||||
|
||||
#include "arm_adi_v5.h"
|
||||
#include "arm.h"
|
||||
#include "armv7m_trace.h"
|
||||
|
||||
struct adiv5_ap;
|
||||
|
||||
extern const int armv7m_psp_reg_map[];
|
||||
extern const int armv7m_msp_reg_map[];
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "cortex_m.h"
|
||||
#include "target_request.h"
|
||||
#include "target_type.h"
|
||||
#include "arm_adi_v5.h"
|
||||
#include "arm_disassembler.h"
|
||||
#include "register.h"
|
||||
#include "arm_opcodes.h"
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "target_type.h"
|
||||
#include "armv7m.h"
|
||||
#include "cortex_m.h"
|
||||
#include "arm_adi_v5.h"
|
||||
#include "arm_semihosting.h"
|
||||
#include "target_request.h"
|
||||
#include <rtt/rtt.h>
|
||||
|
||||
Reference in New Issue
Block a user