Hexagon: add v4 CS regs to core copyout macro

Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
This commit is contained in:
Richard Kuo 2013-04-09 17:06:08 -05:00
Родитель 5c883b462a
Коммит 426d29ccb2
1 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -104,6 +104,16 @@ typedef unsigned long elf_fpregset_t;
* Bypass the whole "regsets" thing for now and use the define. * Bypass the whole "regsets" thing for now and use the define.
*/ */
#if CONFIG_HEXAGON_ARCH_VERSION >= 4
#define CS_COPYREGS(DEST,REGS) \
do {\
DEST.cs0 = REGS->cs0;\
DEST.cs1 = REGS->cs1;\
} while (0)
#else
#define CS_COPYREGS(DEST,REGS)
#endif
#define ELF_CORE_COPY_REGS(DEST, REGS) \ #define ELF_CORE_COPY_REGS(DEST, REGS) \
do { \ do { \
DEST.r0 = REGS->r00; \ DEST.r0 = REGS->r00; \
@ -148,13 +158,12 @@ do { \
DEST.p3_0 = REGS->preds; \ DEST.p3_0 = REGS->preds; \
DEST.gp = REGS->gp; \ DEST.gp = REGS->gp; \
DEST.ugp = REGS->ugp; \ DEST.ugp = REGS->ugp; \
CS_COPYREGS(DEST,REGS); \
DEST.pc = pt_elr(REGS); \ DEST.pc = pt_elr(REGS); \
DEST.cause = pt_cause(REGS); \ DEST.cause = pt_cause(REGS); \
DEST.badva = pt_badva(REGS); \ DEST.badva = pt_badva(REGS); \
} while (0); } while (0);
/* /*
* This is used to ensure we don't load something for the wrong architecture. * This is used to ensure we don't load something for the wrong architecture.
* Checks the machine and ABI type. * Checks the machine and ABI type.