Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cMIPS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roberto Hexsel
cMIPS
Commits
be086fb1
Commit
be086fb1
authored
Jul 9, 2015
by
Roberto Hexsel
Browse files
Options
Downloads
Patches
Plain Diff
fixed updates by edMemory.sh
parent
9d0ced85
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cMIPS/tests/doTests.sh
+4
-0
4 additions, 0 deletions
cMIPS/tests/doTests.sh
cMIPS/tests/teq_tne.s
+13
-13
13 additions, 13 deletions
cMIPS/tests/teq_tne.s
with
17 additions
and
13 deletions
cMIPS/tests/doTests.sh
+
4
−
0
View file @
be086fb1
...
...
@@ -81,6 +81,10 @@ a_EXC="mmu_refill mmu_refill2 mmu_refill3 mmu_inval mmu_inval2 mmu_mod mmu_mod2
## these tests are timing dependent and MUST be run with memory latency=0
# a_TIM="counter"
## force an update of all include files with edMemory.sh
touch
-t
201501010000.00 ../include/cMIPS.
*
(
cd
$tree
;
$bin
/build.sh
)
||
exit
1
rm
-f
*
.simout
*
.elf
...
...
This diff is collapsed.
Click to expand it.
cMIPS/tests/teq_tne.s
+
13
−
13
View file @
be086fb1
...
...
@@ -3,16 +3,15 @@
.
text
.
align
2
.
set
noreorder
#
assembler
should
not
reorder
instructions
.
global
_start
.
global
_exit
.
global
exit
.
global
_start
,
_exit
.
ent
_start
#
#
#
#
reset
leaves
processor
in
kernel
mode
,
all
else
disabled
#
#
_start
:
nop
li
$sp
,(
x_DATA_BASE_ADDR
+
x_DATA_MEM_SZ
-
8
)
#
initialize
SP
:
ram
Top
-
8
li
$sp
,(
x_DATA_BASE_ADDR
+
4096
-
8
)
#
initialize
SP
:
fstPage
Top
-
8
#
#
set
STATUS
,
cop0
,
no
interrupts
enabled
li
$k0
,
0x10000000
...
...
@@ -34,10 +33,9 @@ _exit: nop # flush pipeline
.
org
x_EXCEPTION_0180
,
0
#
exception
vector_180
.
ent
_excp_180
excp_180
:
_excp_180
:
#
#
#
#
print
CAUSE
,
reset
counter
,
decrement
iteration
control
#
#
print
CAUSE
,
skip
over
TRAP
instruction
#
#
mfc0
$k0
,
cop0_CAUSE
andi
$k1
,
$k0
,
0x0030
...
...
@@ -60,20 +58,19 @@ _excp_180:
li
$k1
,
-
16
#
ffff
.
fff0
and
$k0
,
$k0
,
$k1
mtc0
$k0
,
cop0_STATUS
excp_180ret
:
eret
.
end
_excp_180
.
org
x_EXCEPTION_0200
,
0
.
ent
_excp_200
excp_200
:
_excp_200
:
#
#
#
#
this
exception
should
not
happen
#
#
li
$
28
,-
1
sw
$
28
,
0
(
$
15
)
#
signal
exception
to
std_out
sw
$
28
,
0
(
$
15
)
#
signal
WRONG
exception
to
std_out
mfc0
$k0
,
cop0_CAUSE
li
$k1
,
'e'
sw
$k1
,
x_IO_ADDR_RANGE
(
$
15
)
...
...
@@ -84,6 +81,11 @@ _excp_200:
li
$k1
,
'\n'
sw
$k1
,
x_IO_ADDR_RANGE
(
$
15
)
sw
$k0
,
0
(
$
15
)
#
print
CAUSE
mfc0
$k1
,
cop0_EPC
#
move
EPC
forward
to
next
instruction
addi
$k1
,
$k1
,
4
mtc0
$k1
,
cop0_EPC
eret
#
and
return
nop
.
end
_excp_200
...
...
@@ -151,7 +153,5 @@ then2: sw $7, 0($15) # print out values: (5,34,4,34,3,34,2,34,1,34)
bnez
$
7
,
then2
nop
j
exit
j
_
exit
nop
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment