Skip to content

Commit

Permalink
target/cortexa: fix binary constant pedantic warning
Browse files Browse the repository at this point in the history
binary constants are a GCC extension
  • Loading branch information
perigoso authored and rg-silva committed Aug 21, 2023
1 parent e5c5de9 commit 37e7ca9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/target/cortexa.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@ typedef struct cortexa_priv {
#define DBGBCR_BAS_LOW_HW (0x3U << 5U)
#define DBGBCR_BAS_HIGH_HW (0xcU << 5U)
#define DBGBCR_EN (1U << 0U)
#define DBGBCR_PMC_ANY (0b11U << 1U)
#define DBGBCR_PMC_ANY (0x3U << 1U) /* 0b11 */

#define DBGWVR(i) (96U + (i))
#define DBGWCR(i) (112U + (i))
#define DBGWCR_LSC_LOAD (0b01U << 3U)
#define DBGWCR_LSC_STORE (0b10U << 3U)
#define DBGWCR_LSC_ANY (0b11U << 3U)
#define DBGWCR_BAS_BYTE (0b0001U << 5U)
#define DBGWCR_BAS_HALFWORD (0b0011U << 5U)
#define DBGWCR_BAS_WORD (0b1111U << 5U)
#define DBGWCR_PAC_ANY (0b11U << 1U)
#define DBGWCR_LSC_LOAD (0x1U << 3U) /* 0b01 */
#define DBGWCR_LSC_STORE (0x2U << 3U) /* 0b10 */
#define DBGWCR_LSC_ANY (0x3U << 3U) /* 0b11U */
#define DBGWCR_BAS_BYTE (0x1U << 5U) /* 0b0001U */
#define DBGWCR_BAS_HALFWORD (0x3U << 5U) /* 0b0011U */
#define DBGWCR_BAS_WORD (0xfU << 5U) /* 0b1111U */
#define DBGWCR_PAC_ANY (0x3U << 1U) /* 0b11U */
#define DBGWCR_EN (1U << 0U)

/* Instruction encodings for accessing the coprocessor interface */
Expand Down

0 comments on commit 37e7ca9

Please sign in to comment.