crt1.S: Remove SH5 support.
libgcc/ * config/sh/crt1.S: Remove SH5 support. * config/sh/crti.S: Likewise. * config/sh/crtn.S: Likewise. * config/sh/lib1funcs-4-300.S: Likewise. * config/sh/lib1funcs-Os-4-200.S: Likewise. * config/sh/lib1funcs.S: Likewise. * config/sh/linux-unwind.h: Likewise. * config/sh/t-sh64: Delete. From-SVN: r235640
This commit is contained in:
parent
cca535a4c1
commit
9129c8cfcd
9 changed files with 19 additions and 2572 deletions
|
@ -1,3 +1,14 @@
|
|||
2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
|
||||
|
||||
* config/sh/crt1.S: Remove SH5 support.
|
||||
* config/sh/crti.S: Likewise.
|
||||
* config/sh/crtn.S: Likewise.
|
||||
* config/sh/lib1funcs-4-300.S: Likewise.
|
||||
* config/sh/lib1funcs-Os-4-200.S: Likewise.
|
||||
* config/sh/lib1funcs.S: Likewise.
|
||||
* config/sh/linux-unwind.h: Likewise.
|
||||
* config/sh/t-sh64: Delete.
|
||||
|
||||
2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
|
||||
|
||||
* config/arc/ieee-754/eqdf2.S: Handle FPX NaN.
|
||||
|
|
|
@ -38,648 +38,6 @@ __timer_stack:
|
|||
/* ;----------------------------------------
|
||||
Normal newlib crt1.S */
|
||||
|
||||
#ifdef __SH5__
|
||||
.section .data,"aw"
|
||||
.global ___data
|
||||
___data:
|
||||
|
||||
.section .rodata,"a"
|
||||
.global ___rodata
|
||||
___rodata:
|
||||
|
||||
#define ICCR_BASE 0x01600000
|
||||
#define OCCR_BASE 0x01e00000
|
||||
#define MMUIR_BASE 0x00000000
|
||||
#define MMUDR_BASE 0x00800000
|
||||
|
||||
#define PTE_ENABLED 1
|
||||
#define PTE_DISABLED 0
|
||||
|
||||
#define PTE_SHARED (1 << 1)
|
||||
#define PTE_NOT_SHARED 0
|
||||
|
||||
#define PTE_CB_UNCACHEABLE 0
|
||||
#define PTE_CB_DEVICE 1
|
||||
#define PTE_CB_CACHEABLE_WB 2
|
||||
#define PTE_CB_CACHEABLE_WT 3
|
||||
|
||||
#define PTE_SZ_4KB (0 << 3)
|
||||
#define PTE_SZ_64KB (1 << 3)
|
||||
#define PTE_SZ_1MB (2 << 3)
|
||||
#define PTE_SZ_512MB (3 << 3)
|
||||
|
||||
#define PTE_PRR (1 << 6)
|
||||
#define PTE_PRX (1 << 7)
|
||||
#define PTE_PRW (1 << 8)
|
||||
#define PTE_PRU (1 << 9)
|
||||
|
||||
#define SR_MMU_BIT 31
|
||||
#define SR_BL_BIT 28
|
||||
|
||||
#define ALIGN_4KB (0xfff)
|
||||
#define ALIGN_1MB (0xfffff)
|
||||
#define ALIGN_512MB (0x1fffffff)
|
||||
|
||||
#define DYNACON_BASE 0x0f000000
|
||||
#define DM_CB_DLINK_BASE 0x0c000000
|
||||
#define DM_DB_DLINK_BASE 0x0b000000
|
||||
|
||||
#define FEMI_AREA_0 0x00000000
|
||||
#define FEMI_AREA_1 0x04000000
|
||||
#define FEMI_AREA_2 0x05000000
|
||||
#define FEMI_AREA_3 0x06000000
|
||||
#define FEMI_AREA_4 0x07000000
|
||||
#define FEMI_CB 0x08000000
|
||||
|
||||
#define EMI_BASE 0X80000000
|
||||
|
||||
#define DMA_BASE 0X0e000000
|
||||
|
||||
#define CPU_BASE 0X0d000000
|
||||
|
||||
#define PERIPH_BASE 0X09000000
|
||||
#define DMAC_BASE 0x0e000000
|
||||
#define INTC_BASE 0x0a000000
|
||||
#define CPRC_BASE 0x0a010000
|
||||
#define TMU_BASE 0x0a020000
|
||||
#define SCIF_BASE 0x0a030000
|
||||
#define RTC_BASE 0x0a040000
|
||||
|
||||
|
||||
|
||||
#define LOAD_CONST32(val, reg) \
|
||||
movi ((val) >> 16) & 65535, reg; \
|
||||
shori (val) & 65535, reg
|
||||
|
||||
#define LOAD_PTEH_VAL(sym, align, bits, scratch_reg, reg) \
|
||||
LOAD_ADDR (sym, reg); \
|
||||
LOAD_CONST32 ((align), scratch_reg); \
|
||||
andc reg, scratch_reg, reg; \
|
||||
LOAD_CONST32 ((bits), scratch_reg); \
|
||||
or reg, scratch_reg, reg
|
||||
|
||||
#define LOAD_PTEL_VAL(sym, align, bits, scratch_reg, reg) \
|
||||
LOAD_ADDR (sym, reg); \
|
||||
LOAD_CONST32 ((align), scratch_reg); \
|
||||
andc reg, scratch_reg, reg; \
|
||||
LOAD_CONST32 ((bits), scratch_reg); \
|
||||
or reg, scratch_reg, reg
|
||||
|
||||
#define SET_PTE(pte_addr_reg, pteh_val_reg, ptel_val_reg) \
|
||||
putcfg pte_addr_reg, 0, r63; \
|
||||
putcfg pte_addr_reg, 1, ptel_val_reg; \
|
||||
putcfg pte_addr_reg, 0, pteh_val_reg
|
||||
|
||||
#if __SH5__ == 64
|
||||
.section .text,"ax"
|
||||
#define LOAD_ADDR(sym, reg) \
|
||||
movi (sym >> 48) & 65535, reg; \
|
||||
shori (sym >> 32) & 65535, reg; \
|
||||
shori (sym >> 16) & 65535, reg; \
|
||||
shori sym & 65535, reg
|
||||
#else
|
||||
.mode SHmedia
|
||||
.section .text..SHmedia32,"ax"
|
||||
#define LOAD_ADDR(sym, reg) \
|
||||
movi (sym >> 16) & 65535, reg; \
|
||||
shori sym & 65535, reg
|
||||
#endif
|
||||
.global start
|
||||
start:
|
||||
LOAD_ADDR (_stack, r15)
|
||||
|
||||
#ifdef MMU_SUPPORT
|
||||
! Set up the VM using the MMU and caches
|
||||
|
||||
! .vm_ep is first instruction to execute
|
||||
! after VM initialization
|
||||
pt/l .vm_ep, tr1
|
||||
|
||||
! Configure instruction cache (ICCR)
|
||||
movi 3, r2
|
||||
movi 0, r3
|
||||
LOAD_ADDR (ICCR_BASE, r1)
|
||||
putcfg r1, 0, r2
|
||||
putcfg r1, 1, r3
|
||||
|
||||
! movi 7, r2 ! write through
|
||||
! Configure operand cache (OCCR)
|
||||
LOAD_ADDR (OCCR_BASE, r1)
|
||||
putcfg r1, 0, r2
|
||||
putcfg r1, 1, r3
|
||||
|
||||
! Disable all PTE translations
|
||||
LOAD_ADDR (MMUIR_BASE, r1)
|
||||
LOAD_ADDR (MMUDR_BASE, r2)
|
||||
movi 64, r3
|
||||
pt/l .disable_ptes_loop, tr0
|
||||
.disable_ptes_loop:
|
||||
putcfg r1, 0, r63
|
||||
putcfg r2, 0, r63
|
||||
addi r1, 16, r1
|
||||
addi r2, 16, r2
|
||||
addi r3, -1, r3
|
||||
bgt r3, r63, tr0
|
||||
|
||||
LOAD_ADDR (MMUIR_BASE, r1)
|
||||
|
||||
! FEMI instruction mappings
|
||||
! Area 0 - 1Mb cacheable at 0x00000000
|
||||
! Area 1 - None
|
||||
! Area 2 - 1Mb cacheable at 0x05000000
|
||||
! - 1Mb cacheable at 0x05100000
|
||||
! Area 3 - None
|
||||
! Area 4 - None
|
||||
|
||||
! Map a 1Mb page for instructions at 0x00000000
|
||||
LOAD_PTEH_VAL (FEMI_AREA_0, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (FEMI_AREA_0, ALIGN_1MB, PTE_CB_CACHEABLE_WB | PTE_SZ_1MB | PTE_PRX | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1Mb page for instructions at 0x05000000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (FEMI_AREA_2, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (FEMI_AREA_2, ALIGN_1MB, PTE_CB_CACHEABLE_WB | PTE_SZ_1MB | PTE_PRX | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1Mb page for instructions at 0x05100000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((FEMI_AREA_2+0x100000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((FEMI_AREA_2+0x100000), ALIGN_1MB, PTE_CB_CACHEABLE_WB | PTE_SZ_1MB | PTE_PRX | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 512M page for instructions at EMI base
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (EMI_BASE, ALIGN_512MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (EMI_BASE, ALIGN_512MB, PTE_CB_CACHEABLE_WB | PTE_SZ_512MB | PTE_PRX | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for instructions at DM_DB_DLINK_BASE
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (DM_DB_DLINK_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (DM_DB_DLINK_BASE, ALIGN_4KB, PTE_CB_CACHEABLE_WB | PTE_SZ_4KB | PTE_PRX | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
LOAD_ADDR (MMUDR_BASE, r1)
|
||||
|
||||
! FEMI data mappings
|
||||
! Area 0 - 1Mb cacheable at 0x00000000
|
||||
! Area 1 - 1Mb device at 0x04000000
|
||||
! Area 2 - 1Mb cacheable at 0x05000000
|
||||
! - 1Mb cacheable at 0x05100000
|
||||
! Area 3 - None
|
||||
! Area 4 - None
|
||||
! CB - 1Mb device at 0x08000000
|
||||
|
||||
! Map a 1Mb page for data at 0x00000000
|
||||
LOAD_PTEH_VAL (FEMI_AREA_0, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (FEMI_AREA_0, ALIGN_1MB, PTE_CB_CACHEABLE_WB | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1Mb page for data at 0x04000000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (FEMI_AREA_1, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (FEMI_AREA_1, ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1Mb page for data at 0x05000000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (FEMI_AREA_2, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (FEMI_AREA_2, ALIGN_1MB, PTE_CB_CACHEABLE_WB | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1Mb page for data at 0x05100000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((FEMI_AREA_2+0x100000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((FEMI_AREA_2+0x100000), ALIGN_1MB, PTE_CB_CACHEABLE_WB | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for registers at 0x08000000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (FEMI_CB, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (FEMI_CB, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 512M page for data at EMI
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (EMI_BASE, ALIGN_512MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (EMI_BASE, ALIGN_512MB, PTE_CB_CACHEABLE_WB | PTE_SZ_512MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for DYNACON at DYNACON_BASE
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (DYNACON_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (DYNACON_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for instructions at DM_DB_DLINK_BASE
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (DM_DB_DLINK_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (DM_DB_DLINK_BASE, ALIGN_4KB, PTE_CB_CACHEABLE_WB | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for data at DM_DB_DLINK_BASE+0x1000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((DM_DB_DLINK_BASE+0x1000), ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((DM_DB_DLINK_BASE+0x1000), ALIGN_4KB, PTE_CB_UNCACHEABLE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for stack DM_DB_DLINK_BASE+0x2000
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((DM_DB_DLINK_BASE+0x2000), ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((DM_DB_DLINK_BASE+0x2000), ALIGN_4KB, PTE_CB_CACHEABLE_WB | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1M page for DM_CB_BASE2 at DM_CB_DLINK
|
||||
! 0x0c000000 - 0x0c0fffff
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (DM_CB_DLINK_BASE, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (DM_CB_DLINK_BASE, ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1M page for DM_CB_BASE2 at DM_CB_DLINK
|
||||
! 0x0c100000 - 0x0c1fffff
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((DM_CB_DLINK_BASE+0x100000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((DM_CB_DLINK_BASE+0x100000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1M page for DM_CB_BASE2 at DM_CB_DLINK
|
||||
! 0x0c200000 - 0x0c2fffff
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((DM_CB_DLINK_BASE+0x200000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((DM_CB_DLINK_BASE+0x200000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1M page for DM_CB_BASE2 at DM_CB_DLINK
|
||||
! 0x0c400000 - 0x0c4fffff
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((DM_CB_DLINK_BASE+0x400000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((DM_CB_DLINK_BASE+0x400000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 1M page for DM_CB_BASE2 at DM_CB_DLINK
|
||||
! 0x0c800000 - 0x0c8fffff
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((DM_CB_DLINK_BASE+0x800000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((DM_CB_DLINK_BASE+0x800000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map a 4K page for DMA control registers
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (DMA_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (DMA_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map lots of 4K pages for peripherals
|
||||
|
||||
! /* peripheral */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (PERIPH_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (PERIPH_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
! /* dmac */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (DMAC_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (DMAC_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
! /* intc */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (INTC_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (INTC_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
! /* rtc */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (RTC_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (RTC_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
! /* dmac */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (TMU_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (TMU_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
! /* scif */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (SCIF_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (SCIF_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
! /* cprc */
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (CPRC_BASE, ALIGN_4KB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (CPRC_BASE, ALIGN_4KB, PTE_CB_DEVICE | PTE_SZ_4KB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Map CPU WPC registers
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL (CPU_BASE, ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL (CPU_BASE, ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
addi r1, 16, r1
|
||||
|
||||
LOAD_PTEH_VAL ((CPU_BASE+0x100000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((CPU_BASE+0x100000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((CPU_BASE+0x200000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((CPU_BASE+0x200000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
addi r1, 16, r1
|
||||
LOAD_PTEH_VAL ((CPU_BASE+0x400000), ALIGN_1MB, PTE_ENABLED | PTE_NOT_SHARED, r25, r2)
|
||||
LOAD_PTEL_VAL ((CPU_BASE+0x400000), ALIGN_1MB, PTE_CB_DEVICE | PTE_SZ_1MB | PTE_PRR | PTE_PRW | PTE_PRU, r25, r3)
|
||||
SET_PTE (r1, r2, r3)
|
||||
|
||||
! Switch over to virtual addressing and enabled cache
|
||||
getcon sr, r1
|
||||
movi 1, r2
|
||||
shlli r2, SR_BL_BIT, r2
|
||||
or r1, r2, r1
|
||||
putcon r1, ssr
|
||||
getcon sr, r1
|
||||
movi 1, r2
|
||||
shlli r2, SR_MMU_BIT, r2
|
||||
or r1, r2, r1
|
||||
putcon r1, ssr
|
||||
gettr tr1, r1
|
||||
putcon r1, spc
|
||||
synco
|
||||
rte
|
||||
|
||||
! VM entry point. From now on, we are in VM mode.
|
||||
.vm_ep:
|
||||
|
||||
! Install the trap handler, by seeding vbr with the
|
||||
! correct value, and by assigning sr.bl = 0.
|
||||
|
||||
LOAD_ADDR (vbr_start, r1)
|
||||
putcon r1, vbr
|
||||
movi ~(1<<28), r1
|
||||
getcon sr, r2
|
||||
and r1, r2, r2
|
||||
putcon r2, sr
|
||||
#endif /* MMU_SUPPORT */
|
||||
|
||||
pt/l .Lzero_bss_loop, tr0
|
||||
pt/l GLOBAL(_init), tr5
|
||||
pt/l ___setup_argv_and_call_main, tr6
|
||||
pt/l _exit, tr7
|
||||
|
||||
! zero out bss
|
||||
LOAD_ADDR (_edata, r0)
|
||||
LOAD_ADDR (_end, r1)
|
||||
.Lzero_bss_loop:
|
||||
stx.q r0, r63, r63
|
||||
addi r0, 8, r0
|
||||
bgt/l r1, r0, tr0
|
||||
|
||||
LOAD_ADDR (___data, r26)
|
||||
LOAD_ADDR (___rodata, r27)
|
||||
|
||||
#ifdef __SH_FPU_ANY__
|
||||
getcon sr, r0
|
||||
! enable the FP unit, by resetting SR.FD
|
||||
! also zero out SR.FR, SR.SZ and SR.PR, as mandated by the ABI
|
||||
movi 0, r1
|
||||
shori 0xf000, r1
|
||||
andc r0, r1, r0
|
||||
putcon r0, sr
|
||||
#if __SH5__ == 32
|
||||
pt/l ___set_fpscr, tr0
|
||||
movi 0, r4
|
||||
blink tr0, r18
|
||||
#endif
|
||||
#endif
|
||||
|
||||
! arrange for exit to call fini
|
||||
pt/l _atexit, tr1
|
||||
LOAD_ADDR (GLOBAL(_fini), r2)
|
||||
blink tr1, r18
|
||||
|
||||
! call init
|
||||
blink tr5, r18
|
||||
|
||||
! call the mainline
|
||||
blink tr6, r18
|
||||
|
||||
! call exit
|
||||
blink tr7, r18
|
||||
! We should never return from _exit but in case we do we would enter the
|
||||
! the following tight loop. This avoids executing any data that might follow.
|
||||
limbo:
|
||||
pt/l limbo, tr0
|
||||
blink tr0, r63
|
||||
|
||||
#ifdef MMU_SUPPORT
|
||||
! All these traps are handled in the same place.
|
||||
.balign 256
|
||||
vbr_start:
|
||||
pt/l handler, tr0 ! tr0 trashed.
|
||||
blink tr0, r63
|
||||
.balign 256
|
||||
vbr_100:
|
||||
pt/l handler, tr0 ! tr0 trashed.
|
||||
blink tr0, r63
|
||||
vbr_100_end:
|
||||
.balign 256
|
||||
vbr_200:
|
||||
pt/l handler, tr0 ! tr0 trashed.
|
||||
blink tr0, r63
|
||||
.balign 256
|
||||
vbr_300:
|
||||
pt/l handler, tr0 ! tr0 trashed.
|
||||
blink tr0, r63
|
||||
.balign 256
|
||||
vbr_400: ! Should be at vbr+0x400
|
||||
handler:
|
||||
/* If the trap handler is there call it */
|
||||
LOAD_ADDR (__superh_trap_handler, r2)
|
||||
pta chandler,tr2
|
||||
beq r2, r63, tr2 /* If zero, ie not present branch around to chandler */
|
||||
/* Now call the trap handler with as much of the context unchanged as possible.
|
||||
Move trapping address into R18 to make it look like the trap point */
|
||||
getcon spc, r18
|
||||
pt/l __superh_trap_handler, tr0
|
||||
blink tr0, r7
|
||||
chandler:
|
||||
getcon spc, r62
|
||||
getcon expevt, r2
|
||||
pt/l _exit, tr0
|
||||
blink tr0, r63
|
||||
|
||||
/* Simulated trap handler */
|
||||
.section .text..SHmedia32,"ax"
|
||||
gcc2_compiled.:
|
||||
.section .debug_abbrev
|
||||
.Ldebug_abbrev0:
|
||||
.section .text..SHmedia32
|
||||
.Ltext0:
|
||||
.section .debug_info
|
||||
.Ldebug_info0:
|
||||
.section .debug_line
|
||||
.Ldebug_line0:
|
||||
.section .text..SHmedia32,"ax"
|
||||
.align 5
|
||||
.global __superh_trap_handler
|
||||
.type __superh_trap_handler,@function
|
||||
__superh_trap_handler:
|
||||
.LFB1:
|
||||
ptabs r18, tr0
|
||||
addi.l r15, -8, r15
|
||||
st.l r15, 4, r14
|
||||
addi.l r15, -8, r15
|
||||
add.l r15, r63, r14
|
||||
st.l r14, 0, r2
|
||||
ptabs r7, tr0
|
||||
addi.l r14, 8, r14
|
||||
add.l r14, r63, r15
|
||||
ld.l r15, 4, r14
|
||||
addi.l r15, 8, r15
|
||||
blink tr0, r63
|
||||
.LFE1:
|
||||
.Lfe1:
|
||||
.size __superh_trap_handler,.Lfe1-__superh_trap_handler
|
||||
|
||||
.section .text..SHmedia32
|
||||
.Letext0:
|
||||
|
||||
.section .debug_info
|
||||
.ualong 0xa7
|
||||
.uaword 0x2
|
||||
.ualong .Ldebug_abbrev0
|
||||
.byte 0x4
|
||||
.byte 0x1
|
||||
.ualong .Ldebug_line0
|
||||
.ualong .Letext0
|
||||
.ualong .Ltext0
|
||||
.string "trap_handler.c"
|
||||
|
||||
.string "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||
|
||||
.string "GNU C 2.97-sh5-010522"
|
||||
|
||||
.byte 0x1
|
||||
.byte 0x2
|
||||
.ualong 0x9a
|
||||
.byte 0x1
|
||||
.string "_superh_trap_handler"
|
||||
|
||||
.byte 0x1
|
||||
.byte 0x2
|
||||
.byte 0x1
|
||||
.ualong .LFB1
|
||||
.ualong .LFE1
|
||||
.byte 0x1
|
||||
.byte 0x5e
|
||||
.byte 0x3
|
||||
.string "trap_reason"
|
||||
|
||||
.byte 0x1
|
||||
.byte 0x1
|
||||
.ualong 0x9a
|
||||
.byte 0x2
|
||||
.byte 0x91
|
||||
.byte 0x0
|
||||
.byte 0x0
|
||||
.byte 0x4
|
||||
.string "unsigned int"
|
||||
|
||||
.byte 0x4
|
||||
.byte 0x7
|
||||
.byte 0x0
|
||||
|
||||
.section .debug_abbrev
|
||||
.byte 0x1
|
||||
.byte 0x11
|
||||
.byte 0x1
|
||||
.byte 0x10
|
||||
.byte 0x6
|
||||
.byte 0x12
|
||||
.byte 0x1
|
||||
.byte 0x11
|
||||
.byte 0x1
|
||||
.byte 0x3
|
||||
.byte 0x8
|
||||
.byte 0x1b
|
||||
.byte 0x8
|
||||
.byte 0x25
|
||||
.byte 0x8
|
||||
.byte 0x13
|
||||
.byte 0xb
|
||||
.byte 0,0
|
||||
.byte 0x2
|
||||
.byte 0x2e
|
||||
.byte 0x1
|
||||
.byte 0x1
|
||||
.byte 0x13
|
||||
.byte 0x3f
|
||||
.byte 0xc
|
||||
.byte 0x3
|
||||
.byte 0x8
|
||||
.byte 0x3a
|
||||
.byte 0xb
|
||||
.byte 0x3b
|
||||
.byte 0xb
|
||||
.byte 0x27
|
||||
.byte 0xc
|
||||
.byte 0x11
|
||||
.byte 0x1
|
||||
.byte 0x12
|
||||
.byte 0x1
|
||||
.byte 0x40
|
||||
.byte 0xa
|
||||
.byte 0,0
|
||||
.byte 0x3
|
||||
.byte 0x5
|
||||
.byte 0x0
|
||||
.byte 0x3
|
||||
.byte 0x8
|
||||
.byte 0x3a
|
||||
.byte 0xb
|
||||
.byte 0x3b
|
||||
.byte 0xb
|
||||
.byte 0x49
|
||||
.byte 0x13
|
||||
.byte 0x2
|
||||
.byte 0xa
|
||||
.byte 0,0
|
||||
.byte 0x4
|
||||
.byte 0x24
|
||||
.byte 0x0
|
||||
.byte 0x3
|
||||
.byte 0x8
|
||||
.byte 0xb
|
||||
.byte 0xb
|
||||
.byte 0x3e
|
||||
.byte 0xb
|
||||
.byte 0,0
|
||||
.byte 0
|
||||
|
||||
.section .debug_pubnames
|
||||
.ualong 0x27
|
||||
.uaword 0x2
|
||||
.ualong .Ldebug_info0
|
||||
.ualong 0xab
|
||||
.ualong 0x5b
|
||||
.string "_superh_trap_handler"
|
||||
|
||||
.ualong 0x0
|
||||
|
||||
.section .debug_aranges
|
||||
.ualong 0x1c
|
||||
.uaword 0x2
|
||||
.ualong .Ldebug_info0
|
||||
.byte 0x4
|
||||
.byte 0x0
|
||||
.uaword 0x0,0
|
||||
.ualong .Ltext0
|
||||
.ualong .Letext0-.Ltext0
|
||||
.ualong 0x0
|
||||
.ualong 0x0
|
||||
.ident "GCC: (GNU) 2.97-sh5-010522"
|
||||
#endif /* MMU_SUPPORT */
|
||||
#else /* ! __SH5__ */
|
||||
|
||||
! make a place to keep any previous value of the vbr register
|
||||
! this will only have a value if it has been set by redboot (for example)
|
||||
.section .bss
|
||||
|
@ -1364,4 +722,3 @@ __superh_trap_handler:
|
|||
.ualong 0x0
|
||||
.ualong 0x0
|
||||
#endif /* VBR_SETUP */
|
||||
#endif /* ! __SH5__ */
|
||||
|
|
|
@ -47,19 +47,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#endif
|
||||
.global GLOBAL(_init)
|
||||
GLOBAL(_init):
|
||||
#if __SHMEDIA__
|
||||
addi r15, -16, r15
|
||||
st.q r15, 8, r14
|
||||
st.q r15, 0, r18
|
||||
add r15, r63, r14
|
||||
#elif __SH5__ && ! __SHMEDIA__
|
||||
mov r15,r0
|
||||
add #-8,r15
|
||||
mov.l r14,@-r0
|
||||
sts.l pr,@-r0
|
||||
mov r15,r14
|
||||
nop
|
||||
#else
|
||||
#ifdef __ELF__
|
||||
mov.l r12,@-r15
|
||||
mova 0f,r0
|
||||
|
@ -78,7 +65,6 @@ GLOBAL(_init):
|
|||
0: .long _GLOBAL_OFFSET_TABLE_
|
||||
1:
|
||||
#endif
|
||||
#endif /* __SHMEDIA__ */
|
||||
|
||||
.section .fini
|
||||
/* The alignment below can't be smaller, otherwise the mova below
|
||||
|
@ -92,19 +78,6 @@ GLOBAL(_init):
|
|||
#endif
|
||||
.global GLOBAL(_fini)
|
||||
GLOBAL(_fini):
|
||||
#if __SHMEDIA__
|
||||
addi r15, -16, r15
|
||||
st.q r15, 8, r14
|
||||
st.q r15, 0, r18
|
||||
add r15, r63, r14
|
||||
#elif __SH5__ && ! __SHMEDIA__
|
||||
mov r15,r0
|
||||
add #-8,r15
|
||||
mov.l r14,@-r0
|
||||
sts.l pr,@-r0
|
||||
mov r15,r14
|
||||
nop
|
||||
#else
|
||||
#ifdef __ELF__
|
||||
mov.l r12,@-r15
|
||||
mova 0f,r0
|
||||
|
@ -123,4 +96,3 @@ GLOBAL(_fini):
|
|||
0: .long _GLOBAL_OFFSET_TABLE_
|
||||
1:
|
||||
#endif
|
||||
#endif /* __SHMEDIA__ */
|
||||
|
|
|
@ -25,20 +25,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
/* See an explanation about .init and .fini in crti.S. */
|
||||
|
||||
.section .init
|
||||
#if __SHMEDIA__
|
||||
add r14, r63, r15
|
||||
ld.q r15, 0, r18
|
||||
ptabs r18, tr0
|
||||
ld.q r15, 8, r14
|
||||
addi r15, 16, r15
|
||||
blink tr0, r63
|
||||
#elif __SH5__ && ! __SHMEDIA__
|
||||
mov r14,r15
|
||||
lds.l @r14+,pr
|
||||
mov.l @r14,r14
|
||||
rts
|
||||
add #8,r15
|
||||
#else
|
||||
mov r14,r15
|
||||
lds.l @r15+,pr
|
||||
mov.l @r15+,r14
|
||||
|
@ -48,23 +34,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#else
|
||||
nop
|
||||
#endif
|
||||
#endif /* __SHMEDIA__ */
|
||||
|
||||
.section .fini
|
||||
#if __SHMEDIA__
|
||||
add r14, r63, r15
|
||||
ld.q r15, 0, r18
|
||||
ptabs r18, tr0
|
||||
ld.q r15, 8, r14
|
||||
addi r15, 16, r15
|
||||
blink tr0, r63
|
||||
#elif __SH5__ && ! __SHMEDIA__
|
||||
mov r14,r15
|
||||
lds.l @r14+,pr
|
||||
mov.l @r14,r14
|
||||
rts
|
||||
add #8,r15
|
||||
#else
|
||||
mov r14,r15
|
||||
lds.l @r15+,pr
|
||||
mov.l @r15+,r14
|
||||
|
@ -74,4 +45,3 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#else
|
||||
nop
|
||||
#endif
|
||||
#endif /* __SHMEDIA__ */
|
||||
|
|
|
@ -25,7 +25,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
|
||||
#include "lib1funcs.h"
|
||||
|
||||
#if !__SHMEDIA__
|
||||
#ifdef L_div_table
|
||||
#if defined (__SH3__) || defined (__SH3E__) || defined (__SH4__) || defined (__SH4_SINGLE__) || defined (__SH4_SINGLE_ONLY__) || defined (__SH4_NOFPU__)
|
||||
/* This code used shld, thus is not suitable for SH1 / SH2. */
|
||||
|
@ -933,4 +932,3 @@ LOCAL(div_table_inv):
|
|||
#endif /* SH3 / SH4 */
|
||||
|
||||
#endif /* L_div_table */
|
||||
#endif /* !__SHMEDIA__ */
|
||||
|
|
|
@ -25,7 +25,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
|
||||
#include "lib1funcs.h"
|
||||
|
||||
#if !__SHMEDIA__
|
||||
#ifdef L_udivsi3_i4i
|
||||
|
||||
/* 88 bytes; sh4-200 cycle counts:
|
||||
|
@ -319,4 +318,3 @@ L1:
|
|||
ENDFUNC(GLOBAL(sdivsi3_i4i))
|
||||
#endif /* __SH_FPU_DOUBLE__ */
|
||||
#endif /* L_sdivsi3_i4i */
|
||||
#endif /* !__SHMEDIA__ */
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,14 +33,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#include <sys/ucontext.h>
|
||||
#include "insn-constants.h"
|
||||
|
||||
# if defined (__SH5__)
|
||||
#define SH_DWARF_FRAME_GP0 0
|
||||
#define SH_DWARF_FRAME_FP0 77
|
||||
#define SH_DWARF_FRAME_BT0 68
|
||||
#define SH_DWARF_FRAME_PR_MEDIA 18
|
||||
#define SH_DWARF_FRAME_SR 65
|
||||
#define SH_DWARF_FRAME_FPSCR 76
|
||||
#else
|
||||
#define SH_DWARF_FRAME_GP0 0
|
||||
#define SH_DWARF_FRAME_FP0 25
|
||||
#define SH_DWARF_FRAME_XD0 87
|
||||
|
@ -52,96 +44,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#define SH_DWARF_FRAME_SR 22
|
||||
#define SH_DWARF_FRAME_FPUL 23
|
||||
#define SH_DWARF_FRAME_FPSCR 24
|
||||
#endif /* defined (__SH5__) */
|
||||
|
||||
#if defined (__SH5__)
|
||||
|
||||
#define MD_FALLBACK_FRAME_STATE_FOR shmedia_fallback_frame_state
|
||||
|
||||
static _Unwind_Reason_Code
|
||||
shmedia_fallback_frame_state (struct _Unwind_Context *context,
|
||||
_Unwind_FrameState *fs)
|
||||
{
|
||||
unsigned char *pc = context->ra;
|
||||
struct sigcontext *sc;
|
||||
long new_cfa;
|
||||
int i, r;
|
||||
|
||||
/* movi 0x10,r9; shori 0x77,r9; trapa r9; nop (sigreturn) */
|
||||
/* movi 0x10,r9; shori 0xad,r9; trapa r9; nop (rt_sigreturn) */
|
||||
if ((*(unsigned long *) (pc-1) == 0xcc004090)
|
||||
&& (*(unsigned long *) (pc+3) == 0xc801dc90)
|
||||
&& (*(unsigned long *) (pc+7) == 0x6c91fff0)
|
||||
&& (*(unsigned long *) (pc+11) == 0x6ff0fff0))
|
||||
sc = context->cfa;
|
||||
else if ((*(unsigned long *) (pc-1) == 0xcc004090)
|
||||
&& (*(unsigned long *) (pc+3) == 0xc802b490)
|
||||
&& (*(unsigned long *) (pc+7) == 0x6c91fff0)
|
||||
&& (*(unsigned long *) (pc+11) == 0x6ff0fff0))
|
||||
{
|
||||
struct rt_sigframe {
|
||||
siginfo_t *pinfo;
|
||||
void *puc;
|
||||
siginfo_t info;
|
||||
struct ucontext uc;
|
||||
} *rt_ = context->cfa;
|
||||
/* The void * cast is necessary to avoid an aliasing warning.
|
||||
The aliasing warning is correct, but should not be a problem
|
||||
because it does not alias anything. */
|
||||
sc = (struct sigcontext *) (void *) &rt_->uc.uc_mcontext;
|
||||
}
|
||||
else
|
||||
return _URC_END_OF_STACK;
|
||||
|
||||
new_cfa = sc->sc_regs[15];
|
||||
fs->regs.cfa_how = CFA_REG_OFFSET;
|
||||
fs->regs.cfa_reg = 15;
|
||||
fs->regs.cfa_offset = new_cfa - (long) context->cfa;
|
||||
|
||||
for (i = 0; i < 63; i++)
|
||||
{
|
||||
if (i == 15)
|
||||
continue;
|
||||
|
||||
fs->regs.reg[i].how = REG_SAVED_OFFSET;
|
||||
fs->regs.reg[i].loc.offset
|
||||
= (long)&(sc->sc_regs[i]) - new_cfa;
|
||||
}
|
||||
|
||||
fs->regs.reg[SH_DWARF_FRAME_SR].how = REG_SAVED_OFFSET;
|
||||
fs->regs.reg[SH_DWARF_FRAME_SR].loc.offset
|
||||
= (long)&(sc->sc_sr) - new_cfa;
|
||||
|
||||
r = SH_DWARF_FRAME_BT0;
|
||||
for (i = 0; i < 8; i++)
|
||||
{
|
||||
fs->regs.reg[r+i].how = REG_SAVED_OFFSET;
|
||||
fs->regs.reg[r+i].loc.offset
|
||||
= (long)&(sc->sc_tregs[i]) - new_cfa;
|
||||
}
|
||||
|
||||
r = SH_DWARF_FRAME_FP0;
|
||||
for (i = 0; i < 32; i++)
|
||||
{
|
||||
fs->regs.reg[r+i].how = REG_SAVED_OFFSET;
|
||||
fs->regs.reg[r+i].loc.offset
|
||||
= (long)&(sc->sc_fpregs[i]) - new_cfa;
|
||||
}
|
||||
|
||||
fs->regs.reg[SH_DWARF_FRAME_FPSCR].how = REG_SAVED_OFFSET;
|
||||
fs->regs.reg[SH_DWARF_FRAME_FPSCR].loc.offset
|
||||
= (long)&(sc->sc_fpscr) - new_cfa;
|
||||
|
||||
/* We use the slot for the zero register to save return address. */
|
||||
fs->regs.reg[63].how = REG_SAVED_OFFSET;
|
||||
fs->regs.reg[63].loc.offset
|
||||
= (long)&(sc->sc_pc) - new_cfa;
|
||||
fs->retaddr_column = 63;
|
||||
fs->signal_frame = 1;
|
||||
return _URC_NO_REASON;
|
||||
}
|
||||
|
||||
#else /* defined (__SH5__) */
|
||||
|
||||
#define MD_FALLBACK_FRAME_STATE_FOR sh_fallback_frame_state
|
||||
|
||||
|
@ -250,6 +152,5 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
|
|||
fs->signal_frame = 1;
|
||||
return _URC_NO_REASON;
|
||||
}
|
||||
#endif /* defined (__SH5__) */
|
||||
|
||||
#endif /* inhibit_libc */
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
LIB1ASMFUNCS = \
|
||||
_sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
|
||||
_shcompact_call_trampoline _shcompact_return_trampoline \
|
||||
_shcompact_incoming_args _ic_invalidate _nested_trampoline \
|
||||
_push_pop_shmedia_regs \
|
||||
_udivdi3 _divdi3 _umoddi3 _moddi3 _div_table
|
Loading…
Add table
Reference in a new issue