Browse Source

target: no implicit #includes of "register.h"

Same deal:  "register.h" got needlessly included all over the
place because of being in a few widely included headers.

So take it out of the header files which included it, and put
it in files which use it ... reduce needless interdependencies.

Also, don't need that extra "types.h" inclusion.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
tags/v0.4.0-rc1
David Brownell 14 years ago
parent
commit
8193f17c3a
27 changed files with 21 additions and 10 deletions
  1. +1
    -0
      src/target/arm11.c
  2. +1
    -0
      src/target/arm720t.c
  3. +1
    -0
      src/target/arm7_9_common.c
  4. +1
    -0
      src/target/arm7tdmi.c
  5. +1
    -0
      src/target/arm920t.c
  6. +1
    -0
      src/target/arm926ejs.c
  7. +1
    -0
      src/target/arm9tdmi.c
  8. +0
    -1
      src/target/arm_adi_v5.h
  9. +1
    -0
      src/target/arm_simulator.c
  10. +1
    -0
      src/target/armv4_5.c
  11. +0
    -1
      src/target/armv4_5.h
  12. +0
    -1
      src/target/armv7a.h
  13. +1
    -0
      src/target/armv7m.c
  14. +1
    -2
      src/target/cortex_a8.c
  15. +0
    -1
      src/target/cortex_a8.h
  16. +1
    -0
      src/target/cortex_m3.c
  17. +0
    -1
      src/target/cortex_m3.h
  18. +1
    -0
      src/target/embeddedice.c
  19. +1
    -0
      src/target/etb.c
  20. +1
    -0
      src/target/etm.c
  21. +2
    -0
      src/target/feroceon.c
  22. +1
    -0
      src/target/mips32.c
  23. +0
    -1
      src/target/mips32.h
  24. +1
    -0
      src/target/mips_m4k.c
  25. +1
    -0
      src/target/register.c
  26. +0
    -2
      src/target/register.h
  27. +1
    -0
      src/target/xscale.c

+ 1
- 0
src/target/arm11.c View File

@@ -34,6 +34,7 @@
#include "time_support.h"
#include "target_type.h"
#include "algorithm.h"
#include "register.h"


#if 0


+ 1
- 0
src/target/arm720t.c View File

@@ -27,6 +27,7 @@
#include "arm720t.h"
#include "time_support.h"
#include "target_type.h"
#include "register.h"


/*


+ 1
- 0
src/target/arm7_9_common.c View File

@@ -37,6 +37,7 @@
#include "time_support.h"
#include "arm_simulator.h"
#include "algorithm.h"
#include "register.h"


/**


+ 1
- 0
src/target/arm7tdmi.c View File

@@ -29,6 +29,7 @@

#include "arm7tdmi.h"
#include "target_type.h"
#include "register.h"


/*


+ 1
- 0
src/target/arm920t.c View File

@@ -24,6 +24,7 @@
#include "arm920t.h"
#include "time_support.h"
#include "target_type.h"
#include "register.h"


/*


+ 1
- 0
src/target/arm926ejs.c View File

@@ -27,6 +27,7 @@
#include "arm926ejs.h"
#include "time_support.h"
#include "target_type.h"
#include "register.h"


/*


+ 1
- 0
src/target/arm9tdmi.c View File

@@ -29,6 +29,7 @@

#include "arm9tdmi.h"
#include "target_type.h"
#include "register.h"


/*


+ 0
- 1
src/target/arm_adi_v5.h View File

@@ -24,7 +24,6 @@
#define ARM_ADI_V5_H

#include "target.h"
#include "register.h"
#include "arm_jtag.h"

#define DAP_IR_DPACC 0xA


+ 1
- 0
src/target/arm_simulator.c View File

@@ -28,6 +28,7 @@
#include "arm_disassembler.h"
#include "arm_simulator.h"
#include "binarybuffer.h"
#include "register.h"


static uint32_t arm_shift(uint8_t shift, uint32_t Rm,


+ 1
- 0
src/target/armv4_5.c View File

@@ -32,6 +32,7 @@
#include "arm_disassembler.h"
#include "binarybuffer.h"
#include "algorithm.h"
#include "register.h"


char* armv4_5_core_reg_list[] =


+ 0
- 1
src/target/armv4_5.h View File

@@ -26,7 +26,6 @@
#ifndef ARMV4_5_H
#define ARMV4_5_H

#include "register.h"
#include "target.h"
#include "etm.h"



+ 0
- 1
src/target/armv7a.h View File

@@ -19,7 +19,6 @@
#ifndef ARMV7A_H
#define ARMV7A_H

#include "register.h"
#include "target.h"
#include "arm_adi_v5.h"
#include "armv4_5.h"


+ 1
- 0
src/target/armv7m.c View File

@@ -37,6 +37,7 @@
#include "breakpoints.h"
#include "armv7m.h"
#include "algorithm.h"
#include "register.h"

#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))



+ 1
- 2
src/target/cortex_a8.c View File

@@ -35,9 +35,8 @@

#include "breakpoints.h"
#include "cortex_a8.h"
#include "armv7a.h"
#include "armv4_5.h"
#include "register.h"
#include "target_request.h"
#include "target_type.h"



+ 0
- 1
src/target/cortex_a8.h View File

@@ -29,7 +29,6 @@
#ifndef CORTEX_A8_H
#define CORTEX_A8_H

#include "register.h"
#include "target.h"
#include "armv7a.h"



+ 1
- 0
src/target/cortex_m3.c View File

@@ -36,6 +36,7 @@
#include "target_request.h"
#include "target_type.h"
#include "arm_disassembler.h"
#include "register.h"


/* NOTE: most of this should work fine for the Cortex-M1 and


+ 0
- 1
src/target/cortex_m3.h View File

@@ -26,7 +26,6 @@
#ifndef CORTEX_M3_H
#define CORTEX_M3_H

#include "register.h"
#include "target.h"
#include "armv7m.h"



+ 1
- 0
src/target/embeddedice.c View File

@@ -28,6 +28,7 @@
#endif

#include "embeddedice.h"
#include "register.h"

#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))



+ 1
- 0
src/target/etb.c View File

@@ -23,6 +23,7 @@

#include "armv4_5.h"
#include "etb.h"
#include "register.h"


static char* etb_reg_list[] =


+ 1
- 0
src/target/etm.c View File

@@ -25,6 +25,7 @@
#include "etb.h"
#include "image.h"
#include "arm_disassembler.h"
#include "register.h"


/*


+ 2
- 0
src/target/feroceon.c View File

@@ -55,6 +55,8 @@
#include "arm926ejs.h"
#include "arm966e.h"
#include "target_type.h"
#include "register.h"


int feroceon_assert_reset(struct target *target)
{


+ 1
- 0
src/target/mips32.c View File

@@ -27,6 +27,7 @@
#endif

#include "mips32.h"
#include "register.h"


char* mips32_core_reg_list[] =


+ 0
- 1
src/target/mips32.h View File

@@ -24,7 +24,6 @@
#define MIPS32_H

#include "target.h"
#include "register.h"
#include "mips32_pracc.h"




+ 1
- 0
src/target/mips_m4k.c View File

@@ -28,6 +28,7 @@
#include "mips_m4k.h"
#include "mips32_dmaacc.h"
#include "target_type.h"
#include "register.h"


/* cli handling */


+ 1
- 0
src/target/register.c View File

@@ -24,6 +24,7 @@
#include "config.h"
#endif

#include "types.h"
#include "register.h"
#include "log.h"



+ 0
- 2
src/target/register.h View File

@@ -23,8 +23,6 @@
#ifndef REGISTER_H
#define REGISTER_H

#include "types.h"

struct target;

struct reg


+ 1
- 0
src/target/xscale.c View File

@@ -34,6 +34,7 @@
#include "arm_simulator.h"
#include "arm_disassembler.h"
#include "time_support.h"
#include "register.h"
#include "image.h"




Loading…
Cancel
Save