Sample driver output
This is the output that I get when I run the various provided drivers with the sample solution.
Driver driver.mips output
SPIM Version 6.0 of July 21, 1997
Copyright 1990-1997 by James R. Larus (larus@cs.wisc.edu).
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /home/bsy/lib/trap.handler
Thread 0: 0
Thread 1: 0
I am thread 2, and this is 0 times through
Thread 0: 1
Thread 1: 1
[ 2:0 ]
Thread 0: 2
Thread 1: 2
I am thread 2, and this is 1 times through
Thread 0: 3
Thread 1: 3
[ 2:1 ]
Thread 0: 4
Thread 1: 4
I am thread 2, and this is 2 times through
Thread 0: 5
Thread 1: 5
[ 2:2 ]
Thread 0: 6
Thread 1: 6
I am thread 2, and this is 3 times through
Thread 0: 7
Thread 1: 7
[ 2:3 ]
Thread 0: 8
Thread 1: 8
I am thread 2, and this is 4 times through
Thread 0: 9
Thread 1: 9
[ 2:4 ]
I am thread 2, and this is 5 times through
[ 2:5 ]
I am thread 2, and this is 6 times through
[ 2:6 ]
I am thread 2, and this is 7 times through
[ 2:7 ]
I am thread 2, and this is 8 times through
[ 2:8 ]
I am thread 2, and this is 9 times through
[ 2:9 ]
All done!
Total instructions since program load = 0x00000000 00001488
Driver driver2.mips output
SPIM Version 6.0 of July 21, 1997
Copyright 1990-1997 by James R. Larus (larus@cs.wisc.edu).
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /home/bsy/lib/trap.handler
I am thread 2, and this is 0 times through
Thread 0: 0
Thread 1: 0
[ 2:0 ]
I am thread 2, and this is 1 times through
Thread 0: 1
Thread 1: 1
[ 2:1 ]
I am thread 2, and this is 2 times through
Thread 0: 2
Thread 1: 2
[ 2:2 ]
I am thread 2, and this is 3 times through
Thread 0: 3
Thread 1: 3
[ 2:3 ]
I am thread 2, and this is 4 times through
Thread 0: 4
Thread 1: 4
[ 2:4 ]
I am thread 2, and this is 5 times through
Thread 0: 5
Thread 1: 5
[ 2:5 ]
I am thread 2, and this is 6 times through
Thread 0: 6
Thread 1: 6
[ 2:6 ]
I am thread 2, and this is 7 times through
Thread 0: 7
Thread 1: 7
[ 2:7 ]
I am thread 2, and this is 8 times through
Thread 0: 8
Thread 1: 8
[ 2:8 ]
I am thread 2, and this is 9 times through
Thread 0: 9
Thread 1: 9
[ 2:9 ]
All done!
Total instructions since program load = 0x00000000 000014bd
Driver driver3.mips output
SPIM Version 6.0 of July 21, 1997
Copyright 1990-1997 by James R. Larus (larus@cs.wisc.edu).
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /home/bsy/lib/trap.handler
I am thread 2, and this is 0 times through
Thread 0: 0
I am thread 1, and this is 0 times through
[ 2:0 ]
I am thread 10, and this is 0 times through
I am thread 11, and this is 0 times through
I am thread 12, and this is 0 times through
I am thread 13, and this is 0 times through
I am thread 14, and this is 0 times through
I am thread 2, and this is 1 times through
[ 10:0 ]
[ 11:0 ]
[ 12:0 ]
[ 13:0 ]
[ 14:0 ]
Thread 0: 1
[ 1:0 ]
[ 2:1 ]
I am thread 10, and this is 1 times through
I am thread 11, and this is 1 times through
I am thread 12, and this is 1 times through
I am thread 13, and this is 1 times through
I am thread 14, and this is 1 times through
I am thread 2, and this is 2 times through
[ 10:1 ]
[ 11:1 ]
[ 12:1 ]
[ 13:1 ]
[ 14:1 ]
Thread 0: 2
I am thread 1, and this is 1 times through
[ 2:2 ]
I am thread 10, and this is 2 times through
I am thread 11, and this is 2 times through
I am thread 12, and this is 2 times through
I am thread 13, and this is 2 times through
I am thread 14, and this is 2 times through
I am thread 2, and this is 3 times through
[ 10:2 ]
[ 11:2 ]
[ 12:2 ]
[ 13:2 ]
[ 14:2 ]
Thread 0: 3
[ 1:1 ]
[ 2:3 ]
I am thread 10, and this is 3 times through
I am thread 11, and this is 3 times through
I am thread 12, and this is 3 times through
I am thread 13, and this is 3 times through
I am thread 14, and this is 3 times through
I am thread 2, and this is 4 times through
[ 10:3 ]
[ 11:3 ]
[ 12:3 ]
[ 13:3 ]
[ 14:3 ]
Thread 0: 4
I am thread 1, and this is 2 times through
[ 2:4 ]
I am thread 10, and this is 4 times through
I am thread 11, and this is 4 times through
I am thread 12, and this is 4 times through
I am thread 13, and this is 4 times through
I am thread 14, and this is 4 times through
I am thread 2, and this is 5 times through
[ 10:4 ]
[ 11:4 ]
[ 12:4 ]
[ 13:4 ]
[ 14:4 ]
Thread 0: 5
[ 1:2 ]
[ 2:5 ]
I am thread 10, and this is 5 times through
I am thread 11, and this is 5 times through
I am thread 12, and this is 5 times through
I am thread 13, and this is 5 times through
I am thread 14, and this is 5 times through
I am thread 2, and this is 6 times through
[ 10:5 ]
[ 11:5 ]
[ 12:5 ]
[ 13:5 ]
[ 14:5 ]
Thread 0: 6
I am thread 1, and this is 3 times through
[ 2:6 ]
I am thread 10, and this is 6 times through
I am thread 11, and this is 6 times through
I am thread 12, and this is 6 times through
I am thread 13, and this is 6 times through
I am thread 14, and this is 6 times through
I am thread 2, and this is 7 times through
[ 10:6 ]
[ 11:6 ]
[ 12:6 ]
[ 13:6 ]
[ 14:6 ]
Thread 0: 7
[ 1:3 ]
[ 2:7 ]
I am thread 10, and this is 7 times through
I am thread 11, and this is 7 times through
I am thread 12, and this is 7 times through
I am thread 13, and this is 7 times through
I am thread 14, and this is 7 times through
I am thread 2, and this is 8 times through
[ 10:7 ]
[ 11:7 ]
[ 12:7 ]
[ 13:7 ]
[ 14:7 ]
Thread 0: 8
I am thread 1, and this is 4 times through
[ 2:8 ]
I am thread 10, and this is 8 times through
I am thread 11, and this is 8 times through
I am thread 12, and this is 8 times through
I am thread 13, and this is 8 times through
I am thread 14, and this is 8 times through
I am thread 2, and this is 9 times through
[ 10:8 ]
[ 11:8 ]
[ 12:8 ]
[ 13:8 ]
[ 14:8 ]
Thread 0: 9
[ 1:4 ]
[ 2:9 ]
I am thread 10, and this is 9 times through
I am thread 11, and this is 9 times through
I am thread 12, and this is 9 times through
I am thread 13, and this is 9 times through
I am thread 14, and this is 9 times through
[ 10:9 ]
[ 11:9 ]
[ 12:9 ]
[ 13:9 ]
[ 14:9 ]
I am thread 1, and this is 5 times through
[ 1:5 ]
I am thread 1, and this is 6 times through
[ 1:6 ]
I am thread 1, and this is 7 times through
[ 1:7 ]
I am thread 1, and this is 8 times through
[ 1:8 ]
I am thread 1, and this is 9 times through
[ 1:9 ]
All done!
Total instructions since program load = 0x00000000 00004c70