Skip to content

Commit

Permalink
AARCHXX: Remove redundant macro definition (#6253)
Browse files Browse the repository at this point in the history
`core/arch/arch.h:143` is duplicated with `core/arch/arch.h:188`, the
definition is identical, which is allowed by C. But it will become
different when line 188 adds support for RISC-V, this PR pre-removes the
duplicate definition to avoid this issue.
  • Loading branch information
ksco committed Aug 13, 2023
1 parent 5bf1c14 commit 2b55f8b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/arch/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ mixed_mode_enabled(void)
# define R12_OFFSET ((MC_OFFS) + (offsetof(priv_mcontext_t, r12)))
# define R13_OFFSET ((MC_OFFS) + (offsetof(priv_mcontext_t, r13)))
# define R14_OFFSET ((MC_OFFS) + (offsetof(priv_mcontext_t, r14)))
# define XFLAGS_OFFSET ((MC_OFFS) + (offsetof(priv_mcontext_t, xflags)))
# define PC_OFFSET ((MC_OFFS) + (offsetof(priv_mcontext_t, pc)))
# define SCRATCH_REG0 DR_REG_R0
# define SCRATCH_REG1 DR_REG_R1
Expand Down

0 comments on commit 2b55f8b

Please sign in to comment.