OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [sim/] [testsuite/] [sim/] [cris/] [hw/] [rv-n-cris/] [irq6.ms] - Diff between revs 24 and 33

Only display areas with differences | Details | Blame | View Log

Rev 24 Rev 33
#mach: crisv10 crisv32
#mach: crisv10 crisv32
#sim(crisv10): --hw-device "/rv/trace? true"
#sim(crisv10): --hw-device "/rv/trace? true"
#sim(crisv32): --hw-device "/rv/trace? true"
#sim(crisv32): --hw-device "/rv/trace? true"
#output: /rv: WD\n
#output: /rv: WD\n
#output: /rv: REG R 0xd0000032\n
#output: /rv: REG R 0xd0000032\n
#output: /rv: := 0xabcdef01\n
#output: /rv: := 0xabcdef01\n
#output: /rv: IRQ 0x4\n
#output: /rv: IRQ 0x4\n
#output: /rv: REG R 0xd0000036\n
#output: /rv: REG R 0xd0000036\n
#output: /rv: := 0x76543210\n
#output: /rv: := 0x76543210\n
#output: /rv: REG R 0xd0000030\n
#output: /rv: REG R 0xd0000030\n
#output: /rv: IRQ 0x0\n
#output: /rv: IRQ 0x0\n
#output: /rv: IRQ 0x8\n
#output: /rv: IRQ 0x8\n
#output: /rv: := 0xeeff4455\n
#output: /rv: := 0xeeff4455\n
#output: /rv: REG R 0xd0000034\n
#output: /rv: REG R 0xd0000034\n
#output: /rv: := 0xdd001122\n
#output: /rv: := 0xdd001122\n
#output: /rv: REG R 0xd0000038\n
#output: /rv: REG R 0xd0000038\n
#output: /rv: := 0xaaeeff44\n
#output: /rv: := 0xaaeeff44\n
#output: /rv: REG R 0xd000003c\n
#output: /rv: REG R 0xd000003c\n
#output: /rv: := 0xff445511\n
#output: /rv: := 0xff445511\n
#output: pass\n
#output: pass\n
# Test two successive ints; that flags are disabled when an interrupt
# Test two successive ints; that flags are disabled when an interrupt
# is taken, and then automatically (or by register restore) enabled at
# is taken, and then automatically (or by register restore) enabled at
# return.
# return.
#r W,
#r W,
#r r,a8832,abcdef01
#r r,a8832,abcdef01
#r I,4
#r I,4
#r r,a8836,76543210
#r r,a8836,76543210
#r I,0
#r I,0
#r I,8
#r I,8
#r r,a8830,eeff4455
#r r,a8830,eeff4455
#r r,a8834,dd001122
#r r,a8834,dd001122
#r r,a8838,aaeeff44
#r r,a8838,aaeeff44
#r r,a883c,ff445511
#r r,a883c,ff445511
 .lcomm dummy,4
 .lcomm dummy,4
 .include "testutils.inc"
 .include "testutils.inc"
 start
 start
 test_h_mem 0xabcdef01 0xd0000032
 test_h_mem 0xabcdef01 0xd0000032
 moveq -1,$r4
 moveq -1,$r4
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 move irqvec1,$ebp
 move irqvec1,$ebp
 .else
 .else
 move irqvec1,$ibr
 move irqvec1,$ibr
 .endif
 .endif
 ei
 ei
 test_h_mem 0,dummy
 test_h_mem 0,dummy
 ; Here after the first interrupt, or perhaps the second interrupt is
 ; Here after the first interrupt, or perhaps the second interrupt is
 ; taken directly; leave it optional.  Anyway, the second interrupt
 ; taken directly; leave it optional.  Anyway, the second interrupt
 ; should be taken no later than this branch.
 ; should be taken no later than this branch.
 test_h_mem 0,dummy
 test_h_mem 0,dummy
killme:
killme:
 fail
 fail
irq0x33:
irq0x33:
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 ; Nothing needed to save flags - "shift" should happen, and back at rfe.
 ; Nothing needed to save flags - "shift" should happen, and back at rfe.
 .else
 .else
 ; The missing sim support for interrupt-excluding instructions is matched
 ; The missing sim support for interrupt-excluding instructions is matched
 ; by the flaw that sim doesn't service interrupts in straight code.
 ; by the flaw that sim doesn't service interrupts in straight code.
 ; So, we can use a sequence that would work on actual hardware.
 ; So, we can use a sequence that would work on actual hardware.
 move $dccr,$r5
 move $dccr,$r5
 di
 di
 .endif
 .endif
 test_h_mem 0x76543210 0xd0000036
 test_h_mem 0x76543210 0xd0000036
 test_h_mem 0xeeff4455 0xd0000030
 test_h_mem 0xeeff4455 0xd0000030
 test_h_mem 0xdd001122 0xd0000034
 test_h_mem 0xdd001122 0xd0000034
 moveq -22,$r4
 moveq -22,$r4
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 move irqvec2,$ebp
 move irqvec2,$ebp
 rete
 rete
 rfe
 rfe
 .else
 .else
 move irqvec2,$ibr
 move irqvec2,$ibr
 reti
 reti
 move $r5,$dccr
 move $r5,$dccr
 .endif
 .endif
 pass
 pass
irq0x34:
irq0x34:
 test_h_mem 0xaaeeff44 0xd0000038
 test_h_mem 0xaaeeff44 0xd0000038
 test_h_mem 0xff445511 0xd000003c
 test_h_mem 0xff445511 0xd000003c
 cmpq -22,$r4
 cmpq -22,$r4
 bne killme
 bne killme
 nop
 nop
 pass
 pass
 singlevec irqvec1,0x33,irq0x33
 singlevec irqvec1,0x33,irq0x33
 singlevec irqvec2,0x34,irq0x34
 singlevec irqvec2,0x34,irq0x34
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.