Changeset 265 for trunk/softs/tests_ccvcache_v4/test_llsc
- Timestamp:
- Oct 17, 2012, 12:03:39 PM (12 years ago)
- Location:
- trunk/softs/tests_ccvcache_v4/test_llsc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tests_ccvcache_v4/test_llsc/run
r232 r265 1 1 #!/bin/sh 2 3 . ../common/common.sh 2 4 3 5 check_output() 4 6 { 5 egrep "^0x0000 0000 0xAC4000FF 0xAC4000FF 0x00000000$" run.out > /dev/null7 egrep "^0x0000DEAD 0x0000DEAD 0x0000BEEF 0x0000DEAD$" run.out > /dev/null 6 8 if [ $? -eq 0 ]; then 7 9 return 0; … … 12 14 13 15 make --quiet || exit 1 14 ../platform/simulation.x> run.out 2>&116 ${SIMUL} > run.out 2>&1 15 17 if [ $? -eq 0 ]; then 16 18 if check_output; then -
trunk/softs/tests_ccvcache_v4/test_llsc/test.S
r232 r265 31 31 PUTCHAR(' ') 32 32 33 /* now write to myvar via ll/sc 33 /* now write to myvar via ll/sc */ 34 34 la s1, myvar 35 35 1: … … 37 37 li a1, MAGIC2 38 38 sc a1, 0(s1) 39 beqz a1, 2b39 beqz a1, 1b 40 40 nop 41 41 42 PRINTX /* print what we read with ll */ 43 PUTCHAR(' ') 44 45 la s1, myvar 46 lw a0, 0(s1) /* print the new value */ 47 PRINTX 48 PUTCHAR(' ') 49 42 50 /* restore myvar value via normal write */ 51 la s1, myvar 43 52 li a1, MAGIC1 44 53 sw a1, 0(s1) … … 93 102 pte1: 94 103 .align 13 95 .word PTE1_V | PTE1_ C | PTE1_W | 0x0 /* map PA 0 at VA 0 */104 .word PTE1_V | PTE1_W | 0x0 /* map PA 0 at VA 0 */ 96 105 .org pte1 + (BOOT_ADDRESS >> 21) * 4 97 106 .word PTE1_V | PTE1_C | PTE1_X | (BOOT_ADDRESS >> 21) /* map PA 0xbfc00000 at VA 0xbfc00000 */
Note: See TracChangeset
for help on using the changeset viewer.