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
Harbor Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roberto Hexsel
cMIPS
Commits
2aab8110
Commit
2aab8110
authored
8 years ago
by
Roberto Hexsel
Browse files
Options
Downloads
Patches
Plain Diff
stopCount missing in handlers.s
parent
ed8eb887
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cMIPS/include/handlers.s
+18
-0
18 additions, 0 deletions
cMIPS/include/handlers.s
cMIPS/tests/count.c
+1
-1
1 addition, 1 deletion
cMIPS/tests/count.c
with
19 additions
and
1 deletion
cMIPS/include/handlers.s
+
18
−
0
View file @
2aab8110
...
...
@@ -178,6 +178,24 @@ startCount:
#----------------------------------------------------------------
#===============================================================
=
#
stopCount
disables
the
COUNT
register
,
returns
new
CAUSE
#
CAUSE
.
dc
<=
1
to
disable
counting
#----------------------------------------------------------------
.
text
.
set
noreorder
.
global
stopCount
.
ent
stopCount
stopCount
:
mfc0
$v0
,
c0_cause
lui
$v1
,
0x0800
or
$v0
,
$v0
,
$v1
jr
$ra
mtc0
$v0
,
c0_cause
.
end
stopCount
#----------------------------------------------------------------
#===============================================================
=
#
readCount
returns
the
value
of
the
COUNT
register
#----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
cMIPS/tests/count.c
+
1
−
1
View file @
2aab8110
//-------------------------------------------------------------------------
// test if COUNT register counts up monotonically
// returns error if the time to compute every 11th element of the Fibonacci
// sequence, as measured by COUNT is not monotonically increasing
// sequence, as measured by COUNT
,
is not monotonically increasing
//-------------------------------------------------------------------------
#include
"cMIPS.h"
...
...
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