* ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
[gdb/SamB.git] / sim / testsuite / d10v-elf / t-dbt.s
blob8c518475be7c6e7e4a688e8fdc11d367fb341ee7
1 .include "t-macros.i"
3 start
5 PSW_BITS = PSW_DM
7 ;;; Blat our DMAP registers so that they point at on-chip imem
9 ldi r2, MAP_INSN | 0xf
10 st r2, @(DMAP_REG,r0)
11 ldi r2, MAP_INSN
12 st r2, @(IMAP1_REG,r0)
14 ;;; Patch the interrupt vector's dbt entry with a jmp to success
16 ldi r4, #trap
17 ldi r5, (VEC_DBT & DMAP_MASK) + DMAP_BASE
18 ld2w r2, @(0,r4)
19 st2w r2, @(0,r5)
20 ld2w r2, @(4,r4)
21 st2w r2, @(4,r5)
23 test_dbt:
24 dbt -> nop
25 exit47
27 success:
28 checkpsw2 1 PSW_BITS
29 exit0
31 .data
32 trap: ldi r1, success@word
33 jmp r1