sim: drop extern C linkage from most sim interface headers
Since these headers merely have enum's, drop the extern C linkage markings. Helps to reduce the copy & paste spam.
This commit is contained in:
parent
d8bd95efd8
commit
c4d4ed4083
|
@ -1,3 +1,9 @@
|
|||
2015-11-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-arm.h: Delete __cplusplus checks and extern "C" linkage.
|
||||
* sim-cr16.h, sim-d10v.h, sim-frv.h, sim-h8300.h, sim-lm32.h,
|
||||
sim-sh.h: Likewise.
|
||||
|
||||
2015-11-10 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-cr16.h (sim_cr16_translate_dmap_addr): Delete.
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
#if !defined (SIM_ARM_H)
|
||||
#define SIM_ARM_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { // }
|
||||
#endif
|
||||
|
||||
enum sim_arm_regs
|
||||
{
|
||||
SIM_ARM_R0_REGNUM,
|
||||
|
@ -105,8 +101,4 @@ enum sim_arm_regs
|
|||
SIM_ARM_IWMMXT_COP1R15_REGNUM
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,10 +20,6 @@
|
|||
#if !defined (SIM_CR16_H)
|
||||
#define SIM_CR16_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { // }
|
||||
#endif
|
||||
|
||||
enum
|
||||
{
|
||||
SIM_CR16_MEMORY_UNIFIED = 0x00000000,
|
||||
|
@ -76,8 +72,4 @@ enum
|
|||
SIM_CR16_NR_CR_REGS = 11
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,10 +20,6 @@
|
|||
#if !defined (SIM_D10V_H)
|
||||
#define SIM_D10V_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { // }
|
||||
#endif
|
||||
|
||||
/* GDB interprets addresses as:
|
||||
|
||||
0x00xxxxxx: Physical unified memory segment (Unified memory)
|
||||
|
@ -111,8 +107,4 @@ enum
|
|||
SIM_D10V_NR_CR_REGS = 16
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
#if !defined (SIM_FRV_H)
|
||||
#define SIM_FRV_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { // }
|
||||
#endif
|
||||
|
||||
enum sim_frv_regs
|
||||
{
|
||||
SIM_FRV_GR0_REGNUM = 0,
|
||||
|
@ -44,8 +40,4 @@ enum sim_frv_regs
|
|||
SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
#if !defined (SIM_H8300_H)
|
||||
#define SIM_H8300_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { //}
|
||||
#endif
|
||||
|
||||
/* The simulator makes use of the following register information. */
|
||||
|
||||
enum sim_h8300_regs
|
||||
|
@ -70,8 +66,4 @@ extern "C" { //}
|
|||
SIM_H8300_NUM_REGS = 16
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SIM_H8300_H */
|
||||
|
|
|
@ -21,10 +21,6 @@
|
|||
#ifndef SIM_LM32_H
|
||||
#define SIM_LM32_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { // }
|
||||
#endif
|
||||
|
||||
enum sim_lm32_regs
|
||||
{
|
||||
SIM_LM32_R0_REGNUM,
|
||||
|
@ -69,8 +65,4 @@ enum sim_lm32_regs
|
|||
SIM_LM32_NUM_REGS
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
#if !defined (SIM_SH_H)
|
||||
#define SIM_SH_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" { // }
|
||||
#endif
|
||||
|
||||
/* The simulator makes use of the following register information. */
|
||||
|
||||
enum
|
||||
|
@ -162,8 +158,4 @@ enum
|
|||
SIM_SH64_NR_FP_REGS = 64 /* number of floating point registers */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue