Search
lxdream.org :: lxdream/test/sh4/inc.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/inc.s
changeset 555:309c97260912
prev357:3592a10b3242
author nkeynes
date Tue Jan 01 04:32:01 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Add initial TLB tests
file annotate diff log raw
1.1 --- a/test/sh4/inc.s Tue Feb 13 08:34:27 2007 +0000
1.2 +++ b/test/sh4/inc.s Tue Jan 01 04:32:01 2008 +0000
1.3 @@ -240,6 +240,24 @@
1.4 L3:
1.5 .endm
1.6
1.7 +.macro assert_tlb_exc_caught testname, expectpc, expectvpn
1.8 +LOCAL L1, L2, L3
1.9 + mov.l L1, r3
1.10 + mov.l \testname, r4
1.11 + mov r12, r5
1.12 + mov.l L2, r6
1.13 + mov.l \expectvpn, r7
1.14 + jsr @r3
1.15 + nop
1.16 + add r0, r13
1.17 + bra L3
1.18 + nop
1.19 +.align 4
1.20 +L1: .long _assert_exception_caught
1.21 +L2: .long \expectpc
1.22 +L3:
1.23 +.endm
1.24 +
1.25 .align 2
1.26 assert_t_set_message:
1.27 .string "Expected T=1 but was 0"
.